"adsr~" in a "poly~"

ffsjake's icon

i've made a polyphonic synth, containing a poly~ with my oscillator and adsr~.
I have 5 "In" objects, one for the synth circuit and 4 for the parameters on the adsr~, but if i play more than one note at a time, the adsr~ will only work on the first note and any other note will just be sustained.
anyone got an idea what i gotta do?

Jean-Francois Charles's icon

As far as I remember, there's a simple example of this working on Chris Muir's web site: http://www.xfade.com/max/examples/
Check the StupidSynth.

stringtapper's icon

It's difficult to know what might be going wrong in your patch without seeing it.

ffsjake's icon

the StupidSynth didn't do me much help. I've uploaded a picture of my main patch and the 2 variations on my "synth_voice" subpatch.

2765.Screenshot20111023at11.27.46AM.png
png
David's icon

I think you forgot to send a "target 0" message to the poly~ object.

ffsjake's icon

turns out that was the missing piece! thanks alot :)