MidiParser now works for cases when the time signature is 4/4 and when the midi file uses PPQ instead of SMPTE