Load 10 wav files…

Jul 30, 2010 at 4:01am

Load 10 wav files…

Hello, I want links or tutorial, about load multiple sound files. What I want is load 10 files and write and algorithm about which file play, without cutting each individual sounds, if a file has more duration than other.

Thanks.

#48517
Jul 30, 2010 at 6:42am

With the [folder] object you should be able to load a folder with sound files. You can then use [buffer~] to load the sound files in different buffers, or use [sfplay~] to play the sound directly from your hard drive. I usually use the [folder] object in combination with a [umenu] as described in the helpfile of [folder].

You could try to make a [poly~] object with a [buffer~] object in it, so your buffers are dynamic (you could use [poly~ [poly_patchname] 10] for 10 buffers to be loaded)

#174501
Jul 30, 2010 at 9:04am

You could also check the Edge sub-forum for the polybuffer~ beta object.

#174502
Jul 30, 2010 at 4:33pm

Thanks roelvandoorn-Tim Lloyd, I will try it. One more question, I’m developer where I can found information about programming on Max/MSP?? What I want is assign to each wav file a variable in order to create a switch conditional function.

int 1 = 1.wav;
int 2 = 2.wav;
int 3 = 3.wav;

Is an example. Then I want to read a list of variables: 1 2 1 2 3 1 2 , to play my sounds ( if I read 1, play my 1.wav sound, if i read 2 play my 2.wav sound).

Thanks for your time

#174503
Jul 30, 2010 at 6:03pm

Take a look at the sflist~ object. This will allow you to assign an ID to each file.

#174504
Jul 31, 2010 at 9:01pm

if you populate a [umenu] with your file names for playback, sending it integers (starting with 0) will access those slots exactly as if you had selected them with the mouse.

#174505
Aug 1, 2010 at 8:57pm

Thanks so much Holland Hopson, seejayjames, I will play with that objects, there’s information with examples?

#174506
Aug 1, 2010 at 9:08pm

I have other question, how can I play that sounds, in random order, (or with my conditionals sentences) but each sound individual, without cutting the sound when other sound is starting or ending.

Thanks so much for your time.

#174507

You must be logged in to reply to this topic.