Midi Ticks
when one is creating a midi sequence, is there a method / formula to convert midi ticks to seconds and/or milliseconds
I assume you know the midi tempo of the quarter note.
If so then you can calculate it as follow:
tempo 60 = 1 quater note is 1 second
tempo 120 = 1 quater note is 0,5 seconds
The formula for seconds is 60/tempo
So if you have a tempo of 70 the formula to calculate a second = 60/70 = 0,85second
For the total length you need to know how many bars of quater notes you have.
If you have 100 bars of 4/4 that means you have 400 qauter notes. If you have tempo 70 the formula would be for the exact time
60/70 x400 = 342,85 seconds
Edit: corrected the formula
[Edited by - Jaap1978 on April 4, 2008 4:14:21 PM]
If so then you can calculate it as follow:
tempo 60 = 1 quater note is 1 second
tempo 120 = 1 quater note is 0,5 seconds
The formula for seconds is 60/tempo
So if you have a tempo of 70 the formula to calculate a second = 60/70 = 0,85second
For the total length you need to know how many bars of quater notes you have.
If you have 100 bars of 4/4 that means you have 400 qauter notes. If you have tempo 70 the formula would be for the exact time
60/70 x400 = 342,85 seconds
Edit: corrected the formula
[Edited by - Jaap1978 on April 4, 2008 4:14:21 PM]
Composer and Sound Designer
Jaap shoots! HE SCORES! :)
Nathan Madsen
Nate (AT) MadsenStudios (DOT) Com
Composer-Sound Designer
Madsen Studios
Austin, TX
Quote: Original post by Jaap1978
tempo 60 = 1 quarter note is 1 second
tempo 120 = 1 quarter note is 0,5 seconds
The formula for seconds is tempo/60
That doesn't work with the info you gave. Wouldn't it be 60/tempo?
Note: I don't know anything about music, but the math ain't adding up right.
Tempo is in b/n (notes per minute). We're calculating s/n (seconds per beat), right? We also know that there are 60s/m (seconds per minute). Therefore, it would be
(60s/m) / (tempo n/m) = s/n
In order to get the right units. Or more simply, 120 / 60 != 0.5, while 60 / 120 = 0.5.
Though I might really mean "quaternote" instead of "note", but the formula should still hold.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement