DevTools Logo

Drum Machine Step Sequencer

Drum Machine Step Sequencer

Program 16 or 32-step beats with synthesized drums, swing, velocity, presets and pattern export — entirely in your browser.

Runs in your browser

Step grid

16 steps · 124 BPM · 0% swing
Step —
Drum pattern grid
Track12345678910111213141516
Kick
Snare
Closed hat
Open hat
Clap
Low tom
Perc

Pattern JSON

16 steps · 7 tracks
All drum voices are synthesized in the browser with the Web Audio API — no samples are downloaded. Click Play to unlock audio.

Click a step once for full velocity, twice for a 70% accent and a third time to clear it. Spacebar-equivalent transport is available through the Play button.

Examples

Four on the floor

Input
House preset at 124 BPM
Output
Kick on steps 1, 5, 9, 13; claps on 5 and 13; hats on every 16th

A classic dance skeleton that leaves room for accents and fills.

Two-bar fill

Input
32 steps, duplicate bar, reverse
Output
The first bar's hits appear in reverse order in the second half

Pattern operations create variation without rebuilding each voice.

About this tool

Drum Machine Step Sequencer is a browser-only beat sketchpad. Seven synthesized voices — kick, snare, closed and open hats, clap, low tom and perc — are programmed on a grid of 16 or 32 steps and scheduled on the Web Audio clock with a 25 ms lookahead loop, so playback timing stays steady even when the interface is busy.

Every voice is generated from oscillators and a shared white-noise buffer: the kick sweeps 150→45 Hz, the snare pairs a bandpassed noise burst with a triangle body, hats use highpassed noise with short or long envelopes, and the clap stacks three staggered bursts with a tail. Per-step velocity cycles from full to a softer accent to off; swing delays odd 16ths by a chosen fraction of a step. Per-track volume and mute controls shape the mix before a gentle compressor glues it together.

Pattern operations cover clearing, deterministic randomization, shifting, reversing and duplicating a bar. House, boom-bap and drum-and-bass presets are editable starting points, and patterns export as JSON for import on another device. No samples are hosted and no files leave your browser.

What this tool does not do

  • Sounds are synthesized; there is no sample import or user-provided kit in this version.
  • Only one pattern is sequenced at a time; there is no song mode or chaining.
  • MIDI output and humanize options are not included in this implementation.
  • Playback requires a browser with Web Audio support and a user gesture to unlock audio.

How to use this tool

  1. Program steps

    Click a cell to turn it on, click again for a 70% accent and once more to clear. Use the 16/32 toggle for two-bar patterns.

  2. Shape the groove

    Set tempo, swing and per-track volume or mute; tap four beats to estimate a tempo.

  3. Start from a preset

    Load house, boom-bap or drum & bass, then use clear, randomize, shift, reverse or duplicate bar to make it yours.

  4. Play and export

    Press Play to unlock audio, then copy or download the pattern JSON; import it later to continue.

Use cases

Sketch beats

Capture an idea without launching a DAW or downloading samples.

Teach rhythm

Show how swing, velocity and step length change a groove.

Share patterns

Export JSON and import it on another machine to keep working.

Pattern JSON shape

FieldType
bpmnumber 60–200
swingnumber 0–75
steps16 or 32
tracks.Kicknumber[]

All seven track arrays must match the declared step count or the import is rejected.

Common mistakes

Mistake:Waiting for audible clicks before the first beat.

Fix:Browsers require a gesture to unlock audio; pressing Play provides it.

Mistake:Expecting swing to change the number of steps.

Fix:Swing only delays odd 16ths; the grid and pattern length stay the same.

Mistake:Importing a pattern with mismatched row lengths.

Fix:Each of the seven tracks must have exactly the declared number of steps.

Frequently asked questions

Do I need to download samples?

No. Every voice is synthesized with Web Audio oscillators and a noise buffer generated in the tab. The sequencer works offline and nothing is fetched from a server.

What is swing?

Swing delays every odd 16th note by a fraction of a step, creating a loping feel. The slider ranges from 0% (straight) to 75% (a heavily swung triplet-like feel).

How do I set per-step velocity?

Click a step for full velocity, click it again for a softer 70% accent, and a third time to switch it off. Accents are shown with a dimmer fill.

Can I export patterns?

Yes. The Pattern JSON panel shows the current tempo, swing, length and all seven velocity rows. Copy or download it, then paste it into Import on another device.

Does it keep playing when I switch tabs?

Audio scheduling continues on the Web Audio clock, though browsers may throttle background timers and animation; bring the tab back to resume smooth visual playhead updates.

References & standards