Search code examples
actionscript-3miditempo

Does it make sense that these high numbers are midi tempo?


I am using midi library for as3 and receive these values as tempo (to the left the timeline and to the right the tempo)

1712 11424264

3632 11424264

3670 2325000

3708 1417992

Assuming that at time=0 the tempo=500000. The first valus is 200 times higher, how come it is too high? Perhaps I am reading it wrong? When I try to calculate the real time of notes using that tempo I get high values, which are probably incorrect.


Solution

  • The tempo isn't a value in beats per minute (like 120 BPM), which I have a feeling you are expecting to get. MIDI tempo is given in microseconds per quarter note.

    As for the values being 200 times higher, yes, that probably is a bit suspicious. Either you are asking the wrong question (ie, you are not receiving actual MIDI tempo events, but something else which is not a tempo change event), or the MIDI files are really crazy. The best way to confirm that is to simply load them in a sequencer and see the events there.