Want a beat to practise over, or a quick sketch for a song idea? This free drum machine gives you a 16-step sequencer with kick, snare, hi-hat and clap, three starter presets, and a tempo control from 60 to 180 BPM. The drums are synthesized live in your browser with the Web Audio API — no samples, no app, no account.
Click squares to turn hits on or off, press Play, and the bar loops until you stop it. A rock beat is kick on beats 1 and 3, snare on 2 and 4; a house beat is kick on every beat. Keep the tempo with the Metronome when you practise over it, or find the tempo of a track to copy with the BPM Tap Counter.
How to use
- Pick a preset — Rock, Hip-hop or House — or press Clear all to start empty.
- Click squares to add or remove hits. Step 1 is the first beat of the bar.
- Set the tempo with the slider, then press Play beat.
- Press Stop when you are done, and change the pattern while it plays.
Why use Toolsvine
Beat apps want subscriptions for a grid of sixteen squares. This one is the grid: four synthesized drum sounds, a steady scheduler, and presets that show how a real beat is built, all in a page that opens instantly. Because the drums are synthesized, not sampled, there is no audio library to download and no licensing worry, and the timing comes from the audio clock, so the loop never drifts.
How does the drum machine make its sounds?
Each drum is a small synthesis recipe. The kick is a sine wave whose pitch falls from 150 Hz to 45 Hz in 120 milliseconds — that fast drop is what makes a kick feel punchy — while its volume fades over 280 milliseconds. The snare is white noise through a bandpass filter centred at 1,800 Hz with a short 180-millisecond decay, which gives the crack of a drum head. The hi-hat is the same noise through a highpass filter at 8,000 Hz with a 50-millisecond decay, so it ticks. The clap is a burst of filtered noise at 1,200 Hz that mimics hands clapping together.
Timing comes from the same lookahead scheduler as the metronome: the tool queues steps 120 milliseconds ahead on the Web Audio clock, so a busy tab cannot shift a beat. At 120 BPM a sixteenth-note step lasts 125 milliseconds and a full bar lasts 2 seconds.
Worked example: building a rock beat at 120 BPM
Load the Rock preset at 120 BPM and look at the grid. The kick fires on steps 1, 5, 9 and 13 — the four quarter-note beats of the bar. The snare fires on steps 5 and 13, which are beats 2 and 4, the backbeat. The hi-hat fires on every other step: 1, 3, 5, 7, 9, 11, 13 and 15, which is eighth notes. Each step is 60 divided by 120 divided by 4, which is 0.125 seconds, so the bar is 16 times 0.125, which is 2 seconds. The count is: kick and hat, hat, snare and hat, hat — the skeleton of nearly every rock song ever recorded.
| Preset | Kick steps | Snare steps | Feel |
|---|---|---|---|
| Rock | 1, 5, 9, 13 | 5, 13 | Four on the floor |
| Hip-hop | 1, 8, 11 | 5, 13 | Laid-back groove |
| House | 1, 5, 9, 13 | 5, 13 | Kick every beat |
What is a 16-step sequencer?
A bar of 4/4 music holds four quarter-note beats, and dividing each beat into four gives sixteen sixteenth-note steps — the smallest grid most drum machines use. Step 1 is beat 1, step 5 is beat 2, step 9 is beat 3, and step 13 is beat 4, so the odd-numbered steps 1, 3, 5 and 7 are where the eighth notes fall. Once you know that map, reading any preset is easy: hits on 1, 5, 9 and 13 mean a four-on-the-floor kick, and hits on 5 and 13 mean the snare backbeat.
Start with the Rock preset and change one thing at a time: move a kick to step 11 and hear the groove shift, or remove every second hi-hat and hear the beat breathe. Small changes make big differences in a 16-step grid, which is why producers sketch with patterns first and worry about the details later.
Frequently asked questions
What is 16 steps in a drum machine?
A bar of 4/4 music has four beats, and each beat divides into four sixteenth notes, making sixteen steps. Step 1 is beat 1, step 5 is beat 2, step 9 is beat 3, and step 13 is beat 4. The grid is a map of the bar: an on square means the drum fires at that moment, an off square means silence.
What is the difference between rock, hip-hop and house beats?
Rock puts the kick on beats 1 and 3 and the snare on beats 2 and 4, with eighth-note hi-hats. House puts the kick on every beat with a snare or clap on 2 and 4 and offbeat hi-hats. Hip-hop moves the kick off the beat — on steps 1, 8 and 11 in our preset — which gives it the laid-back swing that defines the genre.
Why does my beat drift out of time?
It should not. The drum machine schedules steps on the Web Audio clock with a 120-millisecond lookahead, so the timing stays accurate even if the browser tab is busy. If a beat sounds late, it is usually the speaker or Bluetooth headphones, which add their own delay of 100 to 300 milliseconds. Wired headphones or a laptop speaker give the tightest timing.
Can I save or export my beat?
Not from this tool — it is a practise sketchpad, not a full workstation. The pattern lives in the page and resets when you reload. To keep a beat, note which steps are on for each track, or record the output with a screen recorder and trim the audio. The kick, snare, hi-hat and clap steps are simple enough to copy into any other drum machine in a minute.
What BPM should I use for each style?
Rock usually sits at 110 to 140 BPM, hip-hop at 80 to 100 BPM, house at 120 to 130 BPM, and a slow ballad at 60 to 80 BPM. At 120 BPM a bar lasts 2 seconds and each step is 125 milliseconds. Start at the slow end of the range while you are learning a pattern, then raise the tempo in steps of 5 BPM.
Can I use the drum machine on my phone?
Yes. The grid buttons are large enough to tap, and the sound plays through the phone speaker or headphones. Keep the tab open and the screen awake while it plays, because some phones throttle background tabs and the loop may pause. For the tightest timing, use wired headphones rather than Bluetooth.