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.
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)
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).