wyskoj / midis2jam2

🎶 A remaster of MIDIJam, a 3D MIDI file visualizer.
https://midis2jam2.xyz
GNU General Public License v3.0
152 stars 21 forks source link

Fix crash when first tempo event is at non-zero time #163

Closed wyskoj closed 1 year ago

wyskoj commented 1 year ago

Fix the issue where an exception is thrown if the first tempo event in a MIDI file does not occur at time zero.

Per the SMF specification, the tempo shall be assumed to be 120 BPM. The easiest fix to this is just to add a tempo event of 120 BPM at time zero if no tempo event occurs then.

Fixes #160