Using an online drum machine correctly comes down to three control surfaces working together: a whole-number tempo between 40 and 240 BPM, three clickable tracks on a sixteen-step grid, and three transport buttons named Play, Stop, and Clear. The Online Drum Machine follows exactly that contract. Each row of the grid represents one synthesised voice (kick, snare, hi-hat), each column represents one sixteenth-note step inside four quarter-note beats, and BPM here means quarter notes per minute, the tempo meaning documented for the MusicXML sound element. Once those inputs are respected, the tool generates a continuous loop using browser Web Audio nodes; nothing is uploaded, no external samples are fetched, and an account is not required. This article walks through the exact sequence of inputs the tool accepts, the math that drives the loop, the boundaries you should respect, and the small habits that keep playback stable so you can spend your time on the beat itself.

What Correct Use of a 16-Step Browser Sequencer Looks Like
Correct use of this sequencer begins with the grid rather than the transport controls. The grid is always four quarter-note beats divided into sixteen equal sixteenth-note steps; it never changes shape, regardless of tempo. Three rows sit next to it: kick, snare, and hi-hat. Clicking a cell toggles that instrument on or off for that step, so a single bar holds up to forty-eight active cells. The default pattern is a four-on-the-floor kick with snare on beats two and four and a closed hi-hat on the eighth notes, but that pattern is only a starting point and is meant to be replaced one step at a time.
Correct use also means recognising the small set of controls. There is a tempo input that accepts only whole numbers from 40 to 240, a Play button that creates the AudioContext on press, a Stop button that releases audio, and a Clear pattern button that turns every cell off at once. There is no record button, no swing slider, no track volume, and no export option; those features are outside scope by design. Knowing what the tool does not do is part of using it correctly, because it stops you from looking for controls that were never there.
Set the Tempo and Build the Pattern Step by Step
- Open the Online Drum Machine in a current desktop or mobile browser. No installation, plugin, or sign-in is required.
- Enter a whole-number tempo between 40 and 240 in the BPM field. Decimals, signs, exponents, and unit text are rejected with a recoverable error, so stick to integers such as 90, 120, or 160.
- Click any cell in the kick, snare, or hi-hat row to turn that instrument on for that sixteenth-note step. Click the same cell again to turn it off.
- Press Play. The tool creates an AudioContext on the press, schedules upcoming events one hundred milliseconds ahead on a twenty-five-millisecond polling cycle, and shows a moving outline marking the current step.
- Continue editing the grid while the loop runs. Pattern edits are read by the upcoming scheduling window, so there is no need to stop and restart for every change.
- Press Stop when you are done listening. Stop clears the scheduling timer, disconnects the tracked Web Audio sources, and closes the AudioContext so no nodes leak after playback ends.
- Press Clear pattern whenever you want to start with silence. Every one of the forty-eight cells turns off at once and you can rebuild from a blank grid.
Tempo Math That Keeps the Loop Steady
Tempo is the easiest place to introduce silent mistakes, so it helps to know exactly how the tool maps BPM to time. Because BPM is quarter notes per minute, one quarter note lasts 60 ÷ BPM seconds. The grid divides each quarter into four sixteenth notes, so a single step lasts 60 ÷ BPM ÷ 4 seconds. At the default 120 BPM, the worked values are 60 ÷ 120 ÷ 4 = 0.125 seconds per step, and a full sixteen-step bar lasts 0.125 × 16 = 2 seconds. That two-second bar is the audible cadence you hear on first press, and the same quarter-notes-per-minute definition is the one the W3C MusicXML specification documents for the tempo sound element.
At the lower 40 BPM boundary, a step lasts 60 ÷ 40 ÷ 4 = 0.375 seconds and the bar lasts 6 seconds. At the upper 240 BPM boundary, a step lasts 60 ÷ 240 ÷ 4 = 0.0625 seconds and the bar lasts 1 second. Crossing those boundaries is a deliberate usability guard rather than a claim about musical tempo limits, so the tool refuses out-of-range values rather than stretching itself. Editing the tempo while playback is running stops the current run and releases its audio context; pressing Play after entering a valid value starts cleanly from step one, which prevents an old scheduler from continuing at the previous tempo alongside a new schedule. The same scheduling architecture is described in the Beat Maker Online accuracy guide on BPM math and scheduling.
What the Sequencer Supports and What It Does Not
Respecting the boundary between supported and unsupported behaviour is part of correct use. The table below lists the controls and behaviours the product contract confirms, alongside the related features the same contract marks as out of scope.
| Capability | Status | Detail |
|---|---|---|
| Local kick, snare, and hi-hat synthesis | Supported | Web Audio nodes generated at playback time; no sample files loaded. |
| BPM input range | Supported | Whole numbers from 40 to 240 only. |
| Pattern editing during playback | Supported | Edits are picked up by the upcoming scheduling window. |
| Stop, restart, error, and unmount cleanup | Supported | Timer cleared, tracked sources stopped, AudioContext closed. |
| External sample upload or fetch | Not supported | No files are uploaded and no third-party library is loaded. |
| Export, recording, MIDI sync, or swing | Not supported | Out of scope for this focused version of the tool. |
| Custom time signatures or triplets | Not supported | Grid is always four quarter-note beats divided into sixteenth notes. |
| Velocity, accents, or per-track volume | Not supported | All active notes share the same envelope inside each track. |
Looking at the table, the only audio path that produces sound is the Web Audio synthesis row. Everything else is either input to that path or a hard limitation of the focused version, so trying to use a control that the table marks as not supported is the most common way to use the tool incorrectly.
Where Most Misuses of the Tool Originate
Most incorrect uses come from inputs the tempo field already rejects, or from expectations the grid cannot satisfy. Treat the recoverable error message as a hint: empty input, decimal fractions such as 120.5, signs like -100, exponent notation such as 1e3, unit text like 120 bpm, and values outside the 40–240 range are all refused, so the safe move is to retype a plain integer in range and press Play. The same principle covers pattern edits; toggling a cell twice cancels itself, but it is easy to lose track when many cells change quickly, so a single press of Clear pattern resets the grid to silence and lets a faulty pattern be rebuilt from scratch.
Another common mistake is treating the moving outline as the beat clock. The outline only marks the current step; the audible beat is the Web Audio start time of each scheduled source, which is why the loop stays steady even if the main thread is briefly busy. If playback sounds uneven or stutters, the most common causes are a backgrounded browser tab, a device change between speakers and headphones, or unusually high system load that throttles the twenty-five-millisecond poll, none of which are bugs inside the tool, so the fix is to bring the tab to the foreground and lower system load. For broader do-and-don't advice on pattern editing, the Beat Maker Online tips and common mistakes guide covers adjacent habits that complement the rules in this article.
Audio Setup and Playback Habits That Affect What You Hear
Correct use does not end at the grid. The W3C Web Audio API specification only allows audio to start after a user gesture, which is why the tool waits for Play before creating an AudioContext; that single click is what gets sound out of the speakers at all. After playback begins, lowering the device volume to a moderate level avoids sudden transients on headphones and external monitors, because the kick uses a brief sine sweep and the snare and hi-hat deliver short noise bursts that can read louder on some systems. The three sounds are synthesised fresh on each hit, so their exact tone can vary with browser audio implementation, sample rate, output hardware, and the random noise generated per strike; that variation is expected and is not a sign of a faulty tool.
Playback uses a look-ahead scheduler that places the next events up to one hundred milliseconds ahead on the AudioContext timeline, polled every twenty-five milliseconds. This architecture reduces ordinary main-thread jitter, but heavy throttling, suspended tabs, or operating-system audio latency can still affect what you hear. For sketching straight sixteenth-note ideas, learning step sequencing, or testing a basic pulse, the tool is fit for purpose; for production arrangement, sample-accurate synchronisation across devices, rendered stems, or latency calibration, transfer the pattern concept to a dedicated music application rather than expecting the in-browser sequencer to stretch beyond its contract.