These virtual drums give you a 12-pad drum kit and a step sequencer like a drum machine's, right in your browser. Hit the pads with your fingers, a mouse, or the computer keyboard, switch between an acoustic and an electronic kit, and build a looping beat from scratch or from eight presets. There's nothing to download.
Hitting the pads, soft and loud
Tap or click a pad to play it. The 12 pads sit in three rows of four: cymbals and hi-hats on top, three toms and a clap in the middle, and kick, snare, rim click, and cowbell at the bottom. On a touch screen every finger plays its own pad, so you can hit the kick and a crash together.
Where you hit matters. A hit in the middle of a pad plays at full level and a hit in a corner at about three quarters, so you can play softer ghost notes near the edges. A closed hi-hat cuts off an open one that's still ringing, as when a drummer closes the hi-hat pedal.
Virtual drums keyboard controls
On a computer, each pad shows its letter, and the keys follow the pads row by row:
- Q W E R: crash, ride, open hi-hat, and closed hi-hat
- A S D F: high tom, mid tom, floor tom, and clap
- Z X C V: kick, snare, rim click, and cowbell
- Space: a second kick, so a thumb can work the bass drum like a pedal
Keys play at one steady level, just under a center hit. They work while the drums are on screen, and typing in a text box never plays a drum.
Acoustic and electronic drum kits
The Acoustic kit aims for a natural rock and pop sound: a short, punchy kick, a snare with plenty of wire buzz, sizzling hi-hats, and a little more room. The Electronic kit is a classic drum machine, with a deep kick that booms for close to a second, a bright snare, and tight, metallic hats. Switching kits plays a snare so you can hear the difference, and the beat maker always plays the kit you've picked.
The 16-step beat maker
The Beat maker loops one bar of 4/4, split into 16 steps of a sixteenth note each. It has eight rows: crash, open hat, closed hat, clap, snare, rim, tom, and kick. Tap a square to turn it on, or drag across several to fill or clear them in one go. Steps 1, 5, 9, and 13 fall on the beat, and hits there get a slight accent.
Press Play and the bar loops until you press Stop, with a light running along the steps. You can change squares while it plays. Steps are timed on the browser's audio clock, so the loop holds steady when the page is busy and keeps going in a background tab.
With the grid focused, the arrow keys move between squares, Home and End jump to the ends of a row, and Enter or Space turns a square on or off. Screen readers hear each square's name and state, such as Kick, step 1.
Tempo and swing
Tempo runs from 60 to 180 beats per minute. Drag the slider, or use the minus and plus buttons to move one beat per minute at a time. At 120, one trip round the bar takes two seconds.
Swing delays every second sixteenth note, from 0% to 100% in steps of 5. At 0% the beat is straight. At 100% each pair of sixteenths splits 2 to 1, a full triplet feel, with the late note a third of a step behind.
Eight preset beats to start from
Each preset loads its own tempo and swing, so you can hear how common styles are built:
- Rock: 110 BPM, straight, with a crash on the one
- Pop: 100 BPM, with clap and snare together on 2 and 4
- Hip hop: 90 BPM with 40% swing
- House: 124 BPM, four kicks and open hats on the off-beats
- Funk: 98 BPM with 15% swing and busy sixteenth-note hats
- Reggae one drop: 76 BPM with 35% swing, kick and rim together on beat 3
- Disco: 118 BPM, four kicks with open hats between them
- Rock with a fill: 110 BPM, ending the bar on snare and tom
Loading a preset replaces the beat in the grid. Undo brings back the beat, tempo, and swing you had, and it undoes Clear too.
Record pads: play a beat in live
For a groove you can tap but not spell out, press Play, turn on Record pads, and play along. Each hit lands on the nearest step of its row and stays there for the next time round. Only pads with a row are added: the ride, high tom, floor tom, and cowbell still play but aren't recorded, so they're left for fills. Recording only adds hits, so tap a square to take one out.
Drum beat basics: counting to 16
Drummers count a bar of sixteenths as 1 e & a, 2 e & a, 3 e & a, 4 e & a. In the grid, the numbers fall on steps 1, 5, 9, and 13, and the ands on steps 3, 7, 11, and 15. Most beats start from three parts:
- A kick on beat 1, and often on beat 3.
- A snare or clap on beats 2 and 4, steps 5 and 13: the backbeat.
- Hi-hats keeping time, on every other step for eighth notes or on every step for sixteenths.
Build those, press Play, and change one thing at a time.
How the virtual drums make their sound
Every hit is synthesized in your browser with the Web Audio API, so no recorded samples are downloaded. Kicks and toms are sine waves that drop in pitch the way a struck drum head does, with a short click for the beater or stick. The snare mixes filtered noise for the wires with a tuned tone for the head, and the clap is three quick bursts of noise about a hundredth of a second apart, like several hands.
The hi-hats, crash, and ride are built from six square waves at clashing pitches, the method classic analog drum machines used for metal sounds. The cymbals and the acoustic hats add noise for sizzle. Each noise burst starts at a random point, so no two hits are quite alike, and every pad has its own place in the stereo picture, as if you were sitting at the kit.
From the first drum kits to drum machines
The drum kit took shape in the early 1900s, when bass drum pedals let one player keep the bass drum going with a foot while the hands played snare and cymbals. The hi-hat, two cymbals clapped together by a pedal, followed in the 1920s.
Drum machines brought the step grid. The Roland TR-808 of 1980 was programmed with 16 step buttons and made its hi-hats and cymbals from six square-wave oscillators, the idea behind this kit's metal sounds. Its booming kick became a staple of hip hop and electronic music. This site isn't affiliated with Roland.
Drumming on a phone or a narrow screen
The drums run in any modern browser on a Windows PC, Mac, Chromebook, iPhone, iPad, or Android device. The pads are sized for fingers, and on a narrow screen the beat maker shows eight steps at a time, with Steps 1–8 and Steps 9–16 buttons. While the beat plays, the view follows it, unless you've just been editing.
The page needs a connection to load. From then on, every hit and every loop is synthesized and timed on your own device.
Saved on this device: your kit and your beat
Your kit, volume, tempo, swing, and the steps of your beat wait in this browser's local storage, under virtual-drums:v1, for the next time you open the page. That entry is described in the privacy policy, and your hits and beats aren't sent to a server. There's one beat at a time and no audio export, so a new preset or Clear replaces it, with one step of Undo to bring it back.
Leave a beat running and open the Virtual Piano or the Virtual Guitar in another tab to play along with it.