# Saved visualizer presets Live URL remains http://127.0.0.1:4178. No service restart or URL changes when presets rotate. No text, photographs or visible controls on the output. ## Library 1. Molten Diffraction — original liquid prism 2. Interference — original folded wavefronts 3. Metallic Ribbons — original fine metallic textures 4. Braided Glass — glass filaments and light trails 5. Pressure Chamber — buckling chrome, red/cyan fractures, shards 6. Monochrome Chrome — graphite and silver pressure treatment 7. Faultline — harder polygonal wavefronts 8. Ion Wire — fine electric blue/violet filaments 9. Oscilloscope Tunnel — nested rounded-square envelope traces 10. Orbital Dust — luminous bodies on tilted elliptical tracks 11. Liquid Lattice — warped interfering wire mesh 12. Eclipse Corona — dark disk, amber limb and fine shearing coronal arcs 2026-11-18: all twelve built and tested in staging at http://127.0.0.1:4180. Live 4178 remains unchanged pending permission to refresh OBS. New shader sources: presets/new-modes.cjs. Screenshots: next/{oscilloscope-tunnel,orbital-dust,liquid-lattice,eclipse-corona}.png. Preserves all five previously shipped non-photographic looks plus three variants. Original source HTML snapshots live in sources/. Manifest is manifest.json. Sources are archives, not current audio integrations; generated main page uses the working OBS RMS/peak bridge for every preset. Texture data is amplitude history, not measured spectrum. ## Timer and control Default: starts on Pressure Chamber, cycles all twelve in order (expanded staging build) every60 seconds,1.8-second frozen-frame crossfade. No dual-scene rendering during transitions, no compile/reload at preset changes. Shader programs compile at startup and are reused. Transition has its own frozen texture; feedback is cleared per switch to avoid contamination. Settings and last selection saved in that browser's localStorage. A resize ends any in-progress transition cleanly. In OBS, right-click Browser source → Interact, then use: - → / ← next / previous (M also next) - 1–9 choose the first nine; 0 chooses Orbital Dust, - Liquid Lattice, = Eclipse Corona (expanded staging build) - Space or P pause/resume timer - [ / ] shorter/longer interval by15 seconds (clamped10–600sec) - S toggle shuffle (never immediately repeats current preset) - F fullscreen in a normal browser No on-screen menus will appear. Keyboard events need focus in Interact. Settings are per-browser: Chrome and OBS do not share localStorage. Manual selection resets timer. Pausing leaves current animation/audio running, only preset rotation stops. Console API prismPresets.list/select/next/pause/setInterval/shuffle/settings available; prismHealth reports preset, presetCount, rotation and intervalSeconds. ## Build and test From project root: `node build-presets.cjs`. This builds next/index.html and presets/manifest.json; DOES NOT touch the live index. Sources/pressure-chamber.html supplies the rendering engine; builder inserts registry, timer, crossfade and controls. To deploy, back up live index and atomically copy next/index.html to index.html, then explicitly refresh OBS Browser source only with owner permission. Live page has no automatic HTML reload. `NODE_PATH=/Users/cameron/.npm/_npx/420ff84f11983ee5/node_modules node test-presets.cjs` tests staging4180 with isolated browser storage. Expanded staging test passed all12 presets GL error0, visible output with controlled audio and black output at zero audio for all four new modes, new keyboard shortcuts and last-to-first rotation, automatic deadline rotation, keyboard previous/pause, interval setting and reload persistence, no body text and no JS errors. GPU timing remains unvalidated at60fps; no performance claim. Main backup before this rollout: rollback-20261117-presets/index.html. Deployment2026-11-17~07:25Z: HTML changed only, authenticated OBS PressInputPropertiesButton refreshnocache once; no service/OBS restart. Stream remained active, no reconnect, zero skipped frames,1h7m duration. Audio bridge remains intact. Native helper remains unused. ## Frequency analysis (2026-11-18, staging) Every preset is now driven by a measured spectrum, not just loudness. `prism-audio` (AudioCapture.swift) captures system audio via ScreenCaptureKit, or one app with `PRISM_AUDIO_APP=`. It runs a 2048-point FFT at 60 Hz and sends 64 log bands (30 Hz–16 kHz, fixed dB scale, +3 dB/oct tilt so pink noise is flat) plus bass/mid/high/flux/kick. next/server.cjs spawns it and falls back to the OBS meter (input name `OBS_AUDIO_INPUT`) if it is missing or silent for 500 ms; in fallback every band follows loudness (flat spectrum). Shaders get `band(x)`, `bandAt(x,age)` (≈2 s spectrogram), `bassAt(age)`, `ringBand(angle)` (bass at the bottom, treble at the top) and `bass/mid/high/flux` uniforms. Kick onsets drive `beat`. Per-preset mappings are in build-presets.cjs (prisms, glass, pressure families) and presets/new-modes.cjs. Build the helper: `swiftc AudioCapture.swift -o next/prism-audio -O -framework ScreenCaptureKit -framework AVFoundation -framework CoreMedia -framework Accelerate`. Offline check: `python3 tools/tones.py pink | next/prism-audio --stdin` (also silence, kick, or a frequency in Hz). Needs macOS Screen & System Audio Recording permission for the process that launches node. Tests now also require every preset to render clearly differently for bass-heavy vs treble-heavy spectra at equal loudness.