how do I…

Apr 11, 2009 at 5:07pm

how do I…

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?

Apr 11, 2009 at 5:18pm

Off the cuff…

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

Or use sfplay~ together with sflist~.

Apr 11, 2009 at 8:35pm

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~].


– Pasted Max Patch, click to expand. –

– Pasted Max Patch, click to expand. –
Apr 13, 2009 at 4:41pm

The following patcher is my RSI saver. It assumes the patcher is in the same folder as the samples (the folder you drop onto “drop a folder here”). I have another version that loads from any folder if that is of interest.

I think the “-1 2″ option for buffer~ is now redundant, right?

– Pasted Max Patch, click to expand. –
Apr 14, 2009 at 10:48am

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


You must be logged in to reply to this topic.