Account

What new tool do you want?

Video & Audio

Drum Machine & Beat Maker

Make beats in your browser — a 16-step drum sequencer with kick, snare, hi-hats, clap and more, preset patterns, swing and tempo — and export your loop as WAV/MP3.

How to use

  1. 1Click squares to add drum hits, or load a preset pattern.
  2. 2Press Play, adjust tempo and swing, then export your loop.

Frequently asked questions

What is a step sequencer?

A grid where each column is a 16th note in a bar and each row is a drum sound — click to switch hits on or off.

What does swing do?

It delays every second 16th note slightly for a looser, groovier feel.

Can I use the beats in my music?

Yes — the sounds are synthesized in your browser, so exported loops are yours to use.

Why there isn't a single sample file anywhere in this drum machine

Every drum sound is synthesized live from oscillators and filtered noise using the Web Audio API — there's no recorded kick.wav or snare.wav being played back. The kick is a sine wave oscillator that sweeps from 150Hz down to 45Hz over 0.45 seconds (the classic pitch-drop that gives a kick its thump), the snare layers a highpass-filtered burst of white noise with a short triangle-wave tone underneath, and the clap is three separate band-passed noise bursts fired a few milliseconds apart to mimic the slightly smeared timing of real hands clapping. Because every sound is generated from scratch by math rather than copied from a sample library, there's no licensing question at all about using the exported loop — that's a direct, verifiable consequence of the synthesis approach, not just a policy statement.

A worked example of how swing actually delays a note

At 100 BPM, one sixteenth note lasts 60 ÷ 100 ÷ 4 = 0.15 seconds. With swing set to 50%, every second sixteenth note (the off-beats) gets delayed by swing% × that sixteenth duration × 0.5 — so 0.5 × 0.15 × 0.5 = 0.0375 seconds, or 37.5 milliseconds late. That small, consistent delay on just the even-numbered steps is what turns a mechanically even 16-step grid into the loose, shuffled feel associated with swing — the odd-numbered (on-beat) steps never move, only the in-between ones.

Why exporting uses a completely separate rendering pass from playback

Live playback schedules each drum hit in real time against the actual audio clock, timed to stay a little ahead of playback so there's no audible stutter — but rendering a 4-bar loop for export uses a different mechanism entirely: an OfflineAudioContext, which computes the entire loop's audio as fast as the CPU allows (much faster than real-time) rather than playing it live, then hands back the finished buffer all at once. This is why pressing 'Render a 4-bar loop' produces a complete WAV/MP3 export almost instantly even for a complex pattern — it's not recording the live playback as it happens, it's recalculating the exact same pattern logic in a non-realtime rendering context built for this purpose.

Each hit is placed a tenth of a second early so the grid does not stutter

Pressing Play does not strike a drum at the instant you click. The machine looks about a tenth of a second ahead and schedules each hit early enough that you do not hear a gap, checking the clock about 40 times a second. The first hit comes a twentieth of a second after Play. At the default 100 BPM each of the 16 steps is 0.15 seconds, one sixteenth note. The amber outline is timed to when that hit is heard. Loudness sits at 80% so stacked drums do not immediately distort. Tempo runs from 60 to 180 BPM and swing from 0 to 75%. The grid opens on Four on the floor, with a kick on every quarter note. Click a drum's name to hear that drum once.

The download is always four bars at CD quality, plus half a second

Render a 4-bar loop does not record whatever you happen to be hearing. It builds exactly four bars of the pattern you have now, then adds half a second so the last hit can finish ringing. At the default 100 BPM that is 9.6 seconds of pattern plus 0.5 seconds, 10.1 seconds in all. The file is always stereo at 44,100 Hz. Listening uses your device's own rate, often 48,000 Hz, and it keeps looping until you press Stop, so the file can be four full bars even if you only listened through one. Swing matches what you hear: the off-beats are late by the same amount, and the on-beats stay put. The download name starts with the tempo, so 100 BPM begins beat-100bpm.

Related tools

More: Video & Audio