26 KiB
Visualizer Integration Plan
Date: 2026-04-08
Scope: Integrate Muon Music Visualizer (spiral particle system), WebGL Fluid Simulation, and Meyda-based audio analysis into LyricsLivePreview and the SingUI karaoke preview.
Executive summary
2026-04-08 update — manifest persistence for dynamic palettes
Dynamic color palettes derived from album art/thumbnail are now persisted in .sek manifest.json under:
manifest.metadata.dynamic_palette
Stored fields:
source(embedded_cover_artorthumbnail_url)seed_colorbackground_colortext_colorhighlight_colorword_highlight_colorspeaker_palette(array)
This makes SEK playback deterministic across clients (the same package now carries the same dynamic theme seed/palette without requiring re-extraction at runtime).
Color source of truth (new requirement)
Visualizer colors must be driven by the SEK manifest palette, not ad-hoc runtime extraction:
- Primary source:
manifest.metadata.dynamic_palette - Fallbacks (in order):
- generated from current
coverArtUrl/thumbnailUrlat runtime (only if manifest palette missing) - static neutral defaults
- generated from current
This applies to both Muon and Fluid modes. Audio features should modulate intensity/motion only; the base hue family comes from the manifest palette.
Three external projects are being integrated as optional visual backdrops:
| Visualizer | Source | Rendering | Audio-driven |
|---|---|---|---|
| Muon | najafmohammed/muon-music-visualizer | Three.js particles | AnalyserNode FFT → shader uniforms |
| Fluid | PavelDoGreat/WebGL-Fluid-Simulation (classic JS)¹ | WebGL fluid sim | Beat → splat bursts, RMS → continuous force |
| (analysis layer) | najafmohammed/Muon-Audio-Analysis → Meyda.js | — | Provides extracted features to both renderers |
¹ The user linked
PavelDoGreat/Fluid-Simulation, which is a Zig-language rewrite targeting WASM — not yet embeddable as a JS library. This plan uses the originalPavelDoGreat/WebGL-Fluid-SimulationJS version (MIT, widely vendored), which exposes asplat()/configAPI suitable for React integration. If the Zig/WASM build matures, it can be swapped in at the same interface boundary.
How "Controls" maps to drum intensity
In the Muon visualizer, the dat.gui "Controls" folder holds spacing, aperture, and radiusMultiplier — the parameters that shape the particle spiral geometry. These are normally static knobs. The plan drives them in real time from a per-frame drum RMS value:
- Drum stem present: tap the
drumsGainNode→AnalyserNode→ Meyda extracts RMS + bass band energy each frame. - No drum stem (single-track mode): fall back to the primary audio element → bass frequency band from a 512-point FFT analyser.
The resulting drumIntensity (0–1 normalised) is mapped to radiusMultiplier, aperture, and secondarily spacing, so the spiral physically pulses with the kick/snare rhythm. Color remains anchored to manifest.metadata.dynamic_palette, with treble only adding small in-family hue drift.
Prerequisite clarifications
Do not use the Zig repo directly
github.com/PavelDoGreat/Fluid-Simulation is a multi-platform Zig rewrite. Its JS/WASM build is not yet a drop-in module. Use the classic repository instead:
github.com/PavelDoGreat/WebGL-Fluid-Simulation
The classic repo is a single index.html + inline <script> file. The integration approach is to vendor the core fluid logic as a self-contained module (see Phase 3).
Muon-Audio-Analysis is not a library
github.com/najafmohammed/Muon-Audio-Analysis is a standalone node-graph pipeline editor app (React Flow + Meyda). It does not export a reusable module. What it demonstrates is the correct way to wire Meyda.js to a Web Audio AudioNode. This plan adopts Meyda.js directly as the feature extraction engine.
Architecture overview
LyricsLivePreview
├── (existing) AudioContext + MediaElementAudioSourceNode[stem] → GainNode[stem] → destination
│
├── NEW: useAudioFeatures hook
│ ├── taps GainNode['drums'] if present, else GainNode[primary] or audioRef
│ ├── inserts AnalyserNode (passthrough — does not break gain chain)
│ ├── runs Meyda.js feature extraction each RAF frame
│ └── writes { bass, treble, rms, beatDetected, freqData } into a shared ref (no React state)
│
├── NEW: VisualizerBackdrop component (conditional)
│ ├── mode='muon' → MuonVisualizerCanvas
│ ├── mode='fluid' → FluidVisualizerCanvas
│ └── receives featuresRef + paletteRef (manifest-derived, stable)
│
└── (existing) lyrics canvas / scroll view rendered on top (z-index)
The featuresRef pattern is critical: audio feature data must not flow through React state because it changes 60× per second. Components read from it imperatively inside their own RAF loops.
New files
frontend/src/
├── hooks/
│ └── useAudioFeatures.ts # Meyda tap + AnalyserNode passthrough
│ └── useVisualizerPalette.ts # resolve manifest.metadata.dynamic_palette (+ fallbacks)
├── components/visualizers/
│ ├── VisualizerBackdrop.tsx # switcher: muon | fluid | null
│ ├── MuonVisualizerCanvas.tsx # Three.js particle spiral (ported from muon-music-visualizer)
│ ├── FluidVisualizerCanvas.tsx # WebGL fluid sim wrapper
│ └── muon/ # ported CoreControls logic
│ ├── audioProcessing.ts # exponentialBassScaler / trebleScaler
│ ├── particleSystem.ts # spiral geometry + shader setup
│ ├── waveController.ts # sineWavePropagation
│ └── shaders/
│ ├── particle.vert.glsl
│ └── particle.frag.glsl
└── types.ts # add 'muon' | 'fluid' to LyricsVisualStyle
Phase 1 — Audio feature extraction (useAudioFeatures)
File: frontend/src/hooks/useAudioFeatures.ts
Inputs (passed in as refs, not props, to avoid re-renders)
audioCtxRef: React.RefObject<AudioContext | null>stemGainRefs: React.RefObject<Record<string, GainNode>>singleAudioRef: React.RefObject<HTMLAudioElement | null>(fallback)isPlayingRef: React.RefObject<boolean>
Behaviour
- On mount (or when stems change), locate the preferred tap node:
- If
stemGainRefs.current['drums']exists → use it. - Else if any gain node exists → use the first one.
- Else → create
MediaElementAudioSourceNodefromsingleAudioRef(same pattern as multi-stem).
- If
- Insert a passthrough
AnalyserNodebetween the tap source and its downstream connection:The AnalyserNode is connected to destination with gain 0 (so it doesn't double-output audio); it only reads data.sourceNode → [existing GainNode] → [NEW AnalyserNode (passthrough)] → destination
Actually simpler: connectgainNode → analyserNode → destinationand disconnectgainNode → destination.
This is transparent to existing playback. - Additionally initialise Meyda with the AudioContext and the analyserNode's source:
import Meyda from 'meyda' const meydaAnalyser = Meyda.createMeydaAnalyzer({ audioContext: ctx, source: tapNode, // AudioNode feeding the analyser bufferSize: 512, featureExtractors: ['rms', 'spectralCentroid', 'energy', 'loudness'], callback: (features) => { featuresRef.current = { ...featuresRef.current, ...features } }, }) - Maintain a
featuresRefupdated every Meyda callback + a raw FFT read per RAF frame:// in RAF loop: analyserNode.getByteFrequencyData(byteFreqArray) const bass = avg(byteFreqArray.slice(0, 10)) / 255 // 0–1 const treble = avg(byteFreqArray.slice(200, 256)) / 255 featuresRef.current.bass = bass featuresRef.current.treble = treble featuresRef.current.drumIntensity = computeExpScaler(bass, treble) - Beat detection: simple threshold on
energydelta (same approach as Muon'sdeltaResponseLimit). - Return
featuresRef(stable ref identity — consumers read it directly, never subscribe to it). - Cleanup: disconnect analyserNode, stop Meyda, on unmount.
Dependencies to add
npm install meyda
npm install --save-dev @types/meyda
Phase 2 — Muon particle visualizer (MuonVisualizerCanvas)
Approach
The muon-music-visualizer source is vanilla JS with Three.js. It is not published to npm. The strategy is to port the CoreControls rendering logic into TypeScript modules (under src/components/visualizers/muon/) rather than iframe-embedding or git-submoduling the original.
This is feasible because the rendering core is small (~8 files, ~1500 lines total).
What to port
| Original file | Target | Notes |
|---|---|---|
CoreControls/audio.js |
muon/audioProcessing.ts |
exponentialBassScaler, exponentialTrebleScaler — replace with data from featuresRef |
CoreControls/wave.js |
muon/waveController.ts |
sineWavePropagation, wavePresetController |
CoreControls/params.js |
muon/audioProcessing.ts |
visualizationPresets array (16 presets) |
CoreControls/postProcessing.js |
MuonVisualizerCanvas.tsx |
UnrealBloomPass, AfterimagePass — Three.js postprocessing |
Shaders/*.glsl |
muon/shaders/*.glsl |
Copy verbatim; import via ?raw in Vite |
Utils/ParticleEmitter/index.js |
muon/particleSystem.ts |
600-particle curl noise emitter |
Utils/operations.js |
muon/audioProcessing.ts |
map(), modulate(), clamp(), avg() — trivial utility functions |
GSAP/index.js |
Omit | Camera intro animations — not needed for backdrop mode |
DomControls/ |
Omit | DOM UI controls — replaced by React UI |
GUI/index.js (dat.gui) |
Omit | Replaced by the featuresRef audio drive |
WaveSurfer/ |
Omit | Replaced by LyricsLivePreview's own playback |
MuonVisualizerCanvas.tsx structure
interface MuonVisualizerProps {
featuresRef: React.RefObject<AudioFeatures>
paletteRef: React.RefObject<VisualizerPalette>
width: number
height: number
// optional initial param overrides
maxPoints?: number // 512–5400, default 2000
idleMultiplier?: number // animation speed when paused, default 0.3
}
export default function MuonVisualizerCanvas({ featuresRef, width, height, ...params }: MuonVisualizerProps) {
const canvasRef = useRef<HTMLCanvasElement>(null)
useEffect(() => {
// 1. init Three.js renderer on canvasRef.current
// 2. build spiral particle geometry
// 3. init postprocessing (bloom + afterimage)
// 4. start RAF loop:
// - read featuresRef.current each frame (no React state)
// - map drumIntensity → radiusMultiplier, aperture, spacing
// - map treble → small hue drift around manifest palette seed
// - call sineWavePropagation(bass, treble)
// - if beatDetected → trigger wavePresetController()
// - renderer.render(scene, camera)
// 5. cleanup on unmount
}, [])
return <canvas ref={canvasRef} width={width} height={height} />
}
Drum-intensity → Controls mapping
⚠️ Corrections applied — see 2026-04-08_Visualizer_Parameter_Audit.md Corrections A, B.
// Each RAF frame inside the Three.js loop:
const { drumIntensity = 0, treble = 0, beatDetected = false } = featuresRef.current
const palette = paletteRef.current
// "Controls" params driven by drum track:
// Correction B: radiusMultiplier is NOT mapped directly from drumIntensity each frame.
// It advances through RADIUS_PRESETS on each beat and lerps toward the new target.
// Direct per-frame lerp(0.4, 1.8, ...) fought the GSAP preset animation and exceeded
// the preset range (0.6603–0.7536 in the original source).
if (beatDetected) {
presetIdx = (presetIdx + 1) % RADIUS_PRESETS.length
radiusTarget = RADIUS_PRESETS[presetIdx] + drumIntensity * 0.25
}
radiusCurrent += (radiusTarget - radiusCurrent) * 0.07 // lerp toward target each frame
params.aperture = lerp(1.2, 3.5, drumIntensity)
params.spacing = lerp(0.008, 0.02, 1 - drumIntensity) // tighter on loud beats
// Correction A: colorSpectrum is a colour-band count (3–30, step 3), NOT a hue angle.
// Hue drift is controlled separately via hueControl() / seedHue offset.
// Bug 1 fix: when drumIntensity > 0 (audio playing), hue is modulated by drum + treble;
// when silent it falls back to slow time-based drift so the visual never freezes.
const hue = drumIntensity > 0.01
? ((palette.seedHue + drumIntensity * 20 + treble * 15) + 360) % 360 // ±15° max treble drift
: ((palette.seedHue + Math.sin(Date.now() * 0.00018) * 15) + 360) % 360
params.primaryColor = palette.highlightColor
params.secondaryColor = palette.wordHighlightColor
// Beat → preset morph (already handled above via radiusCurrent/radiusTarget)
lerp and easeIn are trivial helpers; no additional deps needed.
Dependencies to add
npm install three @types/three
npm install three/addons # for UnrealBloomPass, AfterimagePass
Three.js is likely already present (check package.json — Muon Analysis references it; confirm for StemEngine frontend).
Phase 3 — Fluid visualizer (FluidVisualizerCanvas)
Important: which repo to use
Use PavelDoGreat/WebGL-Fluid-Simulation (classic JS version), not the Zig rewrite linked by the user.
Options for vendoring (in order of preference):
Option A — npm package webgl-fluid (community wrapper of the classic sim):
npm install webgl-fluid
Exposes fluidSim.splat(x, y, dx, dy, color) and a config object.
Option B — Vendor the script directly: copy WebGL-Fluid-Simulation/script.js into src/components/visualizers/fluid/fluidSim.js, strip the mouse/touch event listeners, expose the internal splat() and config functions.
Option B gives more control and avoids a dependency on an unmaintained npm wrapper.
FluidVisualizerCanvas.tsx structure
interface FluidVisualizerProps {
featuresRef: React.RefObject<AudioFeatures>
paletteRef: React.RefObject<VisualizerPalette>
width: number
height: number
// config overrides
curl?: number // default 30 — swirling turbulence
splatRadius?: number // default 0.25
colorful?: boolean // default true
}
export default function FluidVisualizerCanvas({ featuresRef, width, height, ...config }: FluidVisualizerProps) {
const canvasRef = useRef<HTMLCanvasElement>(null)
useEffect(() => {
// 1. init fluid sim on canvasRef.current
// - disable all mouse/touch handlers
// - set initial config (CURL, SPLAT_RADIUS, etc.)
// 2. start separate RAF loop (or hook into the sim's own loop):
// - read featuresRef.current
// - on beatDetected: burst 3–6 splats at random positions, high force
// - continuously: 1–2 small ambient splats proportional to rms
// - splat colors sampled from manifest-derived paletteRef (not random hue generation)
// - map bass → DENSITY_DISSIPATION (lower = more persistent ink on loud bass)
// - map treble → COLOR_UPDATE_SPEED
// 3. cleanup on unmount (cancel RAF, free GL context)
}, [])
return <canvas ref={canvasRef} width={width} height={height} />
}
Audio → fluid parameter mapping
// Each frame:
const { rms = 0, bass = 0, treble = 0, beatDetected = false } = featuresRef.current
// Ambient splat — continuous low-level motion:
if (Math.random() < rms * 0.4) {
fluidSim.splat(
Math.random(), // x (0–1 normalised)
Math.random(), // y
(Math.random() - 0.5) * bass * 500, // dx — stronger on bass
(Math.random() - 0.5) * bass * 500, // dy
nextPaletteColor(),
)
}
// Beat burst:
if (beatDetected) {
const count = 3 + Math.floor(bass * 5)
for (let i = 0; i < count; i++) {
fluidSim.splat(Math.random(), Math.random(),
(Math.random() - 0.5) * 1200,
(Math.random() - 0.5) * 1200,
nextPaletteColor())
}
}
// Config modulation:
// Correction C: mapping is driven by bass (not rms) so kick hits produce longer trails.
// ⚠️ Direction caveat: if the vendored sim uses density *= uDissipation (retention
// multiplier), LOWER values = faster fading. Verify advection shader before porting.
fluidConfig.DENSITY_DISSIPATION = lerp(0.90, 0.98, 1 - bass) // loud bass → 0.90 → longer trails
fluidConfig.VELOCITY_DISSIPATION = lerp(0.85, 0.99, 1 - rms) // loud rms → more momentum
fluidConfig.COLOR_UPDATE_SPEED = lerp(2, 15, treble)
Phase 4 — VisualizerBackdrop switcher
File: frontend/src/components/visualizers/VisualizerBackdrop.tsx
type VisualizerMode = 'muon' | 'fluid' | null
interface VisualizerBackdropProps {
mode: VisualizerMode
featuresRef: React.RefObject<AudioFeatures>
paletteRef: React.RefObject<VisualizerPalette>
width: number
height: number
}
export default function VisualizerBackdrop({ mode, featuresRef, paletteRef, width, height }: VisualizerBackdropProps) {
if (mode === 'muon') return <MuonVisualizerCanvas featuresRef={featuresRef} paletteRef={paletteRef} width={width} height={height} />
if (mode === 'fluid') return <FluidVisualizerCanvas featuresRef={featuresRef} paletteRef={paletteRef} width={width} height={height} />
return null
}
Phase 5 — LyricsLivePreview integration
5a. Extend LyricsVisualStyle
// types.ts / LyricsLivePreview.tsx line 43:
export type LyricsVisualStyle = 'scroll' | 'fade' | 'karaoke' | 'glow' | 'blur' | 'video' | 'muon' | 'fluid'
Update the style validation guard at line 1392 to include 'muon' and 'fluid'.
5b. Add useAudioFeatures to LyricsLivePreview
Call the hook, passing through the already-available refs:
// inside LyricsLivePreview, near line 1600 where audioCtxRef is defined:
const featuresRef = useAudioFeatures({
audioCtxRef,
stemGainRefs: gainRefs,
singleAudioRef: audioRef,
isPlayingRef: isPlayingRef, // existing ref
})
const paletteRef = useVisualizerPalette({
sekManifestDynamicPalette: sekManifest?.manifest?.metadata?.dynamic_palette,
coverArtUrl,
thumbnailUrl,
})
The hook is a no-op (returns empty featuresRef) when neither visualizer style is active — no performance impact for other styles.
5c. Render the backdrop
In the JSX, before the existing lyrics canvas/div:
// Inside the main container div (currently wraps the canvas/scroll view):
{(visualStyle === 'muon' || visualStyle === 'fluid') && (
<div className="absolute inset-0 overflow-hidden pointer-events-none" style={{ zIndex: 0 }}>
<VisualizerBackdrop
mode={visualStyle === 'muon' ? 'muon' : 'fluid'}
featuresRef={featuresRef}
paletteRef={paletteRef}
width={containerWidth} // use containerRef dimensions
height={containerHeight}
/>
</div>
)}
{/* existing lyrics canvas / scroll div — z-index 1 */}
The lyrics layer must be position: relative; z-index: 1 so it renders above the visualizer.
5d. Style picker UI
Add muon and fluid to the existing style toggle buttons (near the Palette icon in the toolbar, around line 2938 area):
{ label: 'Muon', value: 'muon' },
{ label: 'Fluid', value: 'fluid' },
5e. Persistent visualizer settings per SEK package
Visualizer mode and per-visualizer parameters (e.g. colorSpectrum, maxPoints, curl, splatRadius) that the user configures for a specific song should be stored inside the .sek package so they travel with the file rather than being machine-local.
.sek files are ZIP archives. The existing schema stores song metadata and stem references in manifest.json at the archive root. Visualizer settings should live under a dedicated key in that same file:
{
"metadata": { "title": "...", "artist": "..." },
"contents": { "lyrics": "...", "stems": [...] },
"visualizer": {
"mode": "muon",
"muon": {
"maxPoints": 2500,
"idleMultiplier": 0.3
},
"fluid": {
"curl": 35,
"splatRadius": 0.22,
"colorful": true
}
}
}
Only the active mode and its parameter block need to be written; absent keys fall back to defaults.
Color parameters should not be treated as user-owned visualizer settings for SEK playback. Color is derived from metadata.dynamic_palette (manifest source of truth) to keep packaging deterministic.
Frontend: when LyricsLivePreview is opened from a .sek source, read:
manifest.visualizerfor mode/geometry settingsmanifest.metadata.dynamic_palettefor visualizer colors
Use both as initial inputs to VisualizerBackdrop. User changes during playback should be writable back via a "Save to package" action (not auto-saved, since .sek files may be read-only on some setups).
Backend: the SEK export endpoint (exportProjectSek) should accept an optional visualizer dict and write it into manifest.json at package creation time. When the per-song beat-grid (Phase 7) is implemented, its summary data (bpm, downbeats) can also live here rather than as a separate sidecar file.
Note on
metadata.json: there is no top-levelmetadata.jsonfile in the current.sekformat. The correct storage location is the"visualizer"key inside the existingmanifest.json.
5f. Background colour for visualizer modes
When visualStyle === 'muon' or 'fluid', override the container background to near-black (hsl(242, 87%, 6%) — Muon's native background). The lyrics canvas background should be set to transparent so the visualizer shows through.
Phase 6 — KaraokePerformanceMode and KaraokeTV
KaraokePerformanceMode wraps LyricsLivePreview and passes performanceMode — the visualizer style propagates automatically through defaultStyle / styleOptions if the user has selected it.
For the TV view (KaraokeTV.tsx → full-screen via KaraokePerformanceMode), no additional changes are needed. The backdrop renders full-screen naturally.
Optional enhancement: add a visualizerMode prop to KaraokePerformanceModeProps and forward it as defaultStyle to LyricsLivePreview, so the TV host can select the backdrop independently of the preview pane.
Phase 7 — Per-song pre-analysis (Meyda offline batch)
The Muon-Audio-Analysis project demonstrates a pipeline editor approach for offline analysis. For StemEngine, this means pre-computing per-song feature data (beat grid, energy envelope) when a project is created, storing the result, and loading it at playback time for more precise visualizer sync.
Proposed backend task
When a project is separated:
- Run Meyda (or
librosaon the Python side) on thedrumsstem (if present) to extract a beat grid as JSON. - Store at
projects/{id}/beat-grid.json:{ "bpm": 128.4, "beats": [0.234, 0.701, 1.168, ...], "downbeats": [0.234, 1.168, ...] } - Frontend:
LyricsLivePreviewfetches this (if available) via a new API endpointGET /api/projects/{id}/beat-grid. - Visualizer uses pre-computed beat grid for tighter onset sync instead of live RMS threshold detection.
This is a backend task deferred to a separate implementation session. The live Meyda approach in Phase 1 works without it.
Implementation order
| Step | File(s) | Notes |
|---|---|---|
| 1 | package.json |
npm install meyda three @types/meyda @types/three |
| 2 | muon/audioProcessing.ts |
Port audio.js + operations.js utility fns |
| 3 | muon/shaders/*.glsl |
Copy shaders verbatim |
| 4 | muon/particleSystem.ts |
Port wave.js + ParticleEmitter |
| 5 | MuonVisualizerCanvas.tsx |
Wire Three.js scene, RAF loop, featuresRef read |
| 6 | useAudioFeatures.ts |
Meyda setup + AnalyserNode passthrough |
| 7 | FluidVisualizerCanvas.tsx |
Vendor fluid sim core, wire audio → splats |
| 8 | VisualizerBackdrop.tsx |
Switcher component |
| 9 | LyricsLivePreview.tsx |
Add styles, backdrop render, hook call |
| 10 | types.ts |
Extend LyricsVisualStyle union |
| 11 | Backend: SEK export | Add optional visualizer dict to exportProjectSek; write into manifest.json inside the .sek ZIP (see §5e) |
| 12 | Backend: SEK library service | Surface both manifest.visualizer and manifest.metadata.dynamic_palette in package listing/detail responses |
| 13 | Manual test | Verify audio chain not broken; no double audio output |
| 14 | SUMMARIES.md | Document |
Risks and mitigations
| Risk | Mitigation |
|---|---|
| AudioContext policy — browser may block context creation before user gesture | Both hooks are no-ops until isPlayingRef.current is true; analyser is only attached after first play |
| Double audio output from AnalyserNode insertion | Connect analyserNode to a silent GainNode (gain=0) → destination, not to the main output; or use analyserNode.connect(ctx.destination) only without gain if not double-connected |
| Three.js bundle size (~600 KB gzipped) | Already a likely dep (Muon Analysis uses it); lazy-import MuonVisualizerCanvas with React.lazy + Suspense |
| Fluid sim GL context competing with Three.js | Each visualizer gets its own <canvas>; WebGL contexts are independent |
PavelDoGreat/Fluid-Simulation Zig repo is not JS-embeddable |
Use classic WebGL-Fluid-Simulation JS version as documented above |
| Meyda + Three.js RAF on top of existing RAF loop | Each RAF is independent; browser coalesces multiple requestAnimationFrame registrations into the same frame — no double-frame cost |
Some older packages may not contain metadata.dynamic_palette |
useVisualizerPalette fallback chain: cover/thumbnail runtime extraction → static defaults |
| Photosensitive epilepsy risk (noted in Muon repo) | Add a disclaimer to the style picker when selecting 'muon' or 'fluid' modes |
Out of scope for this plan
- Replacing Meyda with the full Muon-Audio-Analysis node-graph UI inside StemEngine — it's a standalone tool, not a library
- Per-song beat-grid backend pipeline (Phase 7 — deferred)
- Mobile performance tuning (fluid sim is desktop-only per Muon's own recommendation)
- Debouncing/throttling the
colorSpectrumshift to prevent flicker (can be added later with a simple EMA filter)