Load 10 wav files...

    Jul 30 2010 | 4:01 am
    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.

    • Jul 30 2010 | 6:42 am
      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)
    • Jul 30 2010 | 9:04 am
      You could also check the Edge sub-forum for the polybuffer~ beta object.
    • Jul 30 2010 | 4:33 pm
      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
    • Jul 30 2010 | 6:03 pm
      Take a look at the sflist~ object. This will allow you to assign an ID to each file.
    • Jul 31 2010 | 9:01 pm
      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.
    • Aug 01 2010 | 8:57 pm
      Thanks so much Holland Hopson, seejayjames, I will play with that objects, there's information with examples?
    • Aug 01 2010 | 9:08 pm
      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.