The BPM to milliseconds formula
A quarter note lasts 60,000 divided by BPM milliseconds. Other note values are simple multipliers of the quarter note: an eighth note is half, a dotted eighth is three quarters, and an eighth-note triplet is one third.