Last updated: October 31, 2026 · Written by the Pitch Detectors Editorial Team
A rhythm pattern maker is an online step sequencer that lets you program drum grooves by toggling steps on a grid. Each column is a slice of musical time and each row is a drum sound; the pattern loops continuously. This free tool gives you a 16-step grid (expandable to 32 or 64), tempo and swing controls, classic drum kits, and one-click export.
The step sequencer is one of the oldest ideas in electronic music: divide a bar into equal steps, decide which steps trigger a sound, and loop it. This tool brings that workflow to your browser with sample-accurate timing.
This tool schedules every drum hit on the Tone.js Transport clock, wired directly to the
Web Audio API's hardware clock. Standard browser timers like setTimeout drift under CPU load;
the Transport clock pre-schedules each hit against audio-hardware timestamps, so a 120 BPM loop stays
locked to the grid.
Methodology: each active cell maps to a sixteenth-note subdivision of the pattern length. Tempo (40–240 BPM) sets the pulse; Division re-maps the grid to quarter, eighth, sixteenth, or triplet-sixteenth notes; Swing (0–60%) delays even-numbered steps. Two kits are built in — Classic and 505. Last reviewed: October 2026.
Every step sequencer runs on one formula. In 4/4 time, one bar holds 4 quarter-note beats, and each beat divides into 4 sixteenth notes — 16 steps per bar. The time each step occupies is:
Step duration (ms) = 15,000 ÷ BPM
(Because one quarter note lasts 60,000 ÷ BPM milliseconds, and a sixteenth note is one quarter of that.) Here is what that means at common tempos:
| Tempo | Typical genre | One step lasts | One bar lasts |
|---|---|---|---|
| 92 BPM | Boom-bap hip-hop | 163.0 ms | 2.61 s |
| 120 BPM | Pop / funk | 125.0 ms | 2.00 s |
| 128 BPM | House | 117.2 ms | 1.88 s |
| 140 BPM | Trap (half-time feel) | 107.1 ms | 1.71 s |
| 174 BPM | Drum and bass | 86.2 ms | 1.38 s |
Worked example: at 128 BPM, one step = 15,000 ÷ 128 = 117.2 ms. A four-on-the-floor kick on steps 1, 5, 9, and 13 lands every 4 × 117.2 = 468.8 ms — exactly one quarter-note apart.
On a 16-step grid in 4/4, not all steps are equal. Steps 1, 5, 9, and 13 are the quarter-note downbeats — the pulse you nod your head to. Steps 3, 7, 11, and 15 are the "ands" between beats, where off-beat hi-hats live. Everything else is sixteenth-note detail.
| Steps | Musical position | Typical role |
|---|---|---|
| 1, 5, 9, 13 | Quarter-note downbeats | Kick drum foundation |
| 5, 13 | Beats 2 and 4 | Snare / clap backbeat |
| 3, 7, 11, 15 | Off-beats ("ands") | Open hats, syncopation |
| 2, 4, 6, 8, 10, 12, 14, 16 | Sixteenth subdivisions | Hi-hat drive, ghost notes, rolls |
Start from a genre's rhythmic DNA, then change 2–3 steps to make it yours:
Swing delays every even-numbered step by a fraction of the step duration. The offset formula is:
Swing offset (ms) = (Swing% ÷ 100) × Step duration (ms)
Worked example: at 120 BPM with 58% swing, one step lasts 125 ms. Each off-beat step shifts later by 0.58 × 125 = 72.5 ms. That 72 ms delay is the difference between a robotic grid and a head-nodding groove — long enough to feel, short enough to stay locked.
Reference points: 0% is machine-straight; 54–62% is the classic MPC hip-hop pocket; 66.7% equals a true triplet shuffle (2:1 ratio).
The Export JSON button downloads your entire session — grid triggers, BPM, swing, kit, and pattern length
— as a small text file. The JSON maps each drum voice to an array of active step numbers, for example
{"kick": [1, 5, 9, 13], "bpm": 128}. To continue in a DAW:
Keep the JSON files as versioned sketches (chorus-v1.json, chorus-v2.json) —
they weigh kilobytes, and Import JSON reloads any of them for quick auditioning.
Pattern length is an arrangement decision, not just a bigger grid. 16 steps (1 bar) is for sketching and for sections that must feel hypnotic — techno intros, trap verses. 32 steps (2 bars) lets you write call-and-response: keep bar one simple, add a fill or variation in bar two. 64 steps (4 bars) fits a full phrase with an intro, build, and turnaround — ideal for choruses and drops.
A practical workflow: sketch the verse at 16 steps, expand to 32 for the pre-chorus with one added fill, and open the full 64 for the chorus. For bar-to-time conversions at your tempo, use the BPM to milliseconds calculator.
A polyrhythm layers two subdivisions over the same timespan — 3 evenly spaced hits in the time of 2 beats (the 3:2 hemiola). A polymeter layers two different bar lengths sharing the same step duration — a 4-step loop against a 5-step loop, realigning every 20 steps (their lowest common multiple).
On this grid, accent steps 1, 6, and 11 against straight quarter-note kicks for a 3-against-4 polyrhythm. For a polymeter, loop a 12-step phrase inside the 16-step grid by muting one voice's last 4 steps and let the downbeat drift.
| Approach | Best for | Trade-off |
|---|---|---|
| This step sequencer | Fast groove sketching, learning rhythm theory | 16-step grid, two kits, JSON export only |
| DAW piano roll (Ableton, FL Studio) | Full productions, velocity, automation | Paid software, steeper learning curve |
| Drum pads / finger drumming | Human feel, live performance | Requires practice; timing depends on you |
| Hardware drum machines (TR-8S, MPC) | Tactile workflow, stage use | Costs hundreds of dollars |
| Online metronome | Practicing timing against a click | No drum sounds or patterns |
Use this tool to find the groove in minutes, then move to a DAW when the arrangement needs velocity, effects, and mixing. Pair it with the Scale Finder when your loop needs a bassline in key.
This rhythm pattern maker is a free creative sketching tool for learning and inspiration. Patterns you program are yours to use in your own music.