Hayterwave
Join the Discord

Home / Guides / How tempo sets the length of a bar

Guide

How tempo sets the length of a bar

Every timing decision in electronic music, from a delay time to a visual cut, comes from one piece of arithmetic: how long a beat lasts. Here is how to get from a tempo to a bar, a sixteenth note and a delay.

Beats per minute to seconds

Tempo is counted in beats per minute, shortened to bpm. There are 60 seconds in a minute, so seconds per beat is 60 divided by the bpm.

At 120 bpm a beat lasts 0.5 seconds. At 129.2 bpm it lasts 60 divided by 129.2, which is 0.4644 seconds.

From a beat to a bar

Most dance music is in four beats to a bar, written 4/4. A bar is four beats, so seconds per bar is 240 divided by the bpm.

The last line is the tempo given for the released track CONTROL YOUR BODY, which is described as 129.2 bpm. One bar of it lasts about 1.86 seconds. A change of 1.2 bpm moves the bar length by less than 0.02 seconds, so a plan made for 128 bpm still fits.

Smaller divisions

Divide the beat to get the grid the drums sit on.

NoteFraction of a beatLength at 128 bpm
Quarter10.469 s
Eighth1/20.234 s
Sixteenth1/40.117 s
Dotted eighth3/40.352 s

The dotted eighth matters for delay effects. A delay set to a dotted eighth against a straight sixteenth hi-hat pattern makes interlocking repeats, a sound common in techno and house.

From a time to a frequency

A repeating event has a rate in hertz, which is repeats per second. Divide 1 by the period.

Slow movements in a synthesizer, such as a filter sweep that follows the tempo, are low frequency oscillators set to these rates. Many instruments can lock the rate to the host tempo, so you do not type the number yourself, but knowing it helps you check that the lock is doing what you meant.

Why this matters for visuals

A visual that responds to a kick does not need to know the tempo, because it reads the sound. Planning a cut does. If you want a change to land on bar 17, the time is 16 bars times the bar length. At 129.2 bpm that is 16 times 1.858, about 29.7 seconds after the start of bar 1, provided the track starts on the grid. Check the first kick by ear, and slide the number if it sits slightly off.

Triplets and swing

A triplet divides a beat into three instead of two. A quarter note triplet at 128 bpm lasts 0.469 times two thirds, which is 0.3125 seconds. Swing delays every second sixteenth or eighth. Where the delay is a fixed fraction of the note, the arithmetic still works from the beat length above.

Common mistakes

Keep going

Join the DiscordWhat members get

Stuck on something this guide did not cover? Ask in the Discord.