Synthesizer Help Needed

amoniker's icon

Hello all
I am creating a poly synth using max and have run in to a few issues.
The first and major issue is a stuck note that occurs randomly after playing for a bit. I've tried different configurations of my voice patch, but it seems poly may be the issue?

The second issue is that i need a better way to trigger the filter envelope, the way it is set up now with the toggle only slightly works. if i press a new note before i fully release the last note i was playing (say i'm playing a quick arpeggio), this cancels the triggering of the new envelope. try it out and you'll see what i mean. I think this happens because the toggle only reports on/off of the entire keyboard, not separate notes. Any ideas on how to create a new trigger for my adsr object?

any help for either issue is appreciated!

examplesynth1.maxpat
Max Patch
synth_voicee.maxpat
Max Patch
examplesynth11.maxpat
Max Patch