Hey, I would like to know. Is it possible for a midi 1.0 file to have tempo message at negative ticks? And if they can have that, should I assume that such a tempo is in effect at tick zero and forward or are they so illegal that I should ignore them and assume 120bpm?
A MIDI 1.0 standard MIDI file can't have "negative ticks". If you are seeing negative ticks in some MIDI file software, I suspect it is a bug or some strange handling of a unusual MIDI file.
I enjoy looking at unusual MIDI files that cause problems and bugs. If you can provide a link to the MIDI file or tell more about where it came from, I would enjoy taking a look at it.
Thanks. I havent actually found one, just wanted to make sure how to handle it if I did. 🙂
Found one. This one has midi events at tick -3460101601568623048 according to java's midi system.
Nevermind, it was java's long integer that overflowed.
You should ignore any tempo messages (or other events) that appear at negative ticks. Such an occurrence indicates a non-compliant or corrupted MIDI file.
For the purpose of playback and interpretation, if there is no valid tempo message at or before tick zero, you should assume a default tempo of 120 BPM. This is the standard default tempo for MIDI files when no explicit tempo message is present.