home/ modules/ swing-humanization-and-pocket

Swing, Humanization and Finding the Pocket

  • learner can dial swing by mechanism, percentage and tempo and distinguish it from shuffle and humanization
  • learner can humanize timing and velocity to create a convincing groove pocket
  • learner can apply quantization creatively and match swing settings to genre feel

Take a stiff quantized two-bar beat and groove it: apply a genre-appropriate swing percentage, partially quantize kick/snare hard and hats loose, humanize velocity and timing across two axes, and A/B it against the robotic original to prove the pocket improved.

Every sequencer — a DAW piano roll, a drum machine, or a live-coded pattern — starts you at dead-on-grid perfection, and that perfection is exactly what sounds lifeless on a dancefloor. This module builds the skill of taking a robotic beat and putting it in the pocket: the difference between a techno set that is meant to be machine-precise and a house, garage or lo-fi groove that has to breathe. In performance this is a real-time judgment call — a swing knob turned while the loop plays, a quantize strength chosen per part — so the whole task is dialing feel by ear, not memorizing numbers.

The arc starts supported: with a busy 16th-note pattern loaded (swing is only audible when notes land on the delayed off-beat steps), sweep the swing percentage and hear how 50% is straight, 54% loosens, 66% turns triplet. Lean on “the optimal swing percentage varies with tempo and pattern, so it must be dialed in by ear” and the genre swing tables as JIT references when choosing a target feel. Then split treatment per element using partial quantization — kick and snare pulled hard to the grid as anchors, hats left loose — and add life with “unquantized hi-hats with varied velocities give a programmed pattern a live, human feel.” The capstone removes the scaffolding: you groove a stiff two-bar beat yourself and prove it improved by A/B.

The required atoms gate that capstone directly — swing mechanism and percentages, tempo dependency, swing-versus-shuffle and swing-versus-humanization distinctions, partial quantization, and the micro-timing concept of the pocket. Supporting atoms enrich the picture: the LM-1 history, quintuplet and tuplet-grid tricks, hand-nudged Dilla-style placement, and Roger Linn’s caution that random jitter is no substitute for deliberate swing and velocity.

Runnable examples

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

backbeat

s("~ sd ~ sd")

strudel-0003 · CC0

d1 $ sound "~ sn ~ sn"

tidal-0003 · CC0

subdivision

seq [55, 82.5, 110, 82.5] & osc >> audio

punctual-0014 · CC0-1.0

d1 $ n "0 .. 7" # scale "minor" # sound "arpy"

tidal-0030 · CC0

swing

s("hh*8").swingBy(1/3, 4)

strudel-0008 · CC0

d1 $ swingBy (1/3) 4 $ sound "hh*8"

tidal-0008 · CC0

microtiming

d1 $ (0.02 ~>) $ sound "hh*8"

tidal-0032 · CC0

play (scale :e4, :minor).tick, release: 0.1; sleep (ring 0.25, 0.25, 0.125).tick

sonicpi-0011 · CC0

Atoms in this module

Required — these gate the capstone

Swing delays every other 16th note by a set proportion, with 50% meaning straight timing
Concept L1 Foundations AFNE
Swing time alternately stretches and shrinks the two halves of each beat
Fact L1 Foundations A
Jazz swing is a musician's real-time feel convention while electronic swing is a fixed repeating timing offset
Misconception L1 Foundations AF
A swing setting of 60–65% produces the rolling feel characteristic of UK garage
Fact L2 First instrument AF
The optimal swing percentage varies with tempo and pattern, so it must be dialed in by ear
Principle L2 First instrument AE
Swing is only audible when notes land on the delayed off-beat steps — a pattern with only on-beat hits is unaffected
Principle L2 First instrument AF
Shuffle is triplet-based (66.7% ratio) while swing is any timing offset that creates groove (52–70%)
Concept L2 First instrument A
Quantization snaps notes to the time grid; humanization reintroduces small timing deviations for feel
Concept L1 Foundations ANB
Partial quantization moves notes toward the grid by a percentage, preserving human timing
Concept L2 First instrument AN
Humanization randomizes timing and velocity, distinct from swing's systematic long-short pattern
Concept L2 First instrument A
Groove (the pocket) lives in the micro-timing variations between mechanically perfect beats
Concept L1 Foundations A
Different electronic genres use characteristic swing percentages that define their feel
Fact L2 First instrument A
Unquantized hi-hats with varied velocities give a programmed pattern a live, human feel
Concept L2 First instrument AB

Supporting — enrichment, not gating

Swing is an attitude to rhythm — any music with pleasing dequantization might be said to swing
Concept L1 Foundations A
Shuffle rhythm replaces straight eighth pairs with the first and third of a triplet, creating a swinging feel
Concept L2 First instrument AF
Placing two hi-hats per beat from a quintuplet grid produces a 3:2 ratio — quintuplet swing
Concept L2 First instrument A
Quantization acts like guitar frets — it removes the need for exact placement so musicians can focus on expression
Concept L1 Foundations AE
Roger Linn's 1979–80 LM-1 introduced machine swing by delaying every other quantised step
Fact L1 Foundations AOE
Step sequencing builds patterns fast but its dead-on-grid timing must be loosened for feel-driven genres
Concept L2 First instrument AN
Machine-precise, mathematical rhythm strips the swing out of dance music for a calculator-like feel
Concept L2 First instrument AO
Placing individual hits off the grid by hand creates groove that uniform swing quantize cannot
Procedure L2 First instrument ADF
Quintuplet, sextuplet, and septuplet grids place hits between 16th notes without manual millisecond nudging
Procedure L2 First instrument AN
Accurate note playback timing matters more than random micro-timing variation for groove
Misconception L2 First instrument AE
Microtiming — small per-hit push/pull offsets of a few milliseconds — is what separates a sampled break from a programmed one
Concept L2 First instrument AF
Hip-hop head-nod comes from heavy swing (30–50%) plus a slightly late, laid-back snare
Principle L2 First instrument A