Experiment #05 · October 2026

Resonance

A field of light that listens. Start the demo, pick a track or open the microphone: bass swells it, mids make it flow, highs make it sparkle, and every beat sends out a wave.

Choose a source: the demo, a track or the microphone.

Turn the shape with your mouse or finger, or drop an audio file onto the stage. The sound is analysed in your browser: nothing is recorded or sent.

It also lives in an app: Resonance, for iPhone, iPad and Android.

The idea

Every frame, the sound is split into frequencies, from low to high. Each shape lays them out in space its own way: the sphere puts the bass at the equator and the highs at the poles, the ring unrolls the spectrum as a mirror, bass at the bottom and highs at the top, and the field spreads it from the centre to the edge, like a landscape. The strings form a harp: one string per band, bass on the left and highs on the right, each vibrating with its volume and plucked on every attack.

Cymatics recreates Ernst Chladni’s experiment (1787): sand on a vibrating plate leaves the parts that move and gathers on the still lines, which draw a figure of their own for each note. Here, the track’s dominant pitch picks the figure; on the beats, the grains jump, then settle on the new one. The kaleidoscope folds the image into 4 to 12 mirrored parts, and changes the count as the track goes on.

The constellation links 48 stars, ranked from bass at the bottom to highs at the top: each one swells with its band, and light runs along the links, brighter as the band grows louder. The moiré stacks two sets of fine rings that the bass pulls apart: where they overlap, fringes appear that are drawn nowhere. The helix braids 36 ovals around an axis, in two families turning in opposite directions; each oval follows its own frequency band, and every beat sends a twist along the nave.

Three bands drive the motion. Bass swells the shape and stretches the trails outwards, mids make it flow in a swirling current, highs light up sparks. With every kick drum, a shock wave runs through the particles. In Auto mode, the shape changes every 32 beats, or after 26 seconds.

The demo track isn’t a recording: the browser plays it live, note by note, with oscillators and filtered noise. It is an original piece in the spirit of French touch: 127 beats per minute in D minor, chopped chords run through a filter that opens and closes, a funky bassline, pads that “pump” with the kick drum, then a synthetic voice when it all comes back in.

How it works

The analysis runs on the Web Audio API: a Fourier transform over 2,048 samples, grouped into 256 logarithmic bands from 32 Hz to 14 kHz, the way the ear hears. Each band is measured against its own recent peak, so the image reacts as much to a quiet microphone as to a loud track. Beats are picked out by spectral flux, the sudden rise of energy in the low end.

The 160,000 particles (70,000 on mobile) aren’t simulated one by one: the graphics card recomputes their positions every frame from a fixed seed, the spectrum sent as a texture and 3D simplex noise. The shapes are computed together and blended into one another, which is what makes the transformations possible. For cymatics, each grain starts from a fixed spot on the plate and reaches the nearest still line in six steps of Newton’s method, recomputed every frame.

The trails come from a feedback loop: each frame takes the previous one, slightly enlarged, rotated and dimmed, then adds the particles’ light on top, in floating-point colour. A final pass compresses the highlights, shifts red and blue apart on the beats, then adds vignette and grain.

Rendering
WebGL 2, no library
Shapes
Sphere, ring, field, cymatics, strings, constellation, moiré, helix
Particles
160,000 (70,000 on mobile)
Analysis
256 bands, from 32 Hz to 14 kHz
Sources
Live demo, file, microphone

Resonance, the app

The visualiser also lives in your pocket: Resonance is out on iPhone, iPad and Android. It goes further than this experiment: 30 audio-reactive modes and 100 MilkDrop presets, effects you can link to the bass, the kick or the tempo, an autopilot that changes the visuals with the track, a TV mode to cast the picture full screen, video recording with sound and MIDI controller support. It listens to your audio files or the microphone.

iPhone, iPad and Android · free with 3 modes, everything else unlocked by a single purchase, no subscription and no ads.

← All experiments