looking to use an fm or additive synth and want to know how to sustain a note.
basically i want to be able to recognise key on and key off (using key & keyup) as the duration of the note and have either an envelope or something control the attack and sustain (for the duration of the key held) and release (when the key is released via keyup)
key - send note number message and sustain and/or hold until
keyup - send note off message - release
does that make sense?
any help or pointers greatly 'predicated