mc.groove with mc.target

Domenico Villani's icon

Hi I have a buffer with 4 channels that contains 4 different sound, I try to play them using mc.groove. When I use mc.target with mc.groove this should output a single channel with a single sound from the buffer, this doesn't always happen, sometimes the output is coming from a single channel of the buffer other times it outputs all the sounds mixed (this happens in the same patch). Does anyone know how to fix it? Thanks in advance

👽'tW∆s ∆lienz👽's icon

perhaps best way to explain this is to start with saying that 'mc.groove' won't work like this because it's not referring to an 'mc.buffer~'(therefore, buffer~ channels won't match up automagically with mc.groove~ channels the way the general MC system works).
but since there is no such object as 'mc.buffer~', instead you can use 'polybuffer~' similarly(but since polybuffer~ is still not an MC object itself, there's just some extra work to set each individual channel of mc.groove~ to address the proper buffer~ within polybuffer~ initially).... something like this:

Max Patch
Copy patch and select New From Clipboard in Max.

hope it helps 🍻