Tonejs/Midi

Note time and duration give incorrect timing for certain MIDI files

MysteryPancake opened this issue · 2 comments

For example, this MIDI file has a BPM of 230, but the note timing information is much slower.

Perhaps the BPM is not detected correctly for certain MIDI files?

The tempo information is preserved when opening this MIDI file in external DAWs such as FL Studio.

looks like the issue is that the tempo was not on the first track where it usually is. now it looks for tempo changes on any track so should be fixed

Thank you so much! It is fixed now.