This comments out the reset of transition_beats that had been necessary to get MIDI triggers to work correctly. Testing doesn't show a problem with it (so far).
6801c2cac2