How to calculate the time-length of a midi-file
问题 I am reading midi files in as3 (flash cs5) with the help of the helpful library that is called midas ( http://code.google.com/p/midas3/) - the midi-as3 library. I am trying to figure out a simple way to calculate the whole duration of the midi file (for example - total time of 4 minutes or 6 minutes...). I assume I could calculate the last note of each track + check the tempo and figure it out, but I was wondering if: Is the duration of the midi file is written somewhere in the data that I