Forums > MaxMSP

Poly~ accessing global variables

Oct 31 2011 | 5:17 pm

It’s been a while since I’ve done anything fancy with poly~. I’m now trying to access some globals from my poly voices and I can’t seem to find a good way.

I know the normal send/receive work, but I want to know the variables at the time of voice creation, not having to send the parameters after the fact. What I’m after is that when I change the variables, every voice created from that point on will use the updated values.

I’ve tried [value] and [grab] but they both not seem to work inside a poly voice.

The only way I know to pass variables to each voice on creation is to append them to the note messages. But setting all parameter variables this way seems cumbersome. I feel there must be a way to access globally defined variables. One alternative could be to be to communicate them through a [coll] since they seem to be shared inside the voice, but that to me is too much of a nasty hack.

Are there any elegant solutions for this?

Viewing 1 post (of 1 total)

Forums > MaxMSP