Works on this device
Rhythm Calculator
Work out the timing of music from its tempo. Get note lengths and delay times in milliseconds, the length of a number of bars, the pitch change of a speed change, samples per beat, swing, polyrhythms and rhythm patterns.
Enter your values
Check these values
Your values are worked out in this browser. They are not sent to a server.
Your result will show here
Fill in the values, then choose Calculate.
Your result
How it was worked out
How to use this calculator
- Choose what you want to work out, for example Note lengths and delay times from a tempo.
- Enter the tempo in beats per minute (BPM) and the other values the page asks for.
- If the tempo does not count quarter notes, open More options and choose the note that is one beat.
- Choose Calculate. You can change the unit of a result, copy it, print it, or download it as a CSV file.
The formulas
- One beat = 60 ÷ BPM seconds, which is 60,000 ÷ BPM milliseconds.
- Note values: a whole note is 4 quarter notes, a half note is 2, an eighth note is 1/2 and a sixteenth note is 1/4.
- Dotted note = 1.5 × the normal note. Triplet note = 2/3 × the normal note.
- One bar of a time signature a/b lasts a × 4 ÷ b quarter notes. Time = bars × length of one bar.
- Tempo change: speed ratio = new tempo ÷ old tempo. With no time-stretch, the pitch changes by 12 × log2(ratio) semitones.
- Samples in one beat = sample rate × 60 ÷ BPM.
- Swing: long note = pair of notes × swing percent ÷ 100. The short note takes the rest of the pair.
- Polyrhythm a against b: the shared grid has as many steps as the least common multiple of a and b.
Worked example
At 120 BPM one beat is 60,000 ÷ 120 = 500 ms. An eighth note is 250 ms and a sixteenth note is 125 ms. A dotted eighth note is 375 ms. A triplet eighth note is 166.667 ms.
32 bars of 4/4 at 120 BPM: one bar is 4 beats of 500 ms, which is 2 seconds. The total is 64 seconds, or 1:04.000.
A track goes from 120 to 126 BPM. That is 5% faster. If you speed up the recording itself with no time-stretch, the pitch rises by 12 × log2(1.05) = 0.845 semitones.
With 60% swing on eighth notes at 120 BPM, each pair lasts 500 ms. The long note is 300 ms and the short note is 200 ms.
3 against 2 at 120 BPM: one cycle is 1000 ms. The rhythm of 3 plays every 333.333 ms. The grid has 6 steps of 166.667 ms.
Rhythm patterns
The pattern generator places a number of notes on a row of steps. The even kind spreads the notes as evenly as the steps allow. With 3 notes on 8 steps it gives x . . x . . x ., a rhythm found in a lot of dance music.
The other kind lets you go through every possible pattern by its number. With 5 notes on 16 steps there are 4,368 patterns.
Limits you should know
- The page works with numbers that you type. It does not listen to music, find the tempo of a song or make sound. To tap a tempo or hear a beat, use the Metronome.
- Results assume a steady tempo. Music that speeds up or slows down does not fit one number.
- The reverb option is a rule of thumb used in mixing. It is not a standard.
- The swing percent follows the use on many drum machines: the share of each pair that the first note takes. Some programs use another scale.
- Players do not swing by one fixed ratio. The numbers are a start for a sequencer, not a description of a real performance.