I have developed a Midi Player and have issues computing the overall length (in quarters) of Midi Files exported by Logic Pro X (SMF Format 1).
So far I calculated the length of a Midi file by determining the time for the "End of Track" for each track (including Track 0 - Tempotrack) and determining the longest one.
This worked fine, except for midi files exported by Logic. These files contain in track 0 (Tempo Track) an "End of Track" command at an extremely late time (about 8000 quarters), which turns a 4 min file into a 1 hour file.
The rest of the tracks, which contain the actual Midi events, have a correct "End of track" time ...
Now to my question: Can I ignore the tempo track for calculating the song length? Unfortunately, I can not find anything in the Midi Song Specs.