13. Wavetable & Granular Synthesis

Modern techniques for evolving, textural sound

Everything we have covered so far — oscillators, filters, envelopes, additive synthesis, FM — treats sound generation as a mathematical process. You define a formula, feed it parameters, and out comes a waveform. That approach is powerful, but it has limits. Some sounds resist neat formulas: the slow timbral drift of a bowed string, the shimmering texture of rain on glass, the frozen-in-time quality of a held vocal vowel stretched across minutes. For those, we need techniques that start with stored audio data rather than equations.

Wavetable synthesis and granular synthesis are two such techniques. They come from different directions — one from the world of efficient oscillator design, the other from the experimental fringes of musique concrete — but they share a common thread: both use the raw material of sampled waveforms and reshape it in ways that would be impossible with purely mathematical oscillators. And both rely heavily on concepts from earlier in this series: the sampling theorem, windowing, spectral thinking, and anti-aliasing filtering.

Wavetable Synthesis

The basic oscillator generates a waveform on the fly. A sine oscillator computes sin⁡(2πft)\sin(2\pi f t) for each sample. A sawtooth oscillator runs a ramp function. But there is a simpler, more flexible alternative: store one complete cycle of a waveform in a table — an array of, say, 2048 samples — and read through it at the desired speed.

To produce a pitch of 440 Hz at a sample rate of 44100 Hz, you advance through the table by 440×2048/44100≈20.36440 \times 2048 / 44100 \approx 20.36 samples per output sample. This phase increment determines the pitch. A higher increment means a higher pitch — you are reading through the cycle faster.

Wavetable oscillator: Instead of computing a waveform from a formula, store one cycle in a lookup table and step through it. The step size controls pitch. The table contents control timbre. Any single-cycle waveform — recorded, drawn, or computed — can become an oscillator.

This idea dates to the earliest days of digital synthesis, but it was the PPG Wave (1981) that made it famous. Wolfgang Palm's instrument stored not just one waveform but an entire bank of them, and the player could sweep through the bank in real time.

The beauty of wavetable oscillators is their generality. A sine wave is just one possible table. You can fill the table with a hand-drawn shape, a single cycle extracted from a recording of a cello, or a waveform designed in the frequency domain using additive synthesis. The oscillator does not care — it just reads and interpolates.

Wavetable Scanning and Morphing

A single static waveform is useful but limited. The real power of wavetable synthesis comes from storing multiple waveforms in a sequence and smoothly interpolating between them. This sequence is the wavetable — not a single cycle, but a stack of cycles indexed by a "position" parameter.

Diagram

Wavetable morphing

Wavetable (stack of waveforms) pos 0: Sine pos 1: Rounded pos 2: Saw-ish pos 3: Complex scan position One cycle (phase 0 to 2pi) As the scan position moves, the output morphs smoothly between waveforms.
A wavetable stores multiple single-cycle waveforms stacked by position. The scan parameter selects which waveform (or blend of adjacent waveforms) drives the oscillator. Moving the scan position over time creates timbral evolution.

As the scan position moves — driven by an LFO, an envelope, or a MIDI controller — the timbre evolves continuously. At position 0.0 you hear a pure sine. At position 1.5, a blend of the rounded and saw-ish shapes. At position 3.0, the full complex waveform. The interpolation between adjacent frames is typically linear: for position 1.7, output 30% of frame 1 plus 70% of frame 2, sample by sample.

This morphing creates timbral movement without any filter modulation. The harmonic content changes because the waveform shape itself is changing. Modern software synths like Serum, Vital, and Phase Plant take this further: they allow hundreds of frames per wavetable, import arbitrary audio as wavetable sources, and provide spectral editing tools to sculpt each frame individually.

Wavetable from harmonics: You can build each frame using additive synthesis — frame 0 has only the fundamental, frame 1 adds the second harmonic, frame 2 adds the third, and so on. Scanning through this table sweeps from a pure tone to a bright, harmonically rich timbre. This is exactly how the PPG Wave created many of its signature sounds.

Anti-Aliasing Wavetables

There is a critical problem lurking in wavetable synthesis, and it connects directly to the sampling theorem from the first article in this series.

