Forums > MaxMSP

how do I…

April 11, 2009 | 5:07 pm

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


April 11, 2009 | 5:18 pm

Off the cuff…

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

Or use sfplay~ together with sflist~.


April 11, 2009 | 8:35 pm

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

– Pasted Max Patch, click to expand. –

– Pasted Max Patch, click to expand. –


baz
April 13, 2009 | 4:41 pm

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

April 14, 2009 | 10:48 am

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


Viewing 5 posts - 1 through 5 (of 5 total)