I want to [send] some data in a local patch. How ?

Alexandre's icon

Hi,

I'd like to do what send/receive does exactly, to send floats or even lists to many receive points in my patch, including poly~ instances, but in a "local way". I mean : Sending only in this patch and its subpatches and abstrations inside a poly~.

I'd like this to be able, after, to load several instances of this big patch, which then will work without being in conflict with each other.

I was examining the pattr help files, but i don't find a way. I seems to me that the pattr system cannot send one data to multiple reception points at same time, but i may be wrong.

Is there a way to do this or not ?

Thanks,

Alexandre

Roman Thilenius's icon

one way is to name/rename your sends and recieves on loadbang
using a unique ID.

this requires three things:

1.
use a name like "#0_myname" on the top layer, and send this
name into subpatchers from there.

2.
use [forward] insetad of [send], because [send] can not be renamed.

3.
the patch itself must be a subpatch in order to make the #0_
thing work.

inside poly~ one could also utilize the instance number from
[thispoly~] to make unique IDs.

-110

Alexandre's icon

Thanks for the idea!

> the patch itself must be a subpatch in order to make the #0_
thing work.

Or then I could even put an random name using a composition of the name+a random number, perhaps using sprinf...