Speculative Acoustics Lab · Dec 4, 2026

A Pad Between Two Balls

Resynthesising a chord through the geodesic between two Bregman balls — a generative pad where the geometry, not a filter, is the timbre.

The granulator used the balls to decide which grain to play next. This piece uses them for something stranger: the geometry is the timbre. There is no filter to sweep and no sample to play. A four-note chord is resynthesised from sine partials, and the amplitude of every partial is read off an envelope that slides along the geodesic between two ball centroids.

A Bowed 2 · 75–100%B Breath 1 · 0–40%morph 35%
Drift hides the morph slider and sweeps the geodesic on its own.

9 colours from four spectral sources. Every partial's amplitude comes from the envelope above, so the timbre is whatever the geometry is doing.

A palette of colours

Four spectral sources — a bowed string, a struck bell, a breath, a glass cluster — are sampled into frames, floored and normalised into multinomials, and segmented into metric balls under the KL divergence, exactly as before. Each ball’s right-sided centroid is one colour.

One correction was needed. The sources evolve at wildly different rates, so a single radius left the bell as one lump and shattered the glass cluster into twenty near-identical slivers. The fix is to segment finely and then merge neighbouring balls until each source contributes at most three and no two survivors are closer than a threshold — using the same KL test. That leaves nine colours, and every pair is at least 0.13 nats apart, so every morph does something audible.

Each centroid is also smoothed over a sixth of an octave before use. Without that, a narrow partial in the corpus lands in the chord’s harmonic series as a comb, not a formant; smoothing turns the ball into a spectral envelope you can actually play through.

The geodesic is the instrument

Given two centroids cAc_A and cBc_B, the exponential-family geodesic between them is

pm  ∝  cA 1−m⋅cB m,p_m \;\propto\; c_A^{\,1-m} \cdot c_B^{\,m},

which in log-magnitude is a straight line:

log⁡pm=(1−m)log⁡cA+mlog⁡cB.\log p_m = (1-m)\log c_A + m \log c_B .

Straight lines in log-magnitude are exactly what a pad wants: the spectrum never develops a hole, the path never leaves the simplex, and the endpoints are interpolated in the domain the ear uses for loudness. The morph slider is that mm.

The chord supplies the frequencies; the geodesic supplies the envelope. Each note is a harmonic series, and partial kk at frequency fkf_k gets amplitude pm(fk)p_m(f_k), read by log-frequency interpolation. Change the chord and the same envelope lights up different partials — the formant stays put while the notes move underneath it. That separation is why the thing sounds like an instrument rather than a filter sweep.

Sampling the family

A geodesic alone is a dead-smooth average, and averages are boring. So the envelope is perturbed by a smooth random field over log-frequency:

ak=exp⁡ ⁣(log⁡pm(fk)+λ g(fk,t)+βlog⁡fkf0).a_k = \exp\!\left(\log p_m(f_k) + \lambda\, g(f_k, t) + \beta \log \frac{f_k}{f_0}\right).

The field gg is five slow sines in log-frequency, which is a cheap stand-in for a sample from a Gaussian process with a broad covariance across partials — adjacent partials move together, which reads as breathing rather than noise. λ\lambda is the liveliness control. β\beta is a brightness tilt. Neither of them adds a filter; both reshape the same envelope the geometry produced.

This is the generative move promised by the exponential-family reading: the ball is a model, so you can draw new spectra from it. Liveliness is how far from the mean you are willing to draw.

Why it sounds clean

Additive synthesis with continuous oscillator phases has no overlap, no STFT and no resampling. The only moving parameters are per-partial gains and frequencies, both smoothed with short time constants, so there is nothing to click and no phasiness to smear. Ninety-six sine oscillators is enough to cover 110 Hz to about 8 kHz across four notes, and the limiter is there because a chord of 24 partials can stack up.

The cost is CPU: ninety-six oscillators plus ninety-six gain nodes is heavier than the granulator’s handful of buffers. If it becomes a problem the next step is an AudioWorklet — the envelope update is a 512-point lookup, which a worklet could do per sample instead of per 33 ms.

What to listen for

Move Morph slowly. The path between a dark bowed centroid and a breathy one passes through timbres that are neither. Nothing clicks, because there is nothing to click.

Turn Liveliness up. The envelope starts to wander. Above about 0.6 the partials stop tracking each other and it turns glassy; below 0.15 it is a static organ tone.

Drift on, hands off. The morph coordinate sweeps on a 26-second cycle and the chord sits still underneath. It is the closest this thing comes to playing itself.

The same geometry, voiced

Swap the corpus and the same machine becomes a voice. A vowel is a spectral envelope: a glottal source shaped by three or four formant resonances, and every vowel is a point in that envelope space. Five vowels make a palette, and the e-geodesic morphs between them exactly as it morphed between the pad’s colours.

A ah /ɑ/ @ A2B ee /i/ @ A3journey 30%
One journey moves the vowel and the pitch together.

Formant shift changes the apparent vocal-tract length: down for a larger voice, up for a smaller one.

This one sings. There is a single monophonic voice of 56 partials, and one journey control moves through vowel space and pitch space at once: the envelope slides along the geodesic while the pitch glides between two notes. Because each partial reads the envelope at its own frequency, the formants stay put as the pitch travels — the same envelope lights up a different set of partials. That is the difference between a voice and a filter sweep.

Three details do the vocal work. Vibrato frequency-modulates the whole harmonic series together, which is what a larynx does. A slow, tiny irregularity in the fundamental keeps the harmonics from locking into a machine. And the breath layer is noise through a band that follows the envelope’s spectral centroid, so the air sits where the formants are.

Formant shift has no analogue in the pad: it slides the entire envelope in log-frequency, which changes the apparent vocal-tract length. Pull it down and the voice grows; push it up and it shrinks toward something smaller than a person.

Where this goes next

The obvious upgrade is honesty about the corpus: these sources are parametric, not recorded. Feeding real audio in means an FFT in the browser and a proper partial tracker, and then the palette becomes your sounds rather than my four sketches.

After that, the interesting direction is sampling with a real covariance on log-magnitudes — which is the multivariate-Gaussian question from the last piece — and then projection cross-synthesis: play a voice, project every frame onto a target ball, and let the geometry decide how much of the voice survives.


How this page works: the instrument is a React island embedded with client:visible. The palette is built once from a deterministic spectral corpus, so it is identical on every load.