tags:

views:

397

answers:

1

i am working on midi project and i wanted to visualize the midi Music like Spectrography of Mp3 music... I want to know how to convert Midi Ticks to Actual playback seconds...Like if there is a midi tick in PPQ ( Pulse per quarter note) for example 1120.is there a formula to convert it into real world playback seconds ?

+2  A: 

The formula is 60000 / (BPM * PPQ) (milliseconds).

Where BPM is the tempo of the track (Beats Per Minute).

(i.e. a 120 BPM track would have a MIDI time of (60000 / (120 * 192)) or 2.604 ms for 1 tick.

If you don't know the BPM then you'll have to determine that first. MIDI times are entirely dependent on the track tempo.

Aaronaught