selecting random wav files

m1ndbullet's icon

so i'm creating a patch based around ambisoncs and granular synthesis. i have a gran sampler set up to a load/play message but i have 50 recorded sounds, how can a set up a system where after upon a click/bang a random sample is outputted

gwsounddsg's icon

There's a few ways you can do this, and you'll have to experiment with which one gets the exact results you want. One way is having a random object which selects a number, which changes the buffer on a groove~ object. Another way would be to have multiple sfplay~ objects where the random object presses play on one.

If you're trying to do this really fast, the groove~ object will probably be your best bet.

GW