1 big pack/unpack for a big poly~

I would rather use route.
Just send all messages prepended with a keyword and retrieve them via route inside the poly~ (that way you also don’t have to send tons of messages if there is only one that needs to be sent).

I would rather use route.
Just send all messages prepended with a keyword and retrieve them via route inside the poly~ (that way you also don’t have to send tons of messages if there is only one that needs to be sent).

HTH

Ciao,
_y

Thanks,

Do I need to use the set message for more than 1 keyword per prepend?
Like, when sending the notein to poly~, can I prepend midinote,pitch and velocity in one message?

you could collect pitch, velocity, duration, etc. into a list, then [prepend] an index for the whole list. Then you route within the poly~ (since route works with lists), unpack it, and send the values where they’re needed. I find this better than doing things separately, it makes more sense to me to keep similar sets of parameters together. So as another example, you could have the cutoff, gain, and resonance for a filtergraph~ collected into a similar list… or brightness, contrast, and saturation going into jit.brcosa. [route] is incredibly useful once you start using #1 etc. in abstractions or polys~.