Incorrect parsing of .mid file (FIXED)
Hello, we have a midi file where it looks like Reaper parses the MBT incorrectly following a BPM change event. I've attached the file. You can see the bug in the "EVENTS" track.
Reaper lists the EVENTS track like so:
Index MBT
526 46.1.000 0.0.60 D0
527 46.1.235 0.0.60 C#0 <- this is the bug...
But looking at the midi file (using 2 different parsers), the events are:
tick SECONDS MBT
86400 0:01:30.002 46:1:000 NOTE_ON channel=1 note=26 (D1) velocity=100
86460 0:01:30.065 46:1:060 NOTE_OFF channel=1 note=26 (D1) velocity=64
86640 0:01:30.254 46:1:240 NOTE_ON channel=1 note=25 (C#1) velocity=100
So there's the bug. Reaper says it's at 46.1.235, but it's really at 46.1.240, the delta ticks are clear.
Interestingly, there is a tempo shift at 46:1:005:
0:01:30.008 46:1:005 TEMPO 119.20 bpm = 503355 us/quarter
which is exactly before Reaper gets it wrong. Interesting too that Reaper is off by 5 ticks, and the tempo shift is at 46:1:005, five ticks in.
I've attached the .mid file. We are using Reaper 5.12/x64 rev ef6009 Jan 21 2016.
For our usage, tick accuracy is very important! Thank you. -James
|