Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Bug Reports

Reply
 
Thread Tools Display Modes
Old 04-19-2016, 09:14 AM   #1
james.fleming
Human being with feelings
 
Join Date: Apr 2016
Location: Boston
Posts: 3
Default 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
Attached Files
File Type: mid badmidi.mid (20.3 KB, 334 views)
james.fleming is offline   Reply With Quote
Old 04-19-2016, 09:29 AM   #2
Dstruct
Human being with feelings
 
Join Date: Jul 2006
Posts: 12,480
Default

Same in 5.18?
Dstruct is offline   Reply With Quote
Old 04-19-2016, 10:30 AM   #3
james.fleming
Human being with feelings
 
Join Date: Apr 2016
Location: Boston
Posts: 3
Default

Yep, just got 5.18, and loaded and verified. Looks the same.
james.fleming is offline   Reply With Quote
Old 04-19-2016, 10:58 AM   #4
DarkStar
Human being with feelings
 
DarkStar's Avatar
 
Join Date: May 2006
Location: Surrey, UK
Posts: 19,677
Default

? Am I looking at the wrong MIDI?



That was the MIDI on channel 1.
__________________
DarkStar ... interesting, if true. . . . Inspired by ...

Last edited by DarkStar; 04-19-2016 at 11:04 AM.
DarkStar is online now   Reply With Quote
Old 04-19-2016, 12:14 PM   #5
ivansc
Human being with feelings
 
Join Date: Aug 2007
Location: Near Cambridge UK and Near Questembert, France
Posts: 22,754
Default

Yep - I just opened it up in both reaper and Sonar Pro and see nothing out of the ordinary.

OP: what are you doing your file viewing in?
Dstruct: are you saying you too have this issue?
__________________
Ici on parles Franglais
ivansc is offline   Reply With Quote
Old 04-19-2016, 12:39 PM   #6
Dstruct
Human being with feelings
 
Join Date: Jul 2006
Posts: 12,480
Default

No, didn't test it.
Dstruct is offline   Reply With Quote
Old 04-19-2016, 03:01 PM   #7
DarkStar
Human being with feelings
 
DarkStar's Avatar
 
Join Date: May 2006
Location: Surrey, UK
Posts: 19,677
Default

On further diagnosis I get different results depending of the choices I make (both when dragging the MIDI file from Explorer onto the Arranger):

. . . .

[Big pics: url]https://i.imgur.com/hVo1dRb.png[/url] and https://i.imgur.com/Kxt6R0t.png

The distance and note length is doubled in the second one! But they both look wrong to me.

Here is the same MIDI in energyXT:
>>> https://i.imgur.com/n1ezuDP.png

-- the position is in beats.ticks
-- and the length is erroneously report as 1 tick to many.
__________________
DarkStar ... interesting, if true. . . . Inspired by ...
DarkStar is online now   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 07:53 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.