Small Signal Audio

Calm sound and cozy visuals for streams and rest

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:

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:

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:

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.

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:

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

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.

Related guides

Save to Pinterest · Email to a friend

Topic: Practice and instruments · Music production