The envelope timing is in ms, where the sequencer control is in MIDI ticks. They don't have a nice ratio to each 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 PDP-5020FD, Marantz SR6011
Axiom M5HP, VP160HP, QS8
Sony PS4, surround backs