How to program drums with the General MIDI drum map
Free kit: Free Cozy Audio kit bundles this with the other tools you need.
When you program drums in a piano roll, each drum sound lives on a specific MIDI note. Put a note on the wrong key and your kick plays as a cowbell. The General MIDI (GM) drum map is the shared standard that most drum plugins, sound modules and game audio tools start from, so learning the main note numbers saves time and makes your MIDI files portable. This guide covers the key notes, the octave-naming trap, velocity and a basic beat with its timing worked out.
The essentials: channel 10 and note numbers
In General MIDI, channel 10 is reserved for drums. On that channel, each note number triggers a different drum or percussion sound rather than a pitch. Many modern drum plugins ignore the channel and respond on any channel, but they still mostly follow the GM note layout, sometimes with extra articulations added.
The notes you'll use most:
- 35 Acoustic Bass Drum, 36 Bass Drum 1 (the usual kick)
- 37 Side Stick
- 38 Acoustic Snare, 40 Electric Snare
- 39 Hand Clap
- 42 Closed Hi-Hat, 44 Pedal Hi-Hat, 46 Open Hi-Hat
- 41 Low Floor Tom, 43 High Floor Tom, 45 Low Tom, 47 Low-Mid Tom, 48 Hi-Mid Tom, 50 High Tom
- 49 Crash Cymbal 1, 57 Crash Cymbal 2
- 51 Ride Cymbal 1, 53 Ride Bell
- 54 Tambourine, 56 Cowbell
The full list from 35 to 81 is on the General MIDI drum map chart.
The octave-naming trap
Note numbers are fixed, but note names are not. Different software labels middle C (note 60) differently:
- Many DAWs and the common scientific convention call note 60 C4, so note 36 is C2.
- Some DAWs call note 60 C3, so note 36 is C1.
- At least one popular DAW calls note 60 C5, so note 36 is C3.
So "the kick is on C1" and "the kick is on C2" can both be right. When sharing MIDI or reading a tutorial, use note numbers, not names. Most piano rolls can show note numbers in a setting or in the note inspector.
Velocity: the secret to drums that feel human
MIDI velocity runs from 1 to 127 and controls how hard each hit is played. Many drum plugins switch to different samples at different velocities, so velocity changes tone, not just volume.
Starting points:
- Kick and snare backbeat: 100 to 120
- Hi-hats: alternate stronger and weaker hits, for example 90 on the beat and 65 on the off-beat
- Ghost notes on snare: 30 to 50
- Crash on the first beat of a section: 110 to 127
Small random variation, a few points either way, keeps a pattern from sounding mechanical.
Worked example: a basic rock beat at 120 BPM
One bar of 4/4, 8th-note hi-hats.
- Kick (36): beats 1 and 3
- Snare (38): beats 2 and 4
- Closed hi-hat (42): every 8th note, 8 hits per bar
Timing. At 120 BPM, one beat (a quarter note) lasts 60,000 / 120 = 500 ms. An 8th note is 250 ms and a 16th note is 125 ms. One bar of 4/4 is 4 x 500 = 2,000 ms, or 2 seconds. The 120 BPM in ms page lists these values, and the BPM to ms calculator works for any tempo.
Hit times in the bar:
- Kick: 0 ms and 1,000 ms
- Snare: 500 ms and 1,500 ms
- Hi-hat: 0, 250, 500, 750, 1,000, 1,250, 1,500 and 1,750 ms
That timing table is useful for game developers too. If you're triggering drum one-shots from code instead of a sequencer, schedule them at these offsets from the bar's start time, using the audio engine's clock rather than frame updates, so they don't drift.
Making it groove
- Add a kick on the "and" of 3 (1,250 ms at 120 BPM) for a classic variation.
- Open the hi-hat (46) on the last 8th note of the bar, then close it with the next closed hat or a pedal hat (44). Many plugins "choke" the open hat when a closed hat plays, like a real drummer's foot.
- Swing. Delay every second 8th note slightly. Lo-fi and hip-hop beats often use noticeable swing; see tempo and key for lo-fi beats.
- Fills. Run down the toms (50, 48, 47, 45, 43) in 16th notes leading into a crash on beat 1.
Practice with a click
Program a pattern, then play along with it on a pad controller or keyboard using the online metronome to check your timing. Recording your own hits and then quantizing lightly, say 50 to 70%, often sounds more natural than drawing every note perfectly on the grid. For more on practicing with a click, see how to practice with a metronome.
Exporting for games and collaborators
Save your drum MIDI as a Standard MIDI File (.mid) with notes on channel 10 so other software maps it correctly. If you render to audio, export loops at exactly the right length in samples so they repeat cleanly; at 48 kHz, a 2-second bar is 2 x 48,000 = 96,000 samples. See how to make seamless audio loops for the rest of that workflow.