Crazy, right? I wouldn't have thought so, but apparently it's like asking for a squishy made entirely of syrup.
I'm trying to make a subpatch which will perform operations on a few "streams" of data (channels, in this case), the number of "streams" (channels) to be determined by the initialization argument. This much has been OK:
(the value) (a counter)
| |
| [symbol $1-tweaker(
| /
| /
[send $1 $2]
but [receive] has no inputs, so I can't figure out how to attach a counter (ie, [receive $1-tweaker] ) to it.
If it helps make my question clear, I'm moving values around between 5 speakers, but I'd like to make my subpatch have the same behavior for 2 speakers, or 80, in case Francois Bayle calls me.
This is similar, but not exact:
http://puredata.hurleur.com/sujet-6552-dynamically-patch-port-numbers-udprecive-object
I think I got at the core of the Coalman's thread, but mod & Maelstrom's patch(es) both used $0- in the [receive] boxes. I need something like $1-, because I want ANY NUMBER of [send] and [receive]s to run in this subpatch/abstraction.
Thoughts?