Audio-Reactive
Real-time audio-reactive visuals descend from oscilloscope art (Ben Laposky, 1950s) and analog video synthesis; software audio-reactivity became widespread through 1990s demoscene and VJ tools and, in creative coding, FFT-driven sketches (Processing / openFrameworks, 2000s). No single attributable first.
community / folk Name — A descriptive category label, not a coined or eponymous name; no single coiner of the term is attested.
In one line Visuals driven by the spectrum and dynamics of an audio signal (via FFT). Often seen in browser/Tone.js works where colour, motion and form respond to sound in real time.
The code
The actual sketch behind the demo above — sandboxed and reproducible. This is the whole thing.
audio-reactive/index.html
const SEED = Math.floor(Math.random()*1e9);
// Audio-reactive visualiser driven by a SYNTHETIC spectrum (no mic needed):
// a bank of sine oscillators stands in for an FFT, animating a radial
// frequency-bar ring + reactive centre pulse.
let bands, S, hueBase;
function setup() {
randomSeed(SEED);
S = Math.min(windowWidth, windowHeight);
createCanvas(S, S);
colorMode(HSB, 360, 100, 100);
hueBase = random(360);
// each "band" has its own frequency + phase, like a spectrum bin
bands = [];
const N = 64;
for (let i = 0; i < N; i++) {
bands.push({ f: 0.4 + i*0.03 + random(0.2), ph: random(TWO_PI), w: 1 - i/N });
}
}
function draw() {
background(230, 60, 6, 0.35);
const t = frameCount * 0.05;
translate(S/2, S/2);
const N = bands.length;
let bass = 0;
// synthetic spectrum amplitudes
const amp = bands.map((b, i) => {
const a = (0.5 + 0.5*Math.sin(t*b.f + b.ph)) * b.w;
const env = 0.4 + 0.6*Math.sin(t*0.3 + i*0.1)**2;
const v = a * env;
if (i < 6) bass += v;
return v;
});
bass /= 6;
// radial bars
noStroke();
for (let i = 0; i < N; i++) {
const ang = (i / N) * TWO_PI - HALF_PI;
const r0 = S*0.14, len = amp[i] * S*0.32;
const x0 = Math.cos(ang)*r0, y0 = Math.sin(ang)*r0;
const x1 = Math.cos(ang)*(r0+len), y1 = Math.sin(ang)*(r0+len);
stroke((hueBase + i*3 + t*20) % 360, 80, 95);
strokeWeight(S * 0.008);
line(x0, y0, x1, y1);
// mirror
const ang2 = -ang - PI;
line(Math.cos(ang2)*r0, Math.sin(ang2)*r0, Math.cos(ang2)*(r0+len), Math.sin(ang2)*(r0+len));
}
// bass-reactive centre
noStroke();
fill((hueBase + 40) % 360, 70, 95);
circle(0, 0, S*0.12 + bass*S*0.1);
}How it works
Turn sound into a few control signals, then map them to visual parameters: 1. Analyse: run an FFT on the incoming audio (mic, file, or synthesised) to get a frequency spectrum each frame; also derive amplitude/RMS and band energies (bass / mid / treble), often with onset/beat detection. 2. Smooth: low-pass or envelope-follow the values so visuals don't jitter. 3. Map: bind those signals to parameters — scale to bass, hue to a spectral centroid, particle emission to onsets, displacement to the spectrum array. For deterministic generative pieces the "audio" can itself be synthesised from the token's seed (e.g. Tone.js), so the same output is reproducible while still looking sound-driven.
Parameters
fftSize: number — FFT window size; the frequency-bin resolution of the analysis.smoothing: number — Temporal smoothing applied to the spectrum (0–1).bands: number — Number of frequency bands the spectrum is grouped into.sensitivity: number — Gain applied when mapping amplitude to visual parameters.
Lineage
Frequently combined with
- Fragment Shader (GLSL) · 8 works
- HSL / Hue Cycle · 6 works
- Bezier / Catmull-Rom Splines · 5 works
- Raymarching with SDFs · 4 works
- Particle System · 4 works
- Perlin / Simplex Noise · 3 works
- 3D Mesh / Geometry · 2 works
- Marching Squares / Contours · 2 works
- Physics Simulation · 2 works
- Glitch / Datamosh · 2 works
- Instanced Geometry · 1 work
- Wave Function Collapse · 1 work
Works using this algorithm (32)
Last updated 2026-07-16