live
Oscilla
A 3D Lissajous figure drawn like an analog oscilloscope, and you can hear it.
Three bodies swing back and forth, one along each axis. A fourth point takes its x from the first, its y from the second and its z from the third, and traces a Lissajous curve through the box they span. Whole-number frequency ratios close the figure; change one ratio and the shape changes with it.
It glows like phosphor on a CRT, and that is the part worth the work. Brightness is the
real time the beam spent on each pixel, decayed exponentially by age, so a fast pass is
faint and a slow turn burns bright. Drawn literally that would cost more every lap.
Because the motion is periodic, every older lap folds into one closed-form factor,
1 / (1 - exp(-period / decay)), so the glow costs a single period of drawing no matter
how long it has been running.
The sound comes from the same clock as the picture. Each body clicks as it crosses the centre of its rail, generated in an AudioWorklet and placed between samples rather than snapped to the sample grid. Past roughly twenty clicks a second they stop being clicks and fuse into a tone, so the figure and its pitch are the same three numbers heard two ways. Retuning recomputes the phase at the current instant, which is why the figure morphs instead of jumping. It has no runtime dependencies.