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.

Audio-Reactive · Open in new tab ↗ · Motion begins only when you press Run.

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);
}

Open the demo source ↗

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

Lineage

Related
Fragment Shader (GLSL), HSL / Hue Cycle

Frequently combined with

Works using this algorithm (32)

3 Minute Meditations
thetechnocratic
80s Pop Variety Pack - for experts only 🕹
daniel-catt
AlgoBeats
han-x-nicolas-daniel
AlgoRhythms
han-x-nicolas-daniel
Beatboxes
zeblocks
♫ ByteBeats
dadabots-x-kai
celestial cyclones
hideo
Crypt
the-cyclops-group
CryptoGodKing
steve-pikelny
Diggly Collects All
dca
(Dis)connected
tibout-shaik
Divergence
loren-bednar
Dopamine Machines
steve-pikelny
Dream Engine
remo-x-dcsan
Fantasía
alejandro-campos
Flux
owen-moore
Good Vibrations
aluan-wang
l.o
night-sea
Magnetosphere
robert-hodgin
Memories of Digital Data
kazuhiro-tanimoto
montreal friend scale
amon-tobin
Polychrome Music
rafael-rozendaal-danny-wolfers-legowelt
PRELUDES
trevor-paglen
Quantum Collapses
insig-t
Race Condition
jonas-lund
Rituals - Venice
aaron-penne-x-boreta
send/receive
snowfro
Synesthesia
pls-ty
Talking Blocks
remo-x-dcsan
The Reactive Square
john-maeda
Tide Predictor
lovid
Unigrids
zeblocks

Last updated 2026-07-16