Beat Pattern Lab

Online drum machine

Program a beat on a 16- or 32-step grid, add accents, ghost notes and swing, chain patterns into a song, and download WAV or MIDI. No install, no account.

50%
Pattern
Steps
Song:
1
e
&
a
2
e
&
a
3
e
&
a
4
e
&
a
Click adds
7
Kick: drag to set each step's level (0 = off, 9 = accent)

Space bar starts and stops. Click a sound's name to hear it and edit its levels below the grid. Drag across squares to fill several at once.

Each one loads into the machine above with its tempo and swing. Change anything, then copy the link to keep your version.

  • Rock beat
    110 BPM · 2 patterns

    Eighth-note hats, snare on 2 and 4, kick on 1, 3 and the “&” of 3. Pattern B is a fill; song mode plays A A A B.

    Load
  • Simple funk
    96 BPM · swing 54% · 2 patterns

    Ghost notes on the last 16th of beats 2, 3 and 4, kick on the “&” of 1 and 3, open hat on the “&” of 4.

    Load
  • Four on the floor
    124 BPM

    Kick on every beat, clap on 2 and 4, open hat on every off-beat “&”. The dance-music default.

    Load
  • Boom bap
    90 BPM · swing 60%

    Hip-hop groove with lazy, swung eighth-note hats (8th swing at 60%) and a kick that lands before beat 3.

    Load
  • Shuffle
    100 BPM · swing 66%

    Swing set to 66% on eighths, so every “&” lands on the last note of a triplet: the blues shuffle feel.

    Load
  • Bossa nova
    128 BPM · 2 bars

    A two-bar (32-step) pattern: cross-stick plays the bossa clave, kick plays the surdo rhythm, hats keep straight eighths.

    Load
  • One drop
    76 BPM · swing 58%

    Reggae: nothing on beat 1, kick and cross-stick together on beat 3, hats on the off-beats.

    Load
  • Half-time
    140 BPM

    One backbeat per bar (beat 3) under 16th-note hats. At 140 BPM it feels like 70.

    Load

Reading the grid

One square is a 16th note. Count each beat as 1 e & a, so 16 steps make one bar of 4/4 and 32 steps make two.

1e&a2e&a3e&a4e&aSnareghost (3)normal (7)accent (9)Hats, 50%Hats, 66%

At 66% every second 16th starts two-thirds of the way through its pair, where a triplet's last note falls. At 100 BPM that is 48 ms late.

Levels. A square's brightness is its level from 1 to 9. Ghost (3) is a barely-there note, Normal is 7, Accent (9) gets a yellow bar. Select a sound to drag its levels in the lane under the grid.

Swing. Every second 16th (or every second 8th) moves later so the groove leans back. 50% is straight, 66% is a triplet shuffle. The swing and timing guide lists the offsets in milliseconds.

Hats and songs. A closed hat cuts off a ringing open hat, as the pedal does on a real kit. Loop pattern repeats one pattern; Play song plays the chain, for example A A A B for three bars of groove and a fill.

What you can take away

WAV, ring out
16-bit stereo, 44.1 kHz. Your loops plus 2 seconds, so a crash on the last step fades out naturally.
WAV, loop-ready
Exactly the loop length (8 bars at 120 BPM is 16.000 s). The ring-out is folded back to the start, so the file repeats seamlessly.
MIDI
One drum track on channel 10, 480 ticks per quarter note, swing baked into the note positions, levels as velocities.
Link
The whole song in the address: tempo, swing, kit, every step, all patterns, song order and mixer. Nothing is saved on a server.

Need a drum clip with your own note numbers, for a drum rack or a sampler? The step sequencer lets you remap every row before you export. Teaching rhythm? See the drum machine in music class.

Questions

How do I make a beat with this drum machine?
Press play, then click squares in the grid. Each row is a sound and each column is a 16th note, so four columns make one beat. Start with kick on 1 and 3 and snare on 2 and 4, then add hats. The Click adds buttons choose whether a click places a ghost note, a normal hit or an accent.
Is the timing steady in a browser?
Yes. The machine doesn't play notes from a timer. Every 25 ms it schedules the notes that start in the next 120 ms directly on the audio clock, at times worked out from the tempo, step number and swing. A busy page can delay the scheduler a little, but not the notes it has already placed.
Where do the sounds come from?
They're synthesized in your browser from oscillators, filters and noise, the way analog drum machines make sound. No sample packs are downloaded. The Analog kit has a long, boomy kick and softer hats; Punchy has a short kick with a click and brighter snare and hats.
Can I use the beats in my music?
The patterns you program are yours, and the sounds are generated by code rather than copied from recordings. We can't promise that a beat doesn't resemble someone else's work or that it's cleared for every commercial use, so if you release music, checking that is up to you.
How do I share a beat?
Use Copy link. The link holds the whole song: tempo, swing, kit, every step's level, all patterns, the song order and the mixer. Whoever opens it hears exactly what you made, and nothing is stored on a server.
How do I get the beat into my DAW?
Download MIDI for a drum clip on channel 10 with General MIDI notes (kick 36, snare 38, closed hat 42, open hat 46), or download a loop-ready WAV that is exactly as long as your loop so it repeats without a gap.