Drum Pattern Maker
Program a drum beat on a grid, hear it, and download it as a MIDI file or WAV loop for your DAW.
Runs in your browser. Nothing is uploaded.
Your beat
Enter a tempo from 40 to 300 BPM.
Arrow keys move between steps and lanes. Enter or Space adds or removes a hit. 1, 2 and 3 set a ghost, normal or accent hit, 0 removes it. R changes the roll. P plays and stops.
Selected step
Velocity 1 to 127 (0 removes the hit). A roll plays 2, 3 or 4 hits inside the step.
Why it grooves
Select a line to mark its steps on the grid.
Keyboard shortcuts
- ← → ↑ ↓
- Move between steps and lanes in the grid
- Enter or Space
- Add or remove a hit at the “New hits” level
- 1 2 3 0
- Ghost, normal or accent hit; 0 removes it
- + −
- Velocity up or down by 5
- R
- Roll: 1, 2, 3 or 4 hits in the step
- Page Up Page Down
- Previous or next bar
- P
- Play or stop (anywhere except text fields)
- Ctrl/⌘ + Z
- Undo; add Shift to redo
Lane
Enter a note number from 0 to 127.
Euclidean rhythm
x..x..x.
Fill lane writes the rhythm into every bar of the selected lane at the “New hits” level. A cycle shorter than the lane repeats until the lane is full.
Add a lane
Up to 12 lanes.
Humanize and velocity
Each hit moves by a random amount up to the values you set. The same seed always gives the same result, in playback and in both downloads.
Velocity levels
1 to 127. Changing a level also changes every hit that uses it.
Download
Used in the file names and as the MIDI track name.
MIDI file
WAV audio
Loop keeps the file exactly the length of the bars, so it repeats without a gap. Tail adds up to 4 seconds after the end.
Copy the beat as text
MIDI note map
General MIDI numbers are the default. Change a number to match your drum machine or plug-in, then save the map in this browser.
| Lane | Note | General MIDI name |
|---|
Play on a MIDI device
Sends the pattern on channel 10 to a drum machine or synth connected to this computer while it plays.
How to use
- Pick a genre preset, or select Try an example to load the boom bap beat from the worked example below.
- Press Play (or the P key). Click a step to add a hit and click it again to remove it. Choose Ghost, Normal or Accent first to set how hard new hits play.
- Set the tempo, swing and time signature. Select a lane name to change its sound or MIDI note, or to fill it with a Euclidean rhythm.
- Select Download MIDI to get a file for your DAW's drum instrument, or Download WAV for an audio loop. Stems give you one WAV per lane in a ZIP file.
- Select Copy link to share the beat. The link holds the whole pattern and its settings.
Worked example
Input
The boom bap preset in 4/4 with 16 steps: kick on steps 1, 8 and 11, snare on 5 and 13, closed hat on every odd step and a ghost note (velocity 40) on step 16.
Settings
90 BPM, swing 58% on 16ths. Length: pattern × 4, so 4 bars. WAV at 44.1 kHz, 16-bit stereo, ending set to Loop.
Result
One bar lasts 4 × 60 ÷ 90 = 2.667 s, so the 4-bar loop is 10.667 s: 470,400 sample frames and a 1,881,644-byte WAV.
In the MIDI file, at 480 ticks per quarter note, a 16th note is 120 ticks. Swing at 58% moves every second 16th by (2 × 0.58 − 1) × 120 = 19.2 ticks, written as 19. So the kick on step 8 sits on tick 859 instead of 840, and the ghost hat on step 16 on tick 1,819 instead of 1,800. That is 26.7 ms late at 90 BPM.
The tempo event holds 60,000,000 ÷ 90 = 666,667 microseconds per quarter note, stored as the bytes FF 51 03 0A 2C 2B. The 4-bar format 1 file is 564 bytes.
The WAV size follows from the length: 10.667 s × 44,100 = 470,400 frames, × 2 channels × 2 bytes = 1,881,600 bytes of audio, plus a 44-byte header = 1,881,644 bytes. Select Try an example and the Download panel shows the same numbers.
How it works
Steps, bars and note values
A step is one slot of the grid, and the step size sets its note value. With 1/16 notes, four steps make a beat and a 4/4 bar has 16 steps. A bar of 3/4 or 6/8 holds 12 sixteenths, 5/4 holds 20 and 7/8 holds 14. Triplet grids put 3 steps (1/8 triplets) or 6 steps (1/16 triplets) in each beat.
Tempo counts quarter notes per minute, as DAWs and the MIDI tempo event do, also in 6/8 and 7/8. In 6/8 the felt beat is the dotted quarter, two-thirds of the BPM: 84 BPM is 56 dotted quarters per minute.
bar length (s) = quarter notes per bar × 60 ÷ BPM 4/4 at 90 BPM: 4 × 60 ÷ 90 = 2.667 s
The General MIDI drum map
Every lane plays one MIDI note on channel 10, the drum channel of General MIDI (status bytes 0x99 for note-on and 0x89 for note-off). These are the General MIDI Level 1 numbers the lanes use by default. Many drum instruments use them for the basic kit, so the file plays the right drums without remapping. If yours uses a different map, change the lane's MIDI note; maps you save stay in this browser.
| Lane | Note | General MIDI name |
|---|---|---|
| Kick | 36 | Bass Drum 1 |
| Snare | 38 | Acoustic Snare |
| Side stick | 37 | Side Stick |
| Clap | 39 | Hand Clap |
| Closed hat | 42 | Closed Hi Hat |
| Pedal hat | 44 | Pedal Hi-Hat |
| Open hat | 46 | Open Hi-Hat |
| Low tom | 45 | Low Tom |
| Mid tom | 47 | Low-Mid Tom |
| High tom | 50 | High Tom |
| Crash | 49 | Crash Cymbal 1 |
| Ride | 51 | Ride Cymbal 1 |
| Ride bell | 53 | Ride Bell |
| Tambourine | 54 | Tambourine |
| Cowbell | 56 | Cowbell |
| Shaker | 70 | Maracas |
| Claves | 75 | Claves |
| High conga | 63 | Open Hi Conga |
| Low conga | 64 | Low Conga |
Swing as a percentage
Swing shares the time of each pair of 8ths or 16ths, counted from the start of each beat, so the beats themselves never move. At 50% both halves are equal. At a higher percentage the first note of the pair is longer, so the second arrives later. 66.7% is a triplet feel and 75% a dotted 8th followed by a 16th. A beat of three 8ths, as in 6/8 or at the end of a 7/8 bar, pairs its first two 8ths; the third stays where it is.
delay of the second note = (2 × swing − 1) × note length 58% on 16ths (120 ticks): (2 × 0.58 − 1) × 120 = 19.2 ticks
Euclidean rhythms
E(k,n) spreads k hits over n steps as evenly as possible. The tool uses Bjorklund's algorithm as Godfried Toussaint describes it in “The Euclidean Algorithm Generates Traditional Musical Rhythms” (BRIDGES 2005). Toussaint shows that many traditional rhythms are Euclidean: E(3,8) = x..x..x. is the Cuban tresillo and E(5,8) = x.xx.xx. is the cinquillo. Rotate starts the same cycle on a later step. A cycle shorter than the lane repeats until the lane is full, so E(5,12) on a 16-step lane drifts against the bar.
Why it grooves names a lane's rhythm when it matches one of Toussaint's examples up to rotation, such as E(7,16), which he lists as a samba necklace from Brazil.
The MIDI file
The download is a Standard MIDI File at 480 ticks per quarter note. Format 1 holds a tempo track and a drum track; format 0 puts everything in one track. The file has a tempo event (FF 51), a time signature event (FF 58) and the track name. Each hit is a 60-tick note with its own velocity, shorter when the next hit on the same note comes sooner (in a roll, with humanize, or when two lanes share a note). Swing and humanize are written as tick offsets.
The WAV file
The WAV is rendered in your browser from the same synthesized kit you hear: a sine sweep for the kick, noise and tone for the snare, filtered noise and square waves for hats and cymbals. Nothing is downloaded for it. A velocity v plays at (v ÷ 127)1.5 of full level.
frames = bar length × bars × sample rate bytes = 44 + frames × 2 channels × bytes per sample
Loop wraps the decay of the last hits back to the start, so the file repeats without a gap. Tail adds up to 4 seconds after the last bar instead, and Cut stops at the bar line. The mix is scaled so its highest sample sits at the peak level you choose, and 16-bit files get triangular (TPDF) dither. Stems use the same gain as the full mix, so together they add up to it. The open hi-hat stops when the next closed, pedal or open hat plays, as on a real hi-hat.
Getting the beat into your DAW
- Ableton Live: drag the MIDI file onto a MIDI track that holds a Drum Rack, or the WAV onto an audio track.
- FL Studio: drag the MIDI file into the Channel Rack or Playlist and play it with FPC or another drum plug-in; drop the WAV into the Playlist.
- Logic Pro and GarageBand: drag either file into the Tracks area. For MIDI, choose a drum kit as the track's instrument.
Set the project to the pattern's tempo first, so the WAV lines up with the bars.
Genre presets
The 30 presets are written from common conventions of each style, not copied from any record. They are starting points: change a few kicks and hats to make the beat your own.
Show all 30 presets
| Preset | BPM | Meter | Steps | What to listen for |
|---|---|---|---|---|
| Rock | 110 | 4/4 | 16 | Straight 8th-note rock: kick on 1 and 3 with a push on the “and” of 3, snare on 2 and 4. |
| Pop | 100 | 4/4 | 16 | A clap layered on the snare backbeat, a kick pickup on the “and” of 2, and an open hat that lifts into the next bar. |
| Punk | 180 | 4/4 | 16 | Fast punk: kick on every beat and snare on every off-beat 8th, the “oom-pah” beat. |
| Metal double kick | 160 | 4/4 | 16 | Nonstop 16th-note kicks under a snare backbeat, a quarter-note ride and a crash on 1. |
| Funk | 98 | 4/4 | 16 | Hats on every 16th with the in-between 16ths played soft, a syncopated kick, and ghost notes on the snare around the backbeat. |
| Shuffle | 96 | 4/4 | 16 | A blues shuffle from straight 8ths: 67% swing on 8ths makes every pair of 8ths long-short, close to a triplet feel. |
| 6/8 ballad | 84 | 6/8 | 12 | Two dotted-quarter beats per bar: kick on beat 1, snare on beat 2, hats on every 8th. At 84 quarter notes per minute the dotted quarter is 56. |
| Boom bap | 90 | 4/4 | 16 | Swung 16ths, a kick that lands between the beats, and a hard snare on 2 and 4. |
| Lo-fi hip-hop | 80 | 4/4 | 16 | Slow and swung (60% on 16ths) with soft ghost hats, and humanize on so the beat sounds played rather than programmed. |
| Trap | 140 | 4/4 | 16 | A long 808 kick, snare and clap together on beat 3 for the half-time feel, and 8th-note hats broken up by rolls. |
| Drill | 142 | 4/4 | 16 | A half-time snare on beat 3 plus a late snare on the “and” of 4, sparse 808 kicks, and hats grouped 3+3+2 with a triplet roll. |
| Jersey club | 140 | 4/4 | 16 | A bouncing kick in 3+3+2 through the first half bar, then on beats 3 and 4 and the “and” of 4, claps on 2 and 4, and off-beat hats with a triplet roll. |
| Disco | 118 | 4/4 | 16 | A kick on every beat (four on the floor), an open hi-hat on every off-beat 8th, and the snare on 2 and 4. |
| House | 124 | 4/4 | 16 | Four-on-the-floor kick, a clap on 2 and 4, an open hat on every off-beat and a 16th shaker. |
| Techno | 130 | 4/4 | 16 | A hard kick on every beat, short off-beat open hats, quiet 16th hats around them and a soft clap. |
| Electro | 120 | 4/4 | 16 | A syncopated machine kick against a clap backbeat, 16th hats with soft in-between notes, and a cowbell answer. |
| UK garage (2-step) | 132 | 4/4 | 16 | No kick on beats 2 and 4, a clap backbeat, and 16ths swung at 62% for the skip. |
| Breakbeat | 128 | 4/4 | 16 | A double kick at the start, a kick pair pushing into beat 4, and a snare backbeat with ghost notes around it. |
| Drum and bass | 174 | 4/4 | 16 | The two-step: kick on 1 and the “and” of 3, snare on 2 and 4, plus a ghost snare and an open hat into the next bar. |
| Dubstep (half-time) | 140 | 4/4 | 16 | One heavy snare on beat 3 makes 140 BPM feel like 70; the second kick waits until the “a” of 3. |
| Reggaeton (dembow) | 95 | 4/4 | 16 | The dembow: kick on every beat, snare on the “a” of 1 and the “and” of 2, repeated in each half bar (3+3+2). |
| Reggae one drop | 72 | 4/4 | 16 | Nothing on beat 1: kick and cross-stick land together on beat 3, under light swung 8th hats. |
| Afrobeat | 108 | 4/4 | 16 | The rim plays 3+3+2 (the tresillo) twice per bar over a light kick, a clap on 2 and 4 and a 16th shaker. |
| Bossa nova | 130 | 4/4 | 32 | The cross-stick plays the bossa nova rhythm across two bars (x..x..x...x..x.. in 8ths) over a soft kick on 1, the “and” of 2, 3 and the “and” of 4. |
| Samba | 100 | 4/4 | 16 | The kick plays like a surdo, strongest on the second beat of each half bar; the rim plays the samba rhythm x.x..x.x.x..x.x.; the shaker accents the last 16th of each beat. |
| Son clave (3-2) | 100 | 4/4 | 32 | Three clave hits in the first bar and two in the second, over a quarter-note cowbell and a kick on the “and” of 2 and on 4. The first bar is the tresillo. |
| Jazz swing | 140 | 4/4 | 12 | On an 8th-triplet grid: ride on every beat plus the last triplet of beats 2 and 4, hi-hat pedal on 2 and 4, a feathered kick and one snare comp. |
| Waltz (3/4) | 90 | 3/4 | 12 | Three beats to the bar: a low hit on beat 1 and two lighter hits on beats 2 and 3 (oom-pah-pah). |
| 5/4 groove | 116 | 5/4 | 20 | Five beats split 3+2: kick on beats 1 and 4, snare on beats 3 and 5, so each bar is a long half and a short half. |
| 7/8 groove | 120 | 7/8 | 14 | Seven 8ths counted 2+2+3: kick and snare trade on the group starts, and the closing group of three gives the bar its limp. |
FAQ
How do I make a trap or boom bap drum beat?
Pick the style in Genre preset and press Play. Each preset starts from the usual pattern of the style, and Why it grooves lists what makes it work, with step numbers. For boom bap that is a snare on 2 and 4, kicks between the beats and 58% swing; for trap, a half-time snare on beat 3 and hi-hat rolls. Change a few kicks and hats, then download it.
Which MIDI notes are kick, snare and hi-hat?
In the General MIDI drum map on channel 10: kick 36 (35 is the acoustic bass drum), snare 38 (40 is the electric snare), side stick 37, clap 39, closed hi-hat 42, pedal hi-hat 44, open hi-hat 46, crash 49 and ride 51. The table in How it works lists every lane.
Why does my MIDI drum file play as piano in my DAW?
A MIDI file holds notes, not sounds. Channel 10 means drums only to General MIDI players; a DAW plays the notes with whatever instrument is on the track, and for an imported file that is often a piano or nothing at all. Put a drum instrument on the track, such as a Drum Rack in Ableton Live, FPC in FL Studio or Drum Kit Designer in Logic Pro.
What does swing percentage mean?
It says how each pair of 8ths or 16ths shares its time. At 50% both notes are equal. At 58% the first note takes 58% of the pair, so the second arrives later: at 90 BPM a 16th swung at 58% lands 26.7 ms late. 66.7% gives a triplet feel and 75% a dotted rhythm.
What is a Euclidean rhythm?
A rhythm that spreads k hits over n steps as evenly as possible, written E(k,n). Godfried Toussaint showed in 2005 that many traditional rhythms are Euclidean: E(3,8) is the tresillo (x..x..x.) and E(5,8) the cinquillo (x.xx.xx.). To try one, select a lane, set Hits, Steps and Rotate, and select Fill lane.
Can I use these beats in my songs?
Yes. What you make with the tool belongs to you (see the Terms). The presets are written from common genre patterns, not copied from records, and every sound is synthesized in your browser, so there are no samples in the files.
How do I get the WAV into my DAW?
Set your project to the pattern's tempo, then drag the WAV onto an audio track at the start of a bar. With Ending set to Loop the file is exactly the bars you chose (4 bars at 90 BPM is 10.667 s), and the decay of the last hits is wrapped to the start, so it loops without a gap.
What's the difference between 16 steps and 1/16 notes?
1/16 notes is the length of each step; 16 steps is how many fit in a bar. They match in 4/4, because a 4/4 bar holds 16 sixteenths. A 3/4 bar holds 12, 5/4 holds 20 and 7/8 holds 14. Triplet grids put 3 or 6 steps in each beat, so a 4/4 bar has 12 or 24 steps.
Step by step: why MIDI drums play as piano and how channel 10 works, or MIDI Type 0 vs Type 1 and which format to export.
Updated