I need help creating a gate counter for an envelope trigger system, sort of an easy legato function in core. Example: There are 3 keys being pressed in sequence, 1, 2 and 3. Gate 1 triggers the envelope, 2 and 3 do not trigger the envelope. Gate 3 will be released first, then 2 will be released and them 1 as the last note off event. I need the envelope to trigger on the first note and not re-trigger on any added notes, and only release the envelope when all keys are released regardless of the order they were pressed or released in. I'm trying with read and write modules but I think I have my ordering wriong. does anyone have any examples of how to do this? Thanks.