home/ modules/ granular-synthesis-foundations

Granular synthesis: grains, clouds, and time-frequency textures

  • learner can explain the grain as the atomic unit (envelope + waveform) and how grain parameters — duration, density, position, pitch — shape a texture
  • learner can build granular clouds from a source buffer and control the point/line/cloud continuum and density/fill-factor
  • learner can use granulation for time-stretching and pitch-shifting decoupled from each other

Granulate a recorded sound into an evolving cloud: sweep grain density from discrete points to a continuous tone, time-stretch it without changing pitch, and pitch-shift it without changing duration.

Granulation is the live coder’s texture engine: on stage it turns one field recording or a resampled loop into ambient beds, riser swells, and stretched vocal smears — the moves behind ambient, dub techno, and IDM sets where a single buffer must yield twenty minutes of evolving material without loading new samples mid-performance.

The whole task is to take one recorded sound and command it as a cloud: sweep it from ticking points to a solid drone, stretch its time without touching its pitch, then transpose it without touching its length. Everything reduces to one structure — a grain generator is always just an amplitude envelope applied to a waveform — so the first supported exercise is a single grain voice reading a short window from a source table. From there the scaffolding widens: set where each fragment reads using grain start position and duration, choose a smooth Gaussian grain envelope to kill boundary clicks, then raise grain density and watch fill factor (density times duration) carry the texture from sparse to packed, along the point/line/cloud continuum. Only then decouple the read pointer from playback rate to get time-stretching, and per-grain rate from trigger rate to get pitch-shifting — the capstone performs both, unsupported, as one continuous gesture.

Required atoms gate the capstone directly: without the density/fill-factor relationship the sweep stalls, and without the pitch-time-changing procedure the stretch collapses back into tape-speed behaviour. Supporting atoms enrich rather than gate — perception thresholds explain why 20 grains per second fuses into tone, Gabor’s quantum grounds the duration-bandwidth trade-off, the deeper envelope-shape spectral theory (sidelobes, AM sidebands) explains what the Gaussian window buys you, and per-grain randomisation and microfiltration point toward the animated, scintillating textures a set eventually needs.

Runnable examples

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

sub-bass

osc 27.5 >> audio

punctual-0002 · CC0-1.0

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

sonicpi-0016 · CC0

reverse-playback

d1 $ sound "bd sn" # speed "-1"

tidal-0056 · CC0

Atoms in this module

Required — these gate the capstone

Granular synthesis builds textures from clouds of short enveloped sound grains
Concept L1 Foundations BF
A grain is a short fragment read from a buffer, and it is the basic unit of granular synthesis
Concept L2 First instrument B
A grain generator is always just an amplitude envelope applied to a waveform — the same structure regardless of cloud size
Principle L2 First instrument B
Granular synthesis exposes per-grain parameters: pitch, duration, position, panning, and waveform content
Concept L2 First instrument B
Grain density spans texture from discrete rhythmic events to continuous tone
Concept L2 First instrument B
Fill factor (density times duration) determines whether a granular cloud is sparse, covered, or packed
Concept L2 First instrument B
Granular grains are less than 50 ms long, typically 10-30 ms
Fact L2 First instrument B
Shorter grain duration produces wider spectral bandwidth
Principle L2 First instrument B
A Gaussian (bell-shaped) envelope is preferred as a grain window because it produces smooth, artifact-free grain transitions
Concept L2 First instrument B
Grain start position and duration together determine which region of a sample buffer each grain plays back
Procedure L2 First instrument B
A granulator is shaped along independent axes of grain length, source position, density, and transpose
Concept L2 First instrument B
Granular textures organise into three perceptual layers: points, lines, and clouds
Concept L2 First instrument B
Granular clouds are statistical sound masses at the meso time scale
Concept L2 First instrument B
Particle density controls the opacity and transparency of a granular texture
Concept L2 First instrument B
Polyphonic overlapping grains form a grain cloud — granular synthesis's characteristic dense texture
Concept L3 Craft B
Granular synthesis changes a sound's duration independently of its pitch
Concept L2 First instrument BC
Granulation enables independent control of pitch and duration
Procedure L3 Craft B
Grain-by-grain pitch shifting produces chorus, noise, or melodic elaboration depending on grain size
Concept L3 Craft B
Granulation segments an existing sound into grains and reassembles them in new time order
Procedure L2 First instrument B
Granulating a sound file by manipulating the read pointer transforms the identity of the original source
Procedure L2 First instrument B
Rich granular textures emerge from superimposing grains that are individually trivial
Principle L2 First instrument B
Any signal can be decomposed into an overlapping sequence of grains
Principle L2 First instrument B
A granular voice reads a short window from a source table, applies an amplitude envelope, and outputs one grain
Concept L3 Craft B
Synchronous granular synthesis produces ordered streams while asynchronous synthesis produces stochastic clouds
Concept L2 First instrument B
Asynchronous granular synthesis (AGS) scatters grains statistically across time-frequency clouds
Concept L2 First instrument B

Supporting — enrichment, not gating

The grain envelope shape determines the spectral spread and character of a grain
Principle L3 Craft B
The slope of the grain envelope controls the spectrum: sharper attacks produce broader bandwidths
Principle L3 Craft B
A periodic grain envelope creates AM sidebands at 1/grain-period intervals
Principle L3 Craft B
Music spans nine time scales from infinite to infinitesimal
Concept L1 Foundations BA
The micro time scale spans from ~200 microseconds to ~100ms
Fact L1 Foundations B
Below ~200ms, auditory perception switches into a different mode
Concept L2 First instrument B
Impulses fuse into a continuous tone at about 20 impulses per second
Principle L2 First instrument B
Rhythm and pitch are the same phenomenon at different time scales
Principle L2 First instrument BA
Grains shorter than about 50 ms transition from perceived pitch to timbre or click as duration decreases
Concept L3 Craft BF
Randomising grain parameters between bounded min and max values produces animated granular textures
Procedure L3 Craft B
Per-grain processing applies a different transformation to each grain, producing granular heterogeneity
Concept L3 Craft B
Microfiltration applies a unique filter to each grain for spectrally animated textures
Procedure L3 Craft B
A granular texture sounds the same played backwards because the grain is time-invariant
Concept L3 Craft B
Cloning one particle into a repeated stream builds a pitched tone from a single grain
Procedure L3 Craft B
Sparse, particle-based audio produces more event-legible visualisations than dense continuous music
Principle L3 Craft BH
Time-stretching and pitch-shifting are decoupled operations requiring phase vocoder or WSOLA rather than sample rate change
Concept L2 First instrument BCD
Changing a sample's playback rate simultaneously shifts its pitch and duration
Principle L1 Foundations FB
Time resolution and frequency resolution in windowed analysis are inversely constrained
Principle L2 First instrument B
Dennis Gabor proposed the grain as an indivisible psychoacoustic quantum of sound
Concept L3 Craft B
A Grain Delay pitched down an octave turns a chord's delays into the track's sub bass
Procedure L3 Craft BD
Surge XT's Nimbus effect ports Mutable Instruments Clouds granular texture processing into a plugin effect
Concept L3 Craft BE