how do I...

keyworth's icon

Hi all,

Say I have lots of different short snippets of audio in wav form in a folder, how can I load them into the buffer so that they can be read in any order I choose, rhythmically? I've tried doing this by using individual 'replace' messages, coupled with a random and route objects, but this seems insanely laborious and there must be a more efficient way of doing it. Is there a way of loading a whole folder's worth of sounds into the buffer?

Basically what I want to do is play these short sounds (the same note recorded on different instruments) in very quick succession (say 16ths), in a random order.

Any ideas?
Thanks

Peter Castine's icon

Off the cuff...

Concatenate them into one file and use 2d.wave~ ?

Or use sfplay~ together with sflist~.

Luke Hall's icon

You could load them up automatically by using [opendialog] to specify the folder you want to search in and then use the nifty populate and prefix settings of [umenu] to list all the files and then send them to a [poly~] which would simplify the loading of multiple files. An example is below, the first file should be named "autobuf" and is to be used in the [poly~].

lh

Max Patch
Copy patch and select New From Clipboard in Max.
Max Patch
Copy patch and select New From Clipboard in Max.

keyworth's icon

Thanks for the help guys, I'll check out your patches and let you know how I get on
Thanks again