home/ modules/ drum-machines-and-sampling

Classic drum machines and sample-based percussion

  • learner can explain how classic machines (TR-808/909, DMX) make their sounds — analog synthesis vs samples — and program their step sequencers
  • learner can use sample-based percussion techniques: one-shot vs gate modes, bit-reduction crunch, transient removal, and layering samples with synth hits

Recreate a classic drum-machine groove: program an 808/909-style pattern on a step sequencer using accent and two-part structure, then layer a bit-crushed sampled loop and a transient-shaped hit over the synthesized voices, choosing one-shot or gate playback mode for each sample.

Every techno, house, hip-hop, and electro set you’ll ever play or livecode descends from a handful of boxes — the TR-808, TR-909, Oberheim DMX, and the early samplers that chewed on their outputs. This module builds toward one whole task: programming an authentic 808/909-style groove and then dirtying it up the way real producers do, so that when you’re on stage with a step sequencer (hardware or a livecoding pattern language), your rhythms carry the weight and grit of the records that defined these genres rather than sounding like a clean preset demo.

The arc starts supported. First you settle the identity question — why the 808 synthesizes everything through deliberately faulty transistors while the 909 hi-hat is secretly a sample and the DMX is all samples — because that distinction decides whether you reach for an oscillator or a WAV in your own rig. Your first exercise is a guided pattern: pick a voice, toggle steps (the instrument-first step-sequencer workflow atom is your JIT how-to), then add the accent track for feel and extend into a two-part 32-step phrase. From there scaffolding drops away: you shape samples yourself, choosing one-shot or gate playback for each hit, using transient removal via envelope attack and the clipped-percussion amp envelope to sculpt them, and 12-bit crunch to age a loop before layering it over synthesized voices, house-style.

The required atoms gate the capstone directly — you cannot program the pattern without the sequencer, accent, and two-part concepts, nor finish the layered texture without the playback-mode, crunch, transient, and layering procedures. Supporting atoms enrich the picture: the 16-step grid and manual-play fill scheduling deepen the sequencing mechanics, while the electro rig lore (the 808/303 pairing, pre-MIDI sync tricks, orchestra hits, SP-1200 pitch artifacts) shows how these constraints became styles. Drill the sequencer, accent, and transient moves until they’re reflexive — they recur in every groove you’ll build.

Runnable examples

Generated from the context/ instrument corpus by concept (redistributable idioms only). Do not edit — regenerate with gen-module-examples.mjs.

bitcrush

s("bd*4").crush(4)

strudel-0022 · CC0

d1 $ sound "bd*4" # crush 4

tidal-0021 · CC0

sub-bass

osc 27.5 >> audio

punctual-0002 · CC0-1.0

synth :subpulse, note: :e1, sustain: 0.4, amp: 1.4

sonicpi-0016 · CC0

saturation-drive

d1 $ sound "bd*2" # shape 0.4

tidal-0033 · CC0

{ (SinOsc.ar(110) * 5).tanh * 0.2 }.play

supercollider-0009 · CC0

mono-bass

mono (saw [110,220,330]) >> audio

punctual-0013 · CC0-1.0

Atoms in this module

Required — these gate the capstone

The TR-808 generates percussion sounds through analog synthesis, not sample playback
Concept L1 Foundations BE
The TR-808's sounds are fully synthesized via Web Audio API — no samples are used
Fact L1 Foundations BN
The TR-909 hi-hat is a recorded sample, not a synthesized sound
Fact L1 Foundations BE
The Roland TR-909 and TR-808 are the canonical drum machines of techno — cheap when released, later highly collectible
Fact L1 Foundations BO
The 808’s distinctive sizzling sound came from deliberately purchasing faulty transistors
Concept L2 First instrument BE
The TR-808 programs beats by selecting a drum voice then toggling 16 step buttons to place hits
Procedure L1 Foundations BN
The TR-808 Accent track sequences volume increases across all voices simultaneously to add swing and feel
Concept L2 First instrument BA
Each TR-808 pattern has a 1st Part and 2nd Part that play sequentially to create 32-step phrases
Concept L2 First instrument BA
The Oberheim DMX used sampled sounds rather than analog synthesis, giving electro an alternative drum palette to the TR-808
Fact L2 First instrument BO
One-shot mode plays a drum sample to its full decay; gate mode ties sample length to note length
Concept L2 First instrument BN
Running samples through a 12-bit engine adds the gritty crunch of classic Detroit drums
Concept L2 First instrument BA
Backing off a sampler's amp-envelope attack removes a drum sample's transient, turning it into a tonal element
Procedure L3 Craft BD
Short decay/release and low sustain on a percussion sample give the abrupt 'clipped' snap of grime beats
Procedure L2 First instrument B
House drum tracks layer a sampled loop with individual synthesized drum hits to combine groove and punch
Procedure L2 First instrument BC

Supporting — enrichment, not gating

Sample playback reproduces a stored recording at variable rate to change pitch, trading flexibility for sound quality and memory
Concept L1 Foundations BC
In classic EDM production the TR-808 supplies the drums and the TB-303 supplies the bassline
Fact L1 Foundations B
The TR-808's Manual Play mode schedules pattern transitions and fill-ins to happen at phrase boundaries, not immediately
Concept L3 Craft BM
Layering a clicky hi-hat sample under a rounded kick adds the high-frequency presence the kick lacks
Procedure L2 First instrument BD
Layering a snare on every kick hit fills the frequency spectrum and adds attack to the kick
Procedure L2 First instrument BA
The ARP Odyssey provided basslines, ring-modulation accents, and custom drum sounds in early electro synthesis
Concept L2 First instrument BE
The Korg Poly-61 gave electro producers an affordable polysynth for bass, strings, and arpeggios in place of a Prophet-5
Fact L2 First instrument BO
The 'orchestra hit' stab, first sampled on a Fairlight for 'Planet Rock', became a ubiquitous electro/hip-hop signature
Fact L2 First instrument BO
Before MIDI, electro producers synced drum machines and sequencers using clock/trigger pulses and Roland Sync cables
Concept L2 First instrument BEN
The Pro One's onboard sequencer, triggered by the TR-808's accent output, created electro's patterned basslines without MIDI
Concept L2 First instrument BE
Recording vinyl at 45 rpm into the SP-1200 and pitching down creates characteristic lo-fi grit that defines filter house texture
Procedure L3 Craft BC
The 16-step drum machine grid represents two bars of 4/4 time as sixteen eighth notes
Concept L1 Foundations AF
The character of iconic drum machines like the 808 and 909 lies in fine waveform details that are easy to state in principle but hard to replicate exactly
Principle L4 Performance B
The TR-808 kick drum — down-pitched and elongated — became a foundational sound in drum and bass production
Fact L2 First instrument BC
Transient-shaping boosts a sound's attack for punch or softens it to sit back in the mix
Concept L2 First instrument BF
Hip-hop lo-fi texture comes from vinyl crackle, tape saturation, and bitcrushing — not from reverb wash
Concept L2 First instrument BA