When you play a wavetable oscillator at a high pitch, the phase increment is large — you skip through many table entries per output sample. If the stored waveform contains sharp features (discontinuities, harmonics extending to high frequencies), those harmonics get folded back below the Nyquist frequency. The result is aliasing: harsh, inharmonic artifacts that were never in the original waveform.

A sawtooth stored as a raw ramp has harmonics at every integer multiple of the fundamental. Play it at 5000 Hz with a 44100 Hz sample rate, and the third harmonic (15000 Hz) is fine, but the fifth (25000 Hz) exceeds Nyquist and aliases down to 44100−25000=1910044100 - 25000 = 19100 Hz — a frequency that has nothing to do with the intended harmonic series.

The standard solution: bandwidth-limited wavetables. For each frame in the wavetable, pre-compute multiple versions filtered to different maximum harmonic counts. When the oscillator pitch is low, use the full-bandwidth version. When the pitch is high, switch to a version with fewer harmonics — one that has been low-pass filtered so no harmonic exceeds Nyquist at that pitch.

Anti-aliased wavetables store each waveform at multiple bandwidth levels. The oscillator selects the appropriate version based on the current pitch, ensuring harmonics never exceed the Nyquist frequency. This is the sampling theorem applied directly to synthesis.

An alternative approach is oversampling: run the oscillator at 2x or 4x the output sample rate, then low-pass filter and decimate. This is simpler to implement but more computationally expensive. Most modern synths use a combination of both techniques.

Granular Synthesis

Granular synthesis takes a completely different approach. Instead of cycling through a single waveform, it chops audio into tiny fragments — called grains — and reassembles them in new configurations.

A grain is typically between 10 and 100 milliseconds long. At these durations, a grain is long enough to carry pitch and spectral information but short enough to be treated as an atomic unit. Each grain is extracted from a source — a recording, a synthesised buffer, even live input — at a specific position, then shaped with a window function (Hann, Gaussian, triangle) to ensure smooth amplitude at the edges and prevent clicks when grains overlap.

Diagram

Grain extraction and overlap

Source waveform grain 1 grain 2 grain 3 Windowed grains Hann window Hann window Hann window Overlap-add output grains fuse into continuous output
Grains are extracted from different positions in the source, windowed to prevent clicks, then overlapped and summed to form the output signal. The window shape ensures smooth transitions where grains meet.

The idea was pioneered by Iannis Xenakis in the 1960s (he called it "screens of sound") and formalized by Curtis Roads and Barry Truax in the 1980s. Today it appears everywhere — from Ableton Live's Granulator to dedicated instruments like Output's Portal and Arturia's Pigments.

Grain Parameters

The sonic character of granular synthesis depends on a handful of parameters, each of which has a dramatic effect:

Position — where in the source audio each grain is extracted from. Keeping position fixed freezes one moment in time. Slowly advancing it creates time-stretching. Jumping randomly creates a collage effect.

Grain size (duration) — shorter grains (10-20ms) produce buzzy, noisy textures because each grain barely contains a full pitch cycle. Longer grains (50-100ms) preserve more of the source's tonal character.

Density (grains per second) — how many grains overlap at any moment. Low density (2-4 grains) produces audible rhythmic pulsing. High density (20-40 grains) fuses into a continuous stream.

Pitch (playback rate) — each grain can be played back at a different speed, independently of the others. This enables pitch-shifting without changing duration, or pitch-randomization for detuned cloud effects.

Scatter (position randomization) — instead of extracting grains at exactly the calculated position, add a random offset. Low scatter preserves the source faithfully; high scatter jumbles the timeline, creating a smeared, impressionistic version of the original.

Window shape — the envelope applied to each grain. Hann and Gaussian windows produce the smoothest results (no spectral splatter). Triangle windows are slightly harsher. Rectangle windows — no windowing at all — produce audible clicks at grain boundaries, which can be a deliberate effect.

Time-stretching with grains: To stretch a 2-second sample to 10 seconds without changing pitch, set the grain position to advance through the source at 1/5 speed. Each grain plays at normal pitch (playback rate = 1.0), so the frequency content stays the same, but the position parameter moves slowly enough that 10 seconds of output maps to 2 seconds of source. The overlapping grains fill in the gaps. This is exactly how many DAW time-stretch algorithms work under the hood.

Granular Clouds

