Advertisement

Midi Ticks

Started by April 04, 2008 09:37 AM
4 comments, last by phantom5869 16 years, 7 months ago
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]

Composer and Sound Designer

http://www.jaapvisser.com

Advertisement
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.
Yeah I was dreaming and I accidently switched...sorry!!

It should be indeed 60/temp

I will edit my post and put the right calculation.

Cheers Ezbez :) I think I scored in my own goal Nathan haha, but I had a rebound due to Ezbez :D

Composer and Sound Designer

http://www.jaapvisser.com

thanks everyone...I'll get cracking

This topic is closed to new replies.

Advertisement