patcher send / receive

Feb 9, 2006 at 11:26am

patcher send / receive

hey guys

is there a set of send / receive objects that communicate only inside a patcher (kind of like pv does)…. this would be pretty useful inside poly~ objects.

or am i stupid and the whole pattr deal solve this?


Feb 9, 2006 at 11:36am

You can use #0- in the beginning of names, to generate an unique nr when an
instance of a patch is created. If you use this for your send/receives
inside poly, every instance/voice has it’s unique id.


Feb 9, 2006 at 11:43am

thanks a lot, that did it


Feb 9, 2006 at 11:50am

On 9 Feb 2006, at 11:26, Federico wrote:

> is there a set of send / receive objects that communicate only
> inside a patcher

This is something of a FAQ. There’s a semi-hack to use generated
local symbols with “#0″ as a prefix; this will be expanded into a
unique symbol for the patcher (and any immediate sub-patchers
embedded using [p xxx]. So you can use [send #0_postfix] and [receive
#0_postfix] and they’ll be patcher-local.

– N.

nick rothwell — composition, systems, performance — http://

Feb 9, 2006 at 11:52am

And there is a very well-documented example of the #0- technique in the
Vocoder example patch. Worth reading. As are the other examples and

Also, you can adapt the technique to use an explicit #digit argument if
you want to allow several instantiations of an abstraction to share
data, but have another group of instantations sharing a different group
of data, and so on.

– P.

————– ————–
Peter Castine | ^
| Litter Power & Litter Bundle for Jitter | | iCE: Sequencing, Recording, and Interface Building | for Max/MSP
| Extremely cool


You must be logged in to reply to this topic.