An online drum machine is a browser-based 16-step sequencer that lets you program kick, snare, and hi-hat patterns by toggling cells across a grid and hearing the result loop back through Web Audio, with no software to install and no audio files to upload. The Lizely Online Drum Machine is built around exactly that workflow: three tracks, sixteen steps per bar, and a tempo input that accepts whole numbers from 40 to 240 BPM, where BPM means quarter notes per minute, matching the tempo definition documented by MusicXML. When you first load the tool it opens with a four-on-the-floor starter pattern so the loop is audible the moment you press Play, but every one of the 48 cells is editable. Sounds are synthesized in the browser — a sine oscillator with a falling pitch and decaying gain for the kick, freshly generated noise buffers shaped by high-pass filters for the snare and hi-hat — which means there are no sample libraries to load, no third-party licenses to inherit, and no account to create. This guide walks you through the first ten minutes with the tool: reading the interface, picking a tempo that matches the feel you want, building a beat, and understanding what the tool deliberately does not do.

how do i get started when i need to use online drum machine
Getting Started with an Online Drum Machine: First Beat

What You'll See When the Tool Loads

The interface has four moving parts, and you only need to recognize three of them to start. At the top sits the tempo input — a single field that takes a whole number from 40 to 240. Below it is the pattern grid: three rows labeled kick, snare, and hi-hat, each containing sixteen cells arranged left to right. The cells represent sixteenth-note steps inside one bar of four quarter-note beats, so every fourth cell lines up with a beat boundary. To the right of the grid sit three controls: Play, Stop, and Clear pattern. Play starts the loop, Stop releases audio resources, and Clear pattern turns every one of the 48 cells off so you can begin from silence.

The grid ships with a starter pattern already filled in: kick on every quarter-note position (steps 1, 5, 9, and 13), snare on beats two and four (steps 5 and 13), and a closed hi-hat on every eighth-note position (steps 1, 3, 5, 7, 9, 11, 13, 15). The phrase "four-on-the-floor" describes that pattern. Treat it as a starting point rather than a destination — replacing cells one at a time is the intended workflow.

Set the Tempo Before You Start Toggling

Tempo is the first decision because it controls how long every step lasts, and every later choice in the grid depends on that math. The tool follows the MusicXML convention: BPM means quarter notes per minute. With four sixteenth-note steps inside each quarter note, the duration of a single step is 60 divided by BPM divided by 4 seconds. At the default 120 BPM, that works out to 60 / 120 / 4 = 0.125 seconds per step, and the full 16-step bar lasts 0.125 × 16 = 2 seconds. You can verify the second figure by stepping through the multiplication on paper.

BPMStep duration (60 / BPM / 4)Full bar (16 steps)
400.375 s6 s
1200.125 s2 s
2400.0625 s1 s

The 40-to-240 range is a deliberate usability and scheduling guard. It is not a claim about the limits of musical tempo — slower or faster tempos simply sit outside the current input. Tempo input is also strict: only whole decimal numbers in that range are accepted. Empty input, decimal fractions such as 119.5, signs, exponent notation like 1.2e2, unit text like "120 bpm", and values outside the range all surface a recoverable error that lets you correct the entry and try again. Editing the tempo field during playback stops the current run and releases its audio context before applying the new value. That design prevents an old scheduler from continuing with a mixture of two tempos. After entering a valid tempo, press Play to start cleanly at step one.

Build Your First Beat Step by Step

Once you understand the interface and the tempo math, the actual programming takes five concrete actions. The Online Drum Machine follows this exact sequence:

  1. Enter a whole-number tempo from 40 to 240 in the BPM field. Pick a value that matches the feel you want — 80 to 100 for a laid-back groove, 120 for a neutral default, 140 and up for driving energy.
  2. Click any cell in the kick, snare, or hi-hat row to toggle that instrument on or off for that sixteenth-note step. A pressed cell means the instrument plays on that step; an unpressed cell means silence. Cells are independent, so you can layer any combination.
  3. Press Play to loop the synthesized beat. The moving step outline highlights the current position so you can see where you are in the bar.
  4. Press Stop when you want silence or when you want to change the tempo. Stop releases the audio context and clears the scheduling timer so the page is quiet.
  5. Press Clear pattern to turn every one of the 48 cells off and start fresh from silence. Use this whenever the existing pattern feels cluttered and you want to sketch a new idea from scratch.

Pattern edits made during playback are read by the next scheduling window, so you can build and refine in real time without stopping. The audible kick, snare, and hi-hat use their exact scheduled Web Audio start times, which is why the beat stays steady even when the main thread is busy.

Read the Moving Step Outline as the Loop Runs

Once Play is pressed, an outline sweeps across the grid from left to right, restarting at step one every sixteen steps. That outline is your visual metronome: it tells you exactly which step is sounding at any given moment, which makes it easier to hear whether your hi-hat is landing on the off-beat you expected or whether a snare hit is creeping forward or dragging behind. Because the scheduler polls every 25 milliseconds and places events up to 100 milliseconds ahead on the AudioContext timeline, the audible sources use the Web Audio clock rather than the JavaScript timer callback as the beat reference.

This approach reduces ordinary main-thread timing jitter, but it is not a digital audio workstation, an AudioWorklet engine, or a guarantee of identical rendering across devices. Heavy browser throttling, suspended tabs, device changes, and high system load can still affect what you hear. The shared scheduling logic builds deterministic step numbers, timestamps, and active-track snapshots, which is why a pattern that looks stable on screen stays stable in audio as long as the browser is not interrupted.

Common First-Time Snags and How to Avoid Them

Most beginners hit the same handful of small surprises in the first session. None of them are bugs, and all of them have a quick workaround. First, the tempo field is strict on purpose — decimal fractions, signs, exponent notation, unit text, and out-of-range values all surface a recoverable error rather than a silent acceptance. Type a clean whole number between 40 and 240 and the field accepts it.

Second, browsers require a user gesture before audio starts, so the AudioContext is created only inside the Play click. If you load the page, type a tempo, and never press Play, the page is silent on purpose. Press Play once and the loop runs.

Third, changing the tempo during playback stops the current run by design. The intended behaviour is that you stop, change the tempo, and press Play again to start a fresh bar at the new speed. This prevents already-scheduled events at the old tempo from overlapping a new schedule.

Fourth, keep your device volume moderate before pressing Play, especially with headphones — synthesized transients can sound louder on some output systems, and the snare and hi-hat are generated freshly on every hit so their tone can vary slightly across browsers and hardware.

What This Tool Doesn't Try to Be

The Online Drum Machine is intentionally small. It does not support swing, triplets, velocity, accents, per-track volume, or audio effects. It does not record, export, or render stems. It does not synchronize with MIDI devices or external clocks, and the time signature is fixed at four quarter notes per bar. These limits are deliberate: the tool is best for sketching straight sixteenth-note ideas, learning step sequencing, or testing a basic pulse. If you need production arrangement, exact inter-device synchronization, rendered stems, or latency calibration, transfer the pattern concept to a dedicated music application once you have a groove you like.

If you want a deeper walkthrough of how the 16-step grid itself works as a sequencing concept, the Beat Maker Online Explained: 16-Step Sequencer Basics guide covers the same pattern model in more detail. Either read is a natural next step once your first beat is looping cleanly in the browser.

For a deeper look, see How to Get Started With an Online Metronome.