1

Does anybody know formula ?

I tried following: 1000 / ((BPM * 24) / 60). But seems not correct.

Nik Reiman
  • 39,067
  • 29
  • 104
  • 160
user1195202
  • 1,423
  • 1
  • 16
  • 20

4 Answers4

6

I don't think my answer is MIDI-specific, but to convert beats-per-minute to ms-per-beat, would this work?

ms_per_beat = 1000 * 60 / bpm

In other words, I think you have an extra "24" in there.

Rob I
  • 5,627
  • 2
  • 21
  • 28
2

It is simply:

Time of 1 beat in ms = 1000 * 60 / BPM = 60000 / BPM
Will Pragnell
  • 3,073
  • 1
  • 20
  • 21
  • Will - doesn't this put units of time on the bottom, when @user1195202 is requesting they show up on the top? – Rob I Mar 12 '12 at 21:35
  • 1
    You're absolutely right... in my haste I wrote it the wrong way round! I'll edit it to be correct. – Will Pragnell Mar 12 '12 at 21:38
1

It looks like your formula is assuming data coming from a standard midi file, where tempo is expressed in terms of ticks, where there are 24 ticks per quarter note. It's not giving you ms per beat, it's giving you ms per tick.

bgporter
  • 35,114
  • 8
  • 59
  • 65
0

I wrote an article on converting BPM to MS

and I made an online app called a Delay Time Calculator that does just that including giving you dotted and triplet notes