fix midiparser timing issues