Forums > MaxMSP

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

December 19, 2012 | 9:57 am

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


December 19, 2012 | 12:19 pm

Try this…

– Pasted Max Patch, click to expand. –

December 19, 2012 | 12:21 pm
– Pasted Max Patch, click to expand. –

this?


December 19, 2012 | 12:22 pm

damn beaten to it :P


December 19, 2012 | 10:48 pm

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


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