Started this patch last night, and what I thought would be simple has turned into a large problem. I want my patch to be polyphonic, and for the sustain of each note to correspond to the length of time a note is held. However, I can't seem to get the poly~ and the adsr~ to play nice. The polyphony abstraction works, but only with a fixed sustain time. I am using the Velocity outlet of the notein object to trigger the adsr~. This would work in a monophonic patch, but when sent to the poly~, the messages are out of sync, causing the adsr~ to switch off when a note is played, and on when it is released.
Sorry for the spotty explanation, I have attached the patch and abstraction. I'm sure there is a simple fix for this I have overlooked and thanks in advance for any help given.