Question

Does anybody know formula ?

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

Was it helpful?

Solution

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.

OTHER TIPS

It is simply:

Time of 1 beat in ms = 1000 * 60 / BPM = 60000 / BPM

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.

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top