fix tempo issues in midiparser