The envelope timing is in ms, where the sequencer control is in MIDI ticks. They don't have a nice ratio to each other...in most cases, at certain BPMs they'll line up, but that's the root of the problem. So I'm having to break up the sequence input from the envelope, but I've needed to make the code more modular anyway. So I'm headed down that road now.
_________________________
Pioneer VSX-1018AH-K, PDP-5020FD, DV-79AVi
Axiom M22s, VP150, QS8s
Sony PS3, surround backs
-Chris