How to make my poly~ granular patch play polyphonically?

Miles Davies's icon

My poly~ patcher plays all instances at the same time and/or they get cut off at the next bang. Ive looked all through the help files for voice messages etc., note $1 message doesn't seem to work. I'm trying to use it like a polyphonic synth where after one sample plays with receiving a bang, the next bang will start the next sample over lapping the first and so on instead of cutting off the previous one.

No word of a lie, I've spent the just about 20 hours trying to correct this. Any suggestions for this please?

Main patch and poly patch attached.

Thanks very much.

PolyParticleSampler.maxpat
Max Patch
Main Patch

granularplayerenv.maxpat
Max Patch
poly~ patcher


Source Audio's icon

send & receive in poly instance is giving you that trouble.

search for #0

and note $1 needs a number and not a bang
which is the only thing metro can produce

Miles Davies's icon

@sourceaudio Okay. Yes I see. so Can I somehow have a different send and receive name for each instance? Thanks.

Source Audio's icon

You can use target messages to adress specific poly instance
in case you don't use midi based voice management.
But simply said - don't use send - receive pairs if not really necessary,
I would use that only for general messages which all instances should receive.
That means also remove all that is common to all instances out of
there, and place it in main patcher, like preset object,waveform, function etc
For local send - receive inside of one poly instance one uses
#0 like s #0length and r #0length

#0 gets replaced by unique number in each poly instance


Miles Davies's icon

For local send - receive inside of one pily instance one uses #0 like s #0length and r #0length, #0 gets replaced by unique nunbmer in each poly instance

That's very useful, and I think its what I need. Thanks for your detailed reply.

Miles Davies's icon

Yay! Tested! Thanks again.