When grain density is high and parameters are partially randomised, individual grains become imperceptible. They fuse into a continuous texture — a granular cloud.

Freeze a moment: set position to a fixed point in the source, use high density (20+ grains), add moderate scatter, and vary pitch slightly. The result is a shimmering, sustained texture derived from a single instant of the source audio. A vocal syllable becomes an infinite drone. A piano attack becomes a metallic shimmer.

Clouds from tonal sources tend to retain harmonic character — you hear a pitch center surrounded by spectral haze. Clouds from noisy or transient sources (drums, rain, breaking glass) produce pure texture with no discernible pitch.

The overlap ratio — grain density multiplied by grain duration — determines how fused the output sounds. An overlap ratio below 1.0 means there are gaps between grains (audible pulsing). A ratio of 2-4 is typical for smooth clouds. Above 8-10, the output becomes very dense and washy, and the amplitude builds up (requiring gain compensation).

Granular clouds emerge when individual grains are too dense and too varied to perceive individually. The result is a continuous texture whose character depends on the source material and the parameter settings — pitch, scatter, density, and window shape each contribute to the cloud's spectral and temporal qualities.

Where Filtering and Windowing Reappear

Both techniques circle back to ideas from earlier in this series.

Windowing in granular synthesis is not just a convenience — it is a spectral operation. Applying a Hann window to a grain is equivalent to convolving the grain's spectrum with the window's frequency response. A rectangular window has wide spectral sidelobes, which is why it produces clicks and artifacts. A Hann window has much lower sidelobes, producing cleaner transitions. This is exactly the same trade-off we explored in the windowing article.

Filtering in wavetable synthesis is anti-aliasing. The bandwidth-limited versions of each wavetable frame are created by low-pass filtering — removing harmonics above a threshold determined by the playback pitch. This is the sampling theorem in action: if you cannot represent frequencies above Nyquist, you must remove them before they appear in the output.

Spectral thinking unifies both approaches. A wavetable frame is a single-cycle waveform whose DFT reveals its harmonic content. Morphing between frames is equivalent to interpolating between spectra. Granular clouds, at high density, approach a statistical distribution of spectral content — the individual grain spectra blend into an average that characterizes the cloud's timbre.

The entire arc of this series — from the sampling theorem through the DFT, windowing, filtering, spectrograms, and synthesis — forms a coherent chain. Each concept builds on the last, and these modern synthesis techniques are where they all converge.

Key Takeaways

  • Wavetable synthesis stores one cycle of a waveform in a lookup table and reads through it at different speeds to produce different pitches.
  • Wavetable morphing stacks multiple waveforms and interpolates between them, creating timbral evolution without filter modulation.
  • Anti-aliasing is critical: bandwidth-limited wavetables pre-filter each frame for different pitch ranges to prevent harmonics from exceeding Nyquist.
  • Granular synthesis chops audio into short grains (10-100ms), windows each grain, and recombines them through overlap-add.
  • Grain parameters — position, size, density, pitch, scatter, window — provide independent control over time, pitch, and texture.
  • At high density with randomized parameters, grains fuse into continuous textures called granular clouds.
  • Windowing in granular synthesis is a spectral operation; the window shape determines sidelobe levels and artifact characteristics.
  • Both techniques rely on core signal processing concepts: the sampling theorem, filtering, windowing, and spectral analysis.

Try It — Granular Cloud

Choose a source waveform, then adjust grain parameters to see how granular synthesis reconstructs (or transforms) the signal. The top canvas shows the source with grain positions highlighted. The bottom canvas shows the overlapping grains forming the output cloud.

60 samples
12 grains
20%
Source Waveform (grains highlighted)
Granular Output (overlapping grains)

This article completes the Sound Synthesis & Filter Design subseries. Over six articles we have moved from the building blocks — oscillators, subtractive filtering, envelopes — through the mathematics of additive and FM synthesis, and arrived here at two techniques that blur the line between synthesis and sample manipulation. The common thread throughout has been the signal processing fundamentals from the core series: sampling, the DFT, windowing, and filtering. Those ideas are not just theoretical background — they are the engineering reality behind every synthesizer, every DAW time-stretch algorithm, and every spectral effect. With this foundation, the door is open to explore physical modelling, spectral processing, vocoding, and any other corner of sound design — because the underlying principles are always the same.