Drum Machine Step Sequencer
Program 16 or 32-step beats with synthesized drums, swing, velocity, presets and pattern export — entirely in your browser.
Step grid
16 steps · 124 BPM · 0% swing| Track | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Kick | ||||||||||||||||
Snare | ||||||||||||||||
Closed hat | ||||||||||||||||
Open hat | ||||||||||||||||
Clap | ||||||||||||||||
Low tom | ||||||||||||||||
Perc |
Pattern JSON
16 steps · 7 tracksClick 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
House preset at 124 BPMKick on steps 1, 5, 9, 13; claps on 5 and 13; hats on every 16thA classic dance skeleton that leaves room for accents and fills.
Two-bar fill
32 steps, duplicate bar, reverseThe first bar's hits appear in reverse order in the second halfPattern 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
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.
Shape the groove
Set tempo, swing and per-track volume or mute; tap four beats to estimate a tempo.
Start from a preset
Load house, boom-bap or drum & bass, then use clear, randomize, shift, reverse or duplicate bar to make it yours.
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
| Field | Type |
|---|---|
| bpm | number 60–200 |
| swing | number 0–75 |
| steps | 16 or 32 |
| tracks.Kick | number[] |
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
Related tools
Ambient Noise Generator
Blend white, pink and brown noise live in your browser — focus masking, tinnitus relief and sleep, with a built-in sleep timer.
Audio BPM Tap & Tempo Detector
Tap a beat or detect tempo from audio sample onsets with robust local signal analysis.
Audio dBFS, dBu, dBV & Voltage Converter
Convert digital and analog audio levels with professional and consumer references
Audio Tone Generator
Play sine, square, saw and triangle tones from 1 Hz to 20 kHz with sweeps, panning and WAV export.
Auto BPM & Key Detector
Detect a song's BPM, key and Camelot code with confidence scores, fully in your browser.
Binaural Noise Synthesizer
Create binaural beats with white, pink, or brown noise