Browser-based metronome files · tempo map, accents, WAV, MP3 and MIDI

Click Track Generator

Build a click track with count-in bars, time-signature changes and tempo ramps, choose how each beat is accented, and save it as WAV or MP3 for your DAW or as a MIDI tempo map.

Tempo map

One row per section. When the two tempos differ the tempo changes steadily, beat by beat, across the section.

#BarsBeats per barBeat unitBPM at startBPM at endRemove
1

Accents and sound

Result

Length
0:18.00
Bars
9
Beats
36
  • Count-in: bar 0 at 0.00 s, 4/4, 120 BPM
  • Section 1: bar 1 at 2.00 s, 4/4, 120 BPM
File type

16-bit PCM at the working sample rate.

Tempo and time-signature events at the same positions as the audio.

Import the WAV at bar 1 of a new project, or the MIDI file to set the project tempo map. Tempo ramps are written as a tempo change on every beat.

Click Track Generator

Operator: Abdulla Al Fahad. How tools are built and checked

A metronome keeps one tempo. A song rarely does: it counts in, changes from 4/4 to 7/8 for a bridge, pushes the tempo up through a build and comes back. A click track that follows those changes lets a drummer play to the real shape of the song, and a DAW project that carries the same tempo map keeps recorded parts on the grid.

You describe the song as sections: a number of bars, a time signature, a tempo at the start and a tempo at the end. When the two tempos differ the tempo changes steadily across the section. The page works out every beat and subdivision, synthesises the clicks, and gives you the audio and a MIDI file of the same tempo and meter map.

Key features

  • Up to 40 sections and 1,000 bars, with a time signature of 1 to 32 beats on a half, quarter, eighth or sixteenth note, from 20 to 400 BPM, and a count-in of 0 to 8 bars
  • Linear tempo ramps inside a section, computed exactly beat by beat
  • Accent patterns (beat 1, all equal, grouped like 3+2+2, or your own A N S - pattern), and subdivisions into 2, 3 or 4 per beat
  • Five synthesised sounds, WAV or MP3 at 44.1 or 48 kHz, the total length and a MIDI file with the tempo map and optional click notes

How tempo ramps, accents and the MIDI tempo map are built

The beat is the note named by the lower number of the time signature: in 7/8 the BPM counts eighth notes, and in 6/8 it counts eighths as well, so 6/8 at 120 is six clicks every three seconds. The click track may be up to 30 minutes long and the audio is mono.

How it works

Inside a section of N beats whose tempo goes from b0 to b1, the tempo is b0 plus the slope times the beat number, with slope (b1 minus b0) divided by N. The time of beat i is 60 divided by the slope, times the natural logarithm of the tempo at beat i over b0, which is the integral of 60 divided by the tempo. A section with equal start and end tempos is plain 60 times i over b0. The next section starts at its own tempo, with no smoothing.

Accent levels give each click a strength: an accent is full level, a normal beat 0.72 and a soft beat 0.45. In a grouped pattern such as 3+2+2 the first beat is an accent, the first beat of each later group is normal and the rest are soft. Subdivision clicks are soft and scaled down once more.

The five sounds are computed, not recorded: a sine burst, a wood block with a noise tick, a short beep that holds for 60 ms and fades over the next 30, a cowbell from two square waves, and a decaying noise hi-hat. An accent has a higher pitch, or a longer decay for the hi-hat. The finished track is scaled so that its peak is 0.9 of full scale, and 0.3 seconds of tail are left after the last click.

The MIDI file is a format 0 file with 480 ticks per quarter note. A time-signature event is written whenever the signature changes, and a tempo event whenever the tempo changes, which in a ramp is every beat. The tempo is stored as microseconds per quarter note, the beat's length in seconds times the beat unit over four, times a million. Click notes use channel 10: note 76 for accents and 77 for the rest.

The total length is the sum of every beat's duration, so the figure shown above the export button is exact, and the MIDI file's last event falls on that same time.

Typical uses

  • A rehearsal ramp: one section of 24 bars of 4/4 from 80 to 120 BPM with eighth-note subdivisions, which a guitarist uses to take a riff from slow to performance speed.
  • A prog piece in 7/8 grouped 2+2+3: choose Group the beats and type 2+2+3, so the click accents the first beat and gives the groups of two and three a medium click.
  • A live set with a 4-bar count-in and a different tempo for every song, written as a row each, so one WAV plays the whole set list to the drummer's in-ears.
  • A film cue where the tempo drops from 96 to 60 BPM over 8 bars: the ramp keeps the beats evenly spaced in tempo, which a stepwise change cannot.

