Wave Doctor moonshot · track C · living sound

Melting Fluid

Your sound flows down a river of living water. Drop a rock in it and the rock sheds a vortex street that pulses, bends and pans whatever passes the gold ear. Stir and it keeps swirling. Heat melts it, wind shears it, whirlpools and swimmers keep it alive. A still stream gives back your sound to −129 dB.

Loop
starting…
river A (the dye is the sound) river B (second sound, cross-stirred) clockwise swirl: accent, pans left counter-clockwise: accent, pans right soft highlights: sparkle glints heat: sustain + sag + smear ice: the river stopped

Amount

100
wet: what the river plays.
0 = your sound, untouched
Bypass (A/B) Loudness matched

Perform flow × energy

← stillraging →

Presets the whole state is one string

Lock seed
Morph to

Selected click an object

Nothing selected. Pick a tool and click the river to drop an object, or click one to select it.

The loop, live audio → GPU river → audio

-round trip, median / p95 (ms)
-GPU frame: sim + draw (ms)
-GPU sim step only (ms)
-audio underruns (Chrome)
-wake pulse: measured / predicted (Hz)
-bins moved · glints/s · held
-water energy / budget · max speed
-output peak (what reaches the speakers)
Receipts, mechanism and what broke · measured by harness.mjs on this same WASM and in Chrome

The mechanism

water u_t + (u·∇)u = −∇p + ν∇²u + ε(N×ω) + buoyancy + wind + stir + objects ∇·u = q(drains) inflow U on the left, open outflow right, free-slip banks MacCormack advection, red-black SOR pressure, obstacles carry their own velocity dye material coordinates (age, src_row, lane), on a conveyor V₀ = 4 cells/frame: dye velocity = (V₀ + grip·(u − U), grip·v) still stream ⇒ age = x/V₀ ear at the read-head column, for every STFT bin k: crystal Y[k] = X(n − age, k₀) · eiθ the stored bin itself, read between frames and bins θ += slope·Δage + 2π·shift/overlap moves only when the map moves; a hit resets it one θ for left and right; a partial's lobe moves as one piece; θ → 0 when the map rests classic Y[k] = |X(n − age, k₀)| eiφ magnitude kept, phase rebuilt (locked vocoder) pitch steps snap k/k₀, time steps snap age Y = (1−c) YA + c YB c = lane heat ⇒ held partials gain = 1 + pulse·|ω|/ω₀ pan = pan·ω/ω₀ glints where |∂ω/∂row| is high still stream ⇒ Y = X(n − D₀, k): exact copy, null −132 dB

The water never carries the sound. It carries a map: every cell of dye remembers where it came from as a time, a frequency and which river. The audio side keeps 24 seconds of spectra and looks every output bin up through that map. A rock in the current sheds vortices at the Strouhal rate f = St·U/D; each vortex that passes the ear bends the bands it covers (pitch and time), accents them (Pulse), and pans them by its spin (Pan). That is why a cylinder is a metronome.

What broke, what survived

  • MEASUREDVersion 1's pool died the moment you let go. Drag toward rest was 0.0185 per frame, so a stir's kinetic energy halved in 0.2 s: "zero mix after I finish drawing". What survived: drag is now toward the stream, not toward zero, defaults near 0, and advection is MacCormack (second order).
  • MEASUREDA river where the water itself is the time axis broke. The time axis needs the dye to move 4 cells per audio frame (345 cells/s), far too fast for a vortex street to be seen or heard as rhythm. What survived: two speeds. The dye rides a fast conveyor (time), the water flows at a slow current U (the physics), and the dye feels only the water's deviation from the stream. A uniform stream is therefore the exact identity at any current:
  • MEASUREDStrouhal is not 0.2 on a 256×128 grid. So the tempo lock does not trust a constant: it measures the wake live and steers the current until the measured shedding matches the beat.
  • MEASUREDDecorative effects were removed. v1's vorticity sheen did nothing to the sound. Now every layer is a control signal the DSP reads at the ear: swirl brightness = Pulse gain, swirl hue = Pan, soft highlights = Sparkle glints, red haze = heat (sustain, sag, smear), jade = river B. Turn a sound control to 0 and its picture fades with it.
  • DERIVEDUniform gravity does nothing to incompressible water. Pressure cancels it exactly. Gravity only acts through density differences, so it is buoyancy: in hot water loud dye sinks (pitch sags) and quiet water rises. Wind likewise only matters as shear, so it blows on the surface (the treble) and rolls up Kelvin-Helmholtz billows.
  • MEASUREDRapids blew back from the right edge and ran away. Three causes stacked: a 60 Hz display made each step 1.44 frames long (the stability test blows up there, the 120 Hz one does not), vorticity confinement kept pumping energy into fast water, and nothing ever took energy out. What survived: long frames are substepped, the water's speed is capped at 3 cells/frame above the stream, confinement fades as it nears that cap, a sponge soaks up momentum in the last 24 columns (the Far wall slider, absorb ↔ reflect), and a global energy budget measured on the GPU every frame gently scales the water back.
  • MEASUREDThe FFT size cannot be one number. Small FFTs keep hits crisp and smear pitch; big ones make pitch glassy and slur the hits. So it is a control (256 to 8192, overlap 2x to 8x, four windows), and every combination still nulls because synthesis uses the least-squares dual of the analysis window. The river keeps a fixed 512-sample clock whatever the hop, so its physics and picture never change; a switch primes a second engine for one latency and crossfades in 46 ms. The new engine starts with no history: pulls into the past read silence until it has listened that long.
  • MEASUREDThe river sounded like its vocoder the moment anything moved. A bin displaced by a hair was rebuilt from magnitude alone, each channel on its own, at 4x overlap where a bin's phase advance is only known modulo one turn. What survived is Crystal (Quality → Engine, now the default): the stored bin is read with its phase, between frames along its measured phase slope and between bins with a short sinc, and turned by one angle θ that moves only when the map moves. Identity plus correction: what you lose scales with how far the sound was moved. Classic stays selectable, and an old preset string that names Quality settings still loads it.
  • MEASUREDThings that did not help.
  • MEASUREDA faster flow does not make it cleaner.
  • MEASUREDIt was not quite a river. What survived: the sound now always flows downstream when the far wall is open (it can slow to an eighth of the conveyor, never stall or run back, so no eddy can trap it and bring it round again); the grip fades to nothing at the inflow and at the outflow; the outflow is one way; whirlpools are river-sized up to the default Agent strength; agents keep clear of both ends. Close the far wall and it is a bathtub again, with all of that switched off.
  • DERIVEDCrystal's prices. 8x overlap is twice the hops and half the history (12 s instead of 24: a freeze holds 12 s). The map is read one display frame late so it can be interpolated instead of dead-reckoned (about 17 ms more between your hand and the sound). A hit landing on a held note resets that note's angle: the note keeps its pitch, but its phase steps under the hit. Noise stretched hard still turns grainy, a little less than before. At FFT 8192 the still-stream null is float-rounding limited at about −105 dB.
  • DERIVEDLatency is the price of the river. The still read-head age is XR/V₀ frames plus the 2048 window: . Drag the ear left and it shortens; the null holds wherever it lands (it snaps to whole frames).