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

Dec 19, 2012 at 9:57am

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

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

#65754
Dec 19, 2012 at 12:19pm

Try this…

– Pasted Max Patch, click to expand. –
#236845
Dec 19, 2012 at 12:21pm
– Pasted Max Patch, click to expand. –

this?

#236846
Dec 19, 2012 at 12:22pm

damn beaten to it :P

#236847
Dec 19, 2012 at 10:48pm

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

#236848

You must be logged in to reply to this topic.