Help Please? Trying to relate groove~ object name to instances of polybuffer~

SometimesJasmine's icon

I want to create a patch which loads all the samples I have stored in a specified location and then generates a sample at random when triggered.

I've set up polybuffer~ to create buffers for each sample, so far so good, but when it comes to playing the samples back I can't find a way to relate a groove~ object to the buffers stored in polybuffer~ without having to manually create and name groove~ objects for each of the buffers I have created. I'm sure there's an easier way of doing this, as in setting up a groove~ object where the groove name is polybuffername.#1 and I can control the index number by sending random numbers to groove.

Is there a way of doing this, or can anyone suggest another solution for my problem? Requirement is just to trigger playback of a sample chosen at random from a specified location.

Any help would be greatly appreciated....

Rick's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Try this...

LiamCormacGould's icon
Max Patch
Copy patch and select New From Clipboard in Max.

this?

LiamCormacGould's icon

damn beaten to it :P

SometimesJasmine's icon

This is perfect, exactly what I needed - thanks so much for the help!