jeffbourdier / MIDIopsy

Windows application to view, play, and edit standard MIDI files
https://jeffbourdier.github.io/midiopsy/
MIT License
36 stars 3 forks source link

MIDI files generated from MIDI-Lector (MIDI Recorder) appear to not be working #46

Closed promidi closed 1 month ago

promidi commented 2 months ago

MIDI Files generated by MIDI-Lector (https://orgautomatech.fr/produit/midilector-2/) give out of bounds error:

image

Error can be reproduced with this midi file (Dropbox link)

https://www.dropbox.com/scl/fi/l3d5ujbjvm9bdxsq7k4nd/MM004.MID?rlkey=ejs7fcda2wbmmegy8e1z9u7s0&dl=0

jeffbourdier commented 1 month ago

Thanks for reporting this.

The example provided has 6 extra bytes at the end of the file that shouldn't really be there, but they're easy enough to ignore. MIDIopsy now checks for this when loading a file.

Resolved with commit 8d45d0a7a9f9ac50883e2c2f2c1356edbeea8241.