Home › Audio & Video › Drum Machine

Drum Machine

Program a beat on a 16-step grid with kick, snare, clap, hi-hats, toms and percussion. Pick a synthesized kit, set the tempo and swing, start from a preset groove and export your loop as a WAV file.

Last updated:

Click a row name to hear it · Space plays and stops

Advertisement
Advertisement

How to use the Drum Machine

  1. Press Play to hear the current pattern, or choose a groove from the Pattern list first.
  2. Click the squares to switch steps on and off. Each row is an instrument and each column is a sixteenth note.
  3. Set the tempo and swing, or tap the tempo with the Tap button.
  4. Pick a kit to change the sound and use M to mute an instrument.
  5. Choose the loop length and press Export WAV to download your beat.

Tempo, steps and loop length

In 4/4 time a bar has four beats, and a 16-step sequencer splits each beat into four sixteenth notes. The timing follows directly from the tempo:

  • One beat = 60 ÷ BPM seconds
  • One step = 60 ÷ BPM ÷ 4 seconds
  • One bar = 16 steps = 240 ÷ BPM seconds
StyleTypical BPMStep length1 bar4 bars
Boom bap hip-hop85–95167 ms at 902.67 s10.67 s
Reggaeton90–100158 ms at 952.53 s10.11 s
Rock / pop100–130136 ms at 1102.18 s8.73 s
House / disco118–128121 ms at 1241.94 s7.74 s
Trap130–150 (half-time feel)107 ms at 1401.71 s6.86 s
Drum & bass170–17587 ms at 1721.40 s5.58 s

Classic patterns to start from

  • Four on the floor: kick on every beat (steps 1, 5, 9, 13), clap or snare on 5 and 13, open hi-hat on the off-beats (3, 7, 11, 15). The foundation of house, techno and disco.
  • Backbeat: kick on 1 and 9, snare on 5 and 13, eighth-note hi-hats. The basis of most rock and pop.
  • Boom bap: a lazy kick on 1, 7 and 11, a hard snare on 5 and 13 and a bit of swing.
  • Dembow: kick on every beat with the snare on steps 4, 7, 12 and 15, the signature reggaeton rhythm.

How the sounds are made

The kick is a sine wave whose pitch drops quickly (for example from 120 Hz to 42 Hz in 90 ms on the 808 kit), giving the thump and the boom. The snare mixes a short pitched tone with high-passed noise for the rattle of the wires. Hi-hats use six detuned square waves (808) or filtered noise, and the closed hat cuts off a ringing open hat, just like the choke group on hardware. The clap is three quick noise bursts followed by a short tail. The Lo-fi kit adds tape-style saturation and a low-pass filter for a warm, dusty sound.

Frequently asked questions

How do I make a beat with the drum machine?

Start with the kick on steps 1 and 9, the snare on steps 5 and 13 and the closed hi-hat on every odd step. Press Play, then add or remove hits while it loops. Changes are heard on the next pass of the playhead.

What does each column mean?

The 16 columns are sixteenth notes of one 4/4 bar. Steps 1, 5, 9 and 13 are the four beats (shaded groups help you see them). At 120 BPM one step lasts 60 ÷ 120 ÷ 4 = 0.125 seconds, so the whole bar lasts 2 seconds.

What does swing do?

Swing delays every second sixteenth note slightly, which turns a stiff, straight rhythm into a shuffle or groove. Around 15 to 25% gives a subtle hip-hop or house feel; 50% and more sounds like a strong triplet shuffle.

Are these real drum samples?

No. Every sound is synthesized live with the Web Audio API from oscillators, noise and filters, in the same way classic analog drum machines worked. That's why the page loads instantly and the sounds can be tuned per kit.

Can I use the exported loops in my music?

Yes. You create the pattern and the sounds are generated by your browser, so the WAV files are yours to use in songs, videos or a DAW. The export is a 44.1 kHz, 16-bit stereo WAV that loops seamlessly at the chosen tempo.

Why can't I hear anything?

