Answer the question
In order to leave comments, you need to log in
How to convert beats per minute (bpm) to milliseconds?
I need to do something like a metronome in Java.
The bottom line is that the user enters the number of bpm (beats per minute), and the method that creates a delay in the sound playback loop takes the number in milliseconds. I need to proportionally convert bpm to delay in milliseconds.
I don’t understand how to do this, because the number systems are completely different.
Answer the question
In order to leave comments, you need to log in
There are 1000 milliseconds in one second.
There are 60000 milliseconds in one minute
. Let's say there are 120 bpm, then 60000 / 120 = 500 , that is, one beat every 500 milliseconds.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question