Building one

  1. Pick a preset or edit the tempo map: one row per section with bars, beats per bar, beat unit and the two tempos.
  2. Set the count-in bars and add a row for each change of tempo or meter.
  3. Choose the accent pattern, a subdivision and a sound, and check the total length and the section start times on the right.
  4. Press Render the click track, listen, and pick WAV or MP3.
  5. Download the MIDI file and import it into the DAW as the tempo map, with the WAV placed at bar 1.

Example

Count-in of 2 bars; section 1 of 8 bars in 4/4 at 120 BPM; section 2 of 4 bars in 7/8 ramping from 140 to 160 BPM

Accent beat 1 only, no subdivision, click sound. The count-in takes the meter and tempo of section 1.

The plan the page shows

Length 31.22 s (31.2166 s), 14 bars, 68 beats: 8 count-in beats, 32 in section 1 and 28 in the bridge.
Count-in starts at 0.00 s, section 1 (bar 1) at 4.00 s, section 2 (bar 9) at 20.00 s.
The 28 beats of the bridge take 11.22 s; at a steady 140 BPM they would take 12.00 s and at 160 BPM 10.50 s.
The MIDI file carries a tempo event on every one of those 28 beats.

Tips for best results

  • For a pattern like 3+3+2 in 8/8, the grouping box needs numbers that add up to the beats per bar of every section, or the page tells you which row disagrees.
  • Use the custom pattern A s N - to leave a beat silent: a silent beat is still counted, so the others stay on the grid.
  • Choose 48 kHz when the click goes into a video project; the audio length and the MIDI file stay the same.
  • The notes option is for drum machines and samplers that you want to trigger; leave it off if the DAW only needs the tempo map.

Things to check before you rely on it

The tempo steps to the next section's starting value without a ramp, so a tempo of 160 at the end of one section and 120 at the start of the next is a jump.

A ramp is linear in beats, not in time. Halfway through the beats the tempo is halfway between the two values, but the slower beats come first, so in the bridge above the first 14 beats take 5.80 of its 11.22 seconds.

How a DAW interpolates between tempo events is its own choice. This file writes an event on every beat, so a ramp follows the intended curve as closely as MIDI allows.

Common errors and how to fix them

The grouping adds up to 7 beats, but section 1 has 4 beats per bar
Change the grouping to numbers that add up to 4, or choose a different pattern.
At most 1,000 bars in total, including the count-in; this has 1,008
Shorten a section or drop the count-in. A long rehearsal ramp can be split across two exports and joined in the DAW.
Section 2: tempo must be 20 to 400 BPM
Both the start and the end tempo of a row are checked. A ramp that ends at 450 BPM needs a lower end value or a shorter beat unit, for example counting eighths at 200 instead of sixteenths at 400.

Best practices

  • Give the DAW the MIDI file first, then drop the WAV on bar 1; if the WAV and the grid disagree, the tempo map was not applied.
  • Keep sections to whole bars; the count-in and every ramp are written in whole bars, so a song that changes tempo mid-bar needs a short extra section.
  • Check the section start times in the list against the song's chart before recording, not after.

Why a ramp needs a logarithm

Beats are shorter when the tempo is higher, so a tempo that rises by the same amount on every beat spends less time on each later beat. The time to cross N beats is therefore not N times the average tempo's beat length; it is 60 over the slope times the logarithm of the final tempo over the starting tempo. For the bridge above that is 60 divided by 0.714 times ln(160/140), which is 11.22 seconds.

What the five sounds are for

The click and the hi-hat cut through a band without much pitch; the beep and the wood block have a pitch that makes the accent easy to hear in a quiet room; the cowbell carries over loud drums. All five are the same peak level after scaling, so the choice is about how they sound in your headphones, not loudness.

Frequently asked questions

I only know a song's tempo by ear. How do I get the number?

Measure it with the BPM Detector on this site, then type the result as the tempo of the first section. The detector gives one average tempo, so for a song that speeds up or changes meter, add a section at each change and read the tempos off the DAW's tempo track.

Can it read a tempo map from a MIDI file?

No. The tempo map is typed in as sections; to reuse a map from a DAW, read the tempo and meter changes off its tempo track and type them in.