Audio Visualizers
Subharmonic Drone
Subharmonic Drone control in the Forever system.
css+canvasheavy complexitymoderate motionclickaccessible
Open on the canvas to copy the code → Free account · 3 copies a day · membership goes unlimited
1
When to use it
Sound-design or audio-tool pages that need a single engage button with a live waveform preview.
When not to
Pages where an unrequested low tone would be a problem; engaging starts two oscillators at 55 Hz and 82.5 Hz, so keep it behind a deliberate click.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Change the drone pitches by editing osc1 (55 Hz) and osc2 (82.5 Hz) in initAudio(), the wave amplitude in draw() (amp 32 engaged, 10 idle) and the accent through --fc04-accent. Keep the audio context created in the click handler and the Engage Drone / Silence toggle text.
Safe to edit
- osc1 and osc2 frequencies (55 and 82.5 in initAudio)
- scope wave amplitude and speed (amp, phase in draw)
- accent colour (--fc04-accent)
- button labels (Engage Drone / Silence)
Keep intact
- Idle attract stops on first control. Explicit engaged drone remains live until user turns it off or frame tears down.
- demo-v1 preview lifecycle: initialize demoEnabled from window.__foreverPreview and stop attract work on the window forever:interactive event; retain manual feedback, settling, cleanup and explicit sessions
Known limitations
- Audio output depends on browser audio policy and sandbox capability.
- Microphone acquisition is permission- and sandbox-dependent; mocked tests verify track/context teardown, not hardware access.
- State remains local to each mounted instance; format/theme remount preserves takeover, not component values.
More Audio Visualizers components
- Spectrum Bars56 mirrored chartreuse-gold frequency bars animate with gravity peak-hold caps on a dark canvas; a "live" button switches from synth simulation to real…
- Radial Spectrum96 verdigris radial bars radiate from a bass-driven pulsing core around a slowly rotating ring; driven by a synthetic signal or live mic input on click.
- OscilloscopeVerdigris phosphor-glow waveform sweeps across a faint scope grid with ghosting persistence trail; click to upgrade to live microphone input.
- VU MeterCream analog VU meter with a spring-damped needle, dB scale, red peak zone, and peak-hold pip. Synth signal by default; click switches to live mic.
- Lissajous ScopeVerdigris Lissajous figure drifts and rotates on a dark scope grid with phosphor trail decay and a glowing beam head; a Live button upgrades to real mic…
- Waveform RiverMirrored verdigris waveform ribbon scrolls right-to-left on dark; glowing dot marks the live head. Click LIVE to switch from synthetic signal to microphone.