Beat grid

The beat grid page reads a piece of music and finds its tempo, its meter, its first downbeat and the bar lines where its sections change, with the attributes for its audio clip. It runs in your browser, and the music file never leaves it.

1. The music

Choose a music file or drop one on the box: MP3, AAC or M4A, WAV, Ogg or FLAC, any format your browser plays.

How it finds them

  • Tempo. How much the sound gets louder, band by band, every 11.6 ms, compared with itself at every tempo from 60 to 200 BPM, and then refined over the whole file to a hundredth of a BPM. It is reliable on music with a steady pulse; on rubato or ambient music the grid is a metronome the analysis imposes.
  • Meter. 3 or 4 beats to a bar, from how much each beat's sound repeats 3 and 6 beats later against 4 and 8, and from where the kick and bass put their weight in the bar.
  • Downbeat. Of the beats in a bar, the one where the sound changes most, since new chords and bass notes start on bar lines, and where the kick and bass hit hardest.
  • Section changes. Bar lines where the two bars after rise or fall against the four bars before, by 2.5 dB or more over the whole sound or 3 dB in the kick and bass, one per change. Each is a candidate marker, named rise1, fall1 and so on, to rename and keep or drop.

Which tempo the music is counted in is a matter of feel, so the page can add a second reading.

  • When the half beats hit nearly as hard as the beats, it adds a double-time reading beside the first.
  • When every other beat hits clearly softer and half the tempo is the runner-up, it adds a half-time reading.

Each of the tempo, the meter and the downbeat is high, medium or low, from how far the winning answer is ahead of the next one. Noise or a held tone has no pulse to find, so all three are low, and the meter is low on music under about 8 bars. The file needs at least 8 seconds of music, and a silent file has nothing to find.

Check the downbeat by ear: it is the hardest of the three to find. The values are a starting point, and the attributes on the clip are what the composition uses.