An audio grain is a short, time-localized sound event used as a building block in Granular Synthesis and granular processing. A grain can be read from a recorded audio buffer, captured from live input, or generated from a synthetic source. It normally has a defined start time, duration, amplitude shape or window, playback rate or internal pitch, and often its own position and pan.
The common description “a tiny piece of a sample” is useful, but incomplete. A grain is not defined only by being short. What matters is that the sound is treated as an independent, finite event that can be positioned, shaped, overlapped, repeated, randomized, transposed, or reorganized with many other grains.
Most classic granular techniques use grains lasting from a few milliseconds to a few tens of milliseconds. Modern software and hardware often stretch the word much further, sometimes calling events lasting hundreds of milliseconds or even several seconds “grains.” The DSP operation can remain similar while the perceptual result moves far beyond traditional microsound.
Table of Contents
What makes a grain a grain?
At its simplest, a grain is a source signal multiplied by a finite amplitude window:
g(t) = w(t) × s(t)
where:
- s(t) is the source signal;
- w(t) is the grain’s amplitude window;
- g(t) is the resulting grain.
If the source is a sinusoid, a simple synthetic grain could be written as:
g(t) = w(t) × A sin(2πf₀t + φ)
where:
- A is amplitude;
- f₀ is the internal frequency;
- φ is phase.
If the source is recorded audio, s(t) is usually read from a particular position in an audio buffer.
The grain then has its own life cycle:
start -> windowed sound -> end
A granular engine can create hundreds of those events, each with different timing, source position, pitch, pan, amplitude, or duration.
A smooth window is common, but not a metaphysical requirement
Granular texts and software often emphasize Hann, sine, Gaussian, trapezoidal, or other tapered windows because smooth fades reduce abrupt waveform discontinuities.
That does not mean an event stops being a grain the instant its window becomes rectangular.
A hard-cut segment is mathematically equivalent to multiplying the source by a rectangular window. It can still function as a grain inside a granular engine, but the abrupt boundaries are much more likely to create clicks and broad spectral energy.
So the useful distinction is not:
windowed = grain, unwindowed = not grain
but rather:
grains are finite sound events, and smooth windows are one of the main tools used to make those events behave musically.
Grain size and duration
Grain size is the duration of one grain.
It may be expressed in:
- milliseconds;
- samples;
- seconds;
- tempo-synchronized note values in some musical interfaces.
In classic granular synthesis, grain durations are often very short.
Barry Truax describes granular synthesis as using small acoustic events below roughly 50 ms, commonly around 10 to 30 ms in the systems he discusses.
Curtis Roads uses the broader idea of the micro time scale, where events occupy the region below ordinary note-level musical time.
Those descriptions are historically important, but modern products use the word more loosely.
There is no universal modern maximum grain length
A grain does not suddenly become invalid at exactly 50 ms or 100 ms.
Contemporary engines regularly expose much larger ranges.
The Tasty Chips GR-1 manual, for example, defines a Grain Size range from:
5 ms to 5000 ms
or five full seconds.
At the upper end, the event no longer behaves perceptually like classic microsound. It begins to resemble a windowed sample fragment, loop, or phrase.
The important editorial distinction is therefore:
- historical / microsonic grain: usually very short, often tens of milliseconds;
- modern product parameter called Grain Size: may extend far beyond the microsonic domain.
The terminology has broadened because the underlying playback architecture can remain grain-based even when the event duration becomes macroscopic.
What very short grains sound like
Grain duration changes what the ear can extract from the source.
As a grain becomes extremely short:
- fewer waveform cycles fit inside it;
- stable pitch cues weaken;
- the spectrum spreads;
- transients become more prominent;
- the event may be perceived more as a click, tick, particle, or burst than as a pitched tone.
As grain duration increases:
- more periodic information survives;
- pitch becomes easier to identify;
- formants and source timbre become more recognizable;
- the grain behaves more like a conventional short audio fragment.
There is no single perceptual threshold that works for every source and every listener.
A 10 ms fragment of a high-frequency sinusoid contains many more cycles than a 10 ms fragment of a 50 Hz tone. Window shape, level, repetition rate, and surrounding grains also affect perception.
So statements such as “anything below 2 ms is always only a click” are too absolute for a general definition.
The time-frequency tradeoff
The behavior of short grains is connected to the time-frequency uncertainty principle.
Using standard-deviation measures for temporal and spectral spread in continuous-time signal analysis:
Δt × Δf ≥ 1 / (4π)
where:
- Δt describes time spread;
- Δf describes frequency spread.
The equality case is associated with Gaussian-shaped signals.
The practical meaning is more important than the constant:
a signal cannot be arbitrarily concentrated in both time and frequency at once.
A very short window gives precise timing but broad spectral spread.
A longer window gives better frequency localization but poorer time localization.
This is why shrinking grain size can turn a stable source into something noisy, bright, diffuse, or percussive even when the source buffer itself has not changed.
This principle does not define one mandatory grain size
The uncertainty relationship describes a signal-analysis constraint.
It does not say:
grain = exactly 10 ms
or:
grain = anything below 100 ms
It explains why duration and spectral character are inseparable when a sound event becomes very short.
Grain window and envelope
The grain’s window, also called its grain envelope or shape, controls how amplitude behaves from the beginning of the event to the end.
Common choices include:
- Hann;
- sine;
- Gaussian;
- triangular;
- trapezoidal;
- rectangular;
- custom curves.
Smooth windows
A smooth bell-shaped window typically:
- starts near zero;
- rises toward a maximum;
- falls back toward zero.
This reduces abrupt start and stop discontinuities.
The result is often:
- smoother overlap;
- fewer clicks;
- softer transients;
- more cloud-like textures.
Rectangular windows
A rectangular window turns the grain on and off abruptly.
If the source waveform happens to be near zero at both boundaries, the result can still be clean.
If it begins or ends at a very different instantaneous amplitude, the sudden jump can produce a click and additional high-frequency energy.
This is why smooth grain envelopes are so common even though they are not the only mathematically possible window.
Window shape changes timbre
The window is not merely click prevention.
It changes the grain’s spectrum.
A short, sharply edged window spreads energy more broadly in frequency.
A smoother window reduces sidelobes and boundary harshness but may soften transients.
So the envelope belongs to the sound design of the grain itself.
Source position and the read pointer
When grains are taken from recorded audio, the engine needs to know where in the buffer each grain begins.
That parameter may be labeled:
- Position;
- Grain Position;
- Sample Position;
- Start;
- Offset;
- Playhead Position.
A read pointer begins at that location and reads audio for the grain’s duration.
Move the source position and the grain pulls material from another part of the recording.
For a vocal sample, one position might capture:
- the consonant;
- the vowel onset;
- the sustained vowel;
- a breath;
- the tail.
The grain can therefore change dramatically even when duration, pitch, and window remain constant.
Playback rate and grain pitch
A sampled grain can usually be read at different speeds.
If a basic resampling engine reads the source at twice its normal rate:
rate = 2.0
the material is transposed approximately one octave upward.
If it reads at half speed:
rate = 0.5
the material is transposed approximately one octave downward.
Reverse playback may use a negative rate in some systems.
This is conceptually separate from grain triggering rate.
One parameter determines how fast audio is read inside each grain.
Another determines how frequently new grains are created.
Confusing those two rates is one of the easiest ways to misunderstand granular synthesis.
Density, grain rate, and inter-onset time
Density describes how frequently grains are generated.
It is commonly expressed as:
grains per second
or equivalently in hertz when the generation is regular.
If a system produces:
50 grains per second
then the average interval between grain onsets in a perfectly regular stream is:
1 / 50 = 0.02 s = 20 ms
That interval is sometimes called inter-onset time or hop time.
Density does not equal grain size
A grain can last 100 ms while new grains are triggered every 20 ms.
That means several grains overlap.
Or a grain can last only 5 ms while new grains arrive every 100 ms.
That creates isolated particles separated by silence.
Duration and density are independent controls in many granular systems.
Overlap and the average number of active grains
A useful approximate relationship is:
Average overlap ≈ Density × Grain Duration
when duration is expressed in seconds and the grain stream is statistically steady.
For example:
Density = 50 grains/s
Duration = 40 ms = 0.04 s
then:
50 × 0.04 = 2
So roughly two grains are active at once on average.
If duration rises to 200 ms:
50 × 0.2 = 10
roughly ten grains can overlap on average.
This relationship is useful for understanding both sound and CPU load.
It is an approximation, not a universal implementation law. Random timing, varying durations, voice architecture, polyphony limits, and dropped grains can change the instantaneous count.
Synchronous and asynchronous grains
The timing of grain creation strongly affects what the grain stream becomes.
Synchronous generation
In synchronous granular synthesis, grains are triggered at a regular rate.
A perfectly regular repetition can itself create a perceptible pitch.
If grains begin every 10 ms:
1 / 0.01 = 100 Hz
so the repetition rate can establish a 100 Hz periodicity even if the internal grain content is more complex.
This relationship can create:
- pitched streams;
- formant-like spectra;
- buzzy tones;
- rhythmic pulses at lower rates.
Asynchronous generation
Asynchronous systems vary grain onset times statistically or randomly.
Instead of one strict repetition frequency, the ear receives a distribution of events.
The result can become:
- diffuse;
- noisy;
- cloud-like;
- spatially broad;
- less tied to one periodic grain rate.
The full architectures belong on the Granular Synthesis page. For the grain itself, the key idea is that identical grains can produce radically different results depending on when they are launched.
Spray, jitter, and randomization
Granular instruments often randomize grain parameters.
Common labels include:
- Spray;
- Jitter;
- Scatter;
- Random;
- Position Random;
- Pitch Random;
- Pan Random.
There is no universal definition that every manufacturer follows.
Position spray
In many granular instruments, Spray means randomizing the source position around a central playhead.
Instead of every grain beginning at exactly 2.500 seconds in the sample, grains might begin at slightly different nearby positions.
That reduces repetition and can turn a rigid loop into a diffuse texture.
Timing jitter
Randomizing onset time breaks strict periodicity.
A synchronous metallic buzz can become softer and more cloud-like when timing is destabilized.
Pitch and pan randomization
Each grain can also receive its own:
- transposition;
- stereo position;
- level;
- direction.
This creates movement without requiring one global LFO to control every grain identically.
Grain vs sample
The word sample has two meanings in audio, which makes this comparison easy to confuse.
In digital signal processing, a sample can mean one discrete numerical measurement of a waveform at one instant.
In music production, “a sample” often means an entire recorded audio asset, such as a drum hit, vocal phrase, or field recording.
A grain is neither definition by default.
A grain is a finite sound event that may read a small region from a larger recorded sample buffer.
The source recording remains available for other grains to read from other positions.
Grain vs slice
A slice is usually a larger musical division of recorded audio.
A drum loop might be sliced at transient boundaries so each kick, snare, and hi-hat can be triggered separately.
Slices are commonly related to:
- rhythm;
- events;
- transient detection;
- rearrangement;
- beat chopping.
Grains are usually much shorter and are often designed to overlap in large numbers.
But there is no mathematical wall between the terms.
A long grain and a short slice can approach the same duration.
The distinction is mostly about processing intent and architecture.
Grain vs STFT frame
A Short-Time Fourier Transform also breaks audio into windowed time regions.
That makes an STFT frame look superficially similar to a grain.
The purpose is different.
An STFT frame is normally part of a systematic time-frequency analysis process with a defined window, frame size, and hop size.
A granular grain is treated as a sound event to be synthesized, transformed, rearranged, or layered.
There is substantial mathematical overlap, but the terms belong to different workflows.
An FFT bin is not an STFT frame
This distinction is important because they are sometimes casually grouped together.
A frame is the windowed block of time-domain audio submitted to the transform.
An FFT bin is one frequency-domain coefficient produced by that transform.
A grain may resemble a frame in time-domain structure.
It is not equivalent to an FFT bin.
Grain vs wavetable frame
A Wavetable Synthesis frame is usually a stored single-cycle waveform or one waveform state inside a wavetable.
A grain is a finite event with a defined duration and envelope.
A wavetable oscillator may repeat one frame continuously as the audio source.
A granular engine launches individual grains that begin and end.
Both can use short waveform data, and hybrid instruments can combine the techniques, but the playback architecture is different.
Grain vs envelope
A grain normally has an amplitude envelope or window, but the grain is not identical to the Envelope.
The grain includes:
- the sound source;
- its start position;
- duration;
- playback behavior;
- amplitude shape;
- other per-grain parameters.
The window is one component of the grain.
Practical grain-size workflow
When learning a granular instrument, grain size is often the best parameter to explore first.
Start around tens of milliseconds
A starting region around 20 to 50 ms often preserves enough source identity to hear what the engine is doing while still behaving recognizably as granular processing.
This is not a recommended universal preset value. It is simply an informative area for experimentation because it sits near the classic grain durations discussed in granular literature.
Make the grains shorter
Listen for:
- loss of stable pitch;
- brighter spectral spread;
- click-like particles;
- noise-like texture;
- more obvious granularity.
Make the grains longer
Listen for:
- clearer source identity;
- more stable pitch;
- recognizable syllables or transients;
- smoother looping behavior;
- less microsonic character.
Then change density separately
Keep grain size fixed and increase density.
This reveals the difference between:
how long each event lasts
and:
how often new events begin.
That single experiment resolves a large amount of granular terminology quickly.
Why grains click
Clicks usually appear when a grain creates an abrupt amplitude discontinuity.
Possible causes include:
- rectangular or overly steep windows;
- source material beginning far from a zero crossing;
- grain ending abruptly;
- insufficient overlap;
- sudden parameter changes;
- feedback or gain staging in the surrounding processor.
A smoother window can help, but windowing is not the only variable.
The source itself may contain a legitimate transient that should remain sharp.
Over-smoothing every grain can erase exactly the attack information the producer wanted to preserve.
Why granular audio can sound metallic or robotic
A metallic or robotic texture is not automatically an error.
It often comes from excessive regularity.
If grains repeatedly use:
- the same source position;
- the same pitch;
- the same duration;
- the same timing;
- the same pan;
then phase relationships repeat predictably.
That can produce:
- comb-filter-like coloration;
- strong periodicity;
- pitched buzzing;
- static metallic spectra.
Possible ways to loosen the sound include small amounts of:
- position spray;
- onset jitter;
- pitch randomization;
- pan variation;
- duration variation.
The correct amount depends on whether the goal is a stable pitched grain stream or a diffuse cloud.
Documented implementation: SuperCollider GrainBuf
SuperCollider’s GrainBuf UGen provides a useful technical example because its parameters expose the anatomy of a grain directly.
Its documented arguments include:
trigger, which starts each grain;dur, grain duration in seconds;sndbuf, the source audio buffer;rate, source playback rate;pos, source start position;interp, the interpolation method;pan, output position;envbufnum, grain envelope;maxGrains, the maximum number of overlapping grains.
SuperCollider’s built-in default envelope is Hann when no custom envelope buffer is supplied.
Its current documentation also defaults maxGrains to 512.
This is a clean demonstration that one grain is not just “some short audio.” It is a scheduled event with duration, source position, playback rate, envelope, and output placement.
Documented implementation: Ableton Granulator III
Ableton’s Granulator III provides the same ideas through a producer-facing instrument.
Ableton documents modulation of grain:
- size;
- shape;
- position;
- pitch-related behavior;
and includes Classic, Loop, and Cloud playback modes.
It can also capture live audio and supports MPE modulation of grain parameters on a per-note basis.
The interface deliberately hides much of the low-level DSP vocabulary, but the underlying concepts remain recognizable:
where does the grain come from, how long is it, how is it shaped, and when is it played?
Modern terminology drift: the Tasty Chips GR-1
The Tasty Chips GR-1 is useful because its manual shows how far commercial usage of the word grain has expanded.
Its current documentation specifies:
- Density from 0.1 to 1000 grains per second;
- up to 128 simultaneous grains per voice;
- Grain Size from 5 to 5000 ms.
A 5 ms grain fits comfortably inside traditional microsound language.
A 5-second “grain” does not.
Yet the same product parameter still calls it Grain Size because the event is produced by the same granular playback architecture.
This is why a modern glossary should not impose one arbitrary millisecond cutoff as though every manufacturer and researcher uses the word identically.
A short history of the grain concept
The grain as a musical idea developed through several stages.
Dennis Gabor
Dennis Gabor’s Theory of Communication, published in 1946, developed a time-frequency representation based on elementary signals localized in both domains rather than infinitely long Fourier components.
His 1947 Nature article Acoustical Quanta and the Theory of Hearing applied related ideas directly to acoustics and perception.
The associated Gabor atom is commonly represented by a sinusoid localized by a Gaussian window.
Not every modern audio grain is a Gabor atom, but Gabor’s framework is foundational to the idea of sound as localized time-frequency particles.
Iannis Xenakis
Iannis Xenakis developed a granular conception of sound in the late 1950s.
His Analogique B from 1959 used clouds of very short, approximately sinusoidal sound particles. The official Xenakis archive describes the recorded grains as roughly 40 ms long and notes the immense practical difficulty of realizing the idea with tape-era technology.
This was not modern real-time digital granulation. It was an early compositional implementation of a particulate model of sound using the tools then available.
Curtis Roads
Curtis Roads became one of the central researchers and composers in digital granular synthesis and microsound.
His later book Microsound systematized much of the history, theory, perception, and compositional vocabulary surrounding very short sound events.
Barry Truax
Barry Truax implemented granular synthesis in real time in 1986 at Simon Fraser University using the PODX system and a DMX-1000 signal-processing computer.
Truax’s own account describes grains around 10 to 50 ms and emphasizes the transition from isolated events into fused sound as density rises.
The history of the grain is therefore not one inventor story.
It runs from time-frequency theory, through tape-era composition, to non-real-time computer synthesis, real-time DSP, and modern music-production instruments.
Common grain mistakes and myths
“A grain is always just a few milliseconds long”
Too strict.
Very short durations are historically central, but modern granular systems may call much longer events grains.
Use the duration as a description of behavior, not a universal legal definition.
“Any short sample is automatically a grain”
Not necessarily in musical workflow.
A short audio slice can become a grain when an engine treats it as an independently scheduled, shaped, and manipulable event.
The processing architecture matters as much as raw duration.
“A grain must use a Gaussian window”
No.
Gaussian windows are historically and mathematically important, especially in Gabor-style formulations.
Modern engines also use Hann, sine, triangular, trapezoidal, rectangular, and custom shapes.
“A grain without a smooth fade is not a grain”
Too absolute.
A rectangularly windowed event can still function as a grain.
It is simply more likely to produce abrupt-boundary artifacts.
“Grain pitch and grain rate are the same parameter”
No.
Playback rate controls the audio inside a sampled grain.
Grain rate or density controls how frequently new grains begin.
They can interact, but they are not the same clock.
“More density means larger grains”
No.
Density and duration are separate parameters.
High density can be used with tiny grains, long grains, or anything between.
“An FFT bin is another word for a grain”
No.
A grain is a time-localized sound event.
An FFT bin is a frequency-domain coefficient produced from a transform frame.
“Granular always means random”
No.
Grains can be launched periodically, deterministically, algorithmically, interactively, or stochastically.
Randomness is one design choice, not the definition.
Related terms
- Granular Synthesis: the broader family of techniques that organizes large numbers of grains into sounds, streams, and clouds.
- Envelope: provides the amplitude-shaping concept used for grain windows.
- Modulation: grain position, duration, pitch, density, pan, and other parameters can all be modulation destinations.
- LFO: can scan grain position, change density, or animate other granular parameters.
- Wavetable Synthesis: another synthesis method using short waveform data, but with a different playback architecture.
- Sample: can mean a single digital waveform value or, in production language, a recorded audio asset used as source material.
- Slice: usually a larger musically meaningful segment of recorded audio, often created around transients or rhythmic events.
- STFT Frame: a windowed time-domain block used in time-frequency analysis.
- FFT Bin: one frequency-domain coefficient produced by an FFT, not another name for a grain.
- Grain Delay: an effect architecture that captures audio into a buffer and replays delayed grains from it.
References and further reading
- Dennis Gabor, Theory of Communication, 1946
- Dennis Gabor, Acoustical Quanta and the Theory of Hearing, Nature, 1947
- Iannis Xenakis: Granular Synthesis
- Barry Truax: Granular Synthesis
- Curtis Roads: Microsound, MIT Press
- SuperCollider GrainBuf Documentation
- Ableton Granulator III
- Tasty Chips GR-1 User Manual