Browsers only allow sound after you click something on the page, so press Play or a row name first. Also check that your device isn't muted and that the Volume slider isn't at zero.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Online MetronomeKeep time with BPM control and tap tempo.Online PianoPlay a virtual piano with your mouse, touch or computer keyboard and record a WAV.Tone GeneratorPlay any frequency with different waveforms.Audio JoinerMerge MP3 and other audio files into one track with crossfade.Audio Effects StudioAdd chorus, flanger, phaser, tremolo, distortion and bitcrusher effects to audio. Export WAV/MP3.MIDI MonitorLog every MIDI message from all inputs: notes, CC, pitch bend, clock and SysEx in hex.Online SynthesizerPolyphonic browser synth with 2 oscillators, ADSR, filter, LFO, presets, MIDI and WAV recording.Party SoundboardPlay applause, drumroll, air horn, crickets, rimshot, ta-da and more with one tap or key.Guitar TunerTune your guitar with your microphone, in standard or alternate tunings.Chromatic TunerTune any instrument or voice: detects every note from C0 to C8.Ukulele TunerTune a ukulele to GCEA, low G, baritone DGBE or D tuning by microphone.Violin TunerTune your violin with the microphone: G D A E with a cents meter and reference tones.Bass TunerTune 4, 5 and 6-string bass guitars with your microphone, reference tones and drop D.Chord FinderGuitar chord charts and piano chords for every key, with notes, formulas and sound.Scale FinderSee any music scale on piano and guitar fretboard, with notes, formula, chords and playback.Chord TransposerPaste a chord sheet and transpose every chord to a new key, with capo tips and aligned output.BPM FinderFind the tempo of any song: analyze an audio file for its BPM or tap along to the beat.BPM to MS CalculatorNote lengths in milliseconds and Hz for any tempo: straight, dotted and triplet delay times.Note Frequency CalculatorConvert notes to Hz and Hz to the nearest note with cents, MIDI number and adjustable A4.Banjo TunerTune a 5-string banjo with your microphone in Open G, Double C, Open D and more.Interactive Circle of FifthsClickable circle of fifths with key signatures, relative minors, diatonic chords and playback.Ear TrainingInterval, chord and scale recognition drills with levels, scoring, streaks and weak-spot stats.Guitar Chord Diagram MakerDraw guitar chord box diagrams with fingers, barres and muted strings; export PNG or SVG.Guitar Fretboard TrainerLearn every note on the guitar neck: quizzes, scale and arpeggio overlays, alternate tunings, sound.Note Reading TrainerSight-reading drills for treble and bass clef: name notes with buttons, piano or MIDI, timed scores.Online GuitarPlay a virtual guitar: strum chords with your keyboard or mouse, pick notes on a real fretboard.Song Key FinderFind the key, scale, Camelot code and BPM of any song from an audio file, privately.Tanpura DroneEndless tanpura or shruti drone in any key with Pa, Ma or Ni tuning, tempo and jawari for riyaz.Virtual Drum KitPlay a drum set with your keyboard or touch pads, then record a beat, play it back and save it.Vocal Range TestSing your lowest and highest notes to find your vocal range and closest voice type.432 Hz ConverterRetune any song from A=440 Hz to 432 Hz (or 444, 528…) with a precise pitch shift; save MP3 or WAV.Capo CalculatorSee the real chords your capo shapes make, or find the best capo fret and shapes for a key.Chord Progression GeneratorGenerate chord progressions by key, mode and mood, hear them on piano or guitar and export MIDI.Guitar Tab MakerWrite guitar tabs by clicking a fretboard or typing text, hear them played back, save TXT or PDF.Music Streaming Royalty CalculatorEstimate streaming royalties by platform after distributor fees and splits, or streams needed.Online DJ MixerTwo-deck DJ mixer for your own audio files: BPM sync, EQ, crossfader, loops, cues and mix recording.Online LaunchpadPlay an 8x8 beat pad with drum, synth and vocal kits, loops, your own samples and WAV recording.Piano Chord ChartEvery piano chord on a keyboard diagram with notes, fingering, inversions and sound.Backing Track GeneratorMake jam tracks from any chord progression: drums, bass and chords in any key and tempo.Camelot WheelInteractive Camelot wheel: click a key to see harmonic mixes, convert keys to Camelot and Open Key.Chord Chart MakerTurn lyrics with chords into clean printable chord sheets; transpose, add chord diagrams, export PDF.Guitar Amp SimulatorPlay your guitar through amp models, cabinet, delay, reverb and noise gate right in your browser.Music Interval CalculatorName the interval between two notes, or find the note a given interval above or below.Piano Letter Notes PlayerPaste piano letter notes or virtual piano sheets and hear them played with key highlighting.LRC Lyrics MakerMake synced .lrc lyrics: play a song, tap to timestamp each line or word, preview and download.Melody GeneratorGenerate random melodies in any key and scale over a chord progression; play and export MIDI.MIDI to Sheet MusicTurn a MIDI file into readable sheet music and download it as PDF, PNG or MusicXML.Music Theory QuizQuiz yourself on note names, key signatures, intervals, chords and scales with staff and keyboard.Polyrhythm MetronomePractise 3:2, 4:3, 5:4, 7:4 and other polyrhythms with distinct sounds and a circular visualizer.Song Chord DetectorUpload a song to detect its chords over time, follow them during playback and save a chord chart.Song Practice PlayerSlow down songs without changing pitch, transpose, A-B loop and speed up gradually as you learn.Tempo Change CalculatorConvert a BPM change to percent speed, semitone and cents pitch shift and new song length.Transposing Instrument CalculatorConvert notes and keys between concert pitch and B♭, E♭, F and A instruments, both ways.CPR Metronome110 BPM CPR compression metronome with 30:2 cycle counter, breath pauses and voice prompts.Calming Music for DogsEndless slow, soothing music for anxious dogs and cats, with sleep timer and gentle fade-out.Mindfulness BellGentle bell chimes at fixed or random intervals through the day, with quiet hours and prompts.Sheet Music MakerWrite sheet music by clicking notes or typing ABC; add lyrics and chords, play it, save PDF, MIDI or MusicXML.Singing Pitch TrainerSing into your mic and see your pitch on a piano roll against target notes, with cents and a score.Ukulele Chord ChartUkulele chord diagrams with finger numbers, several shapes, strum sound and printable charts.Audio to Sheet MusicTranscribe a melody or simple piano recording into sheet music; save as PDF, MIDI or MusicXML.
See all 56 Music Theory & Instruments →