Files
qbz/crates/qbz-slint/ui
vicrodh 29e0ac75f7 feat(slint): immersive Spectrum Visualizer mode (mode 3) - 16-bar mirrored cube spectrum
New SpectrumPanel.slint: faithful port of VisualizerPanel.svelte (the 16-bar
spectrum, not SpectralRibbon/Oscilloscope/LineBed).

- 16 source bars, bins {1,15} excluded -> 14 active -> 28 mirrored columns.
  Geometry exact to source: bar-gap 4, total-bar-width W/28, baseY 0.85H,
  maxBarHeight 0.7H, xLeft/xRight per spec.
- Discrete 6px+2px cubelets with per-cubelet gradient (gradientRatio
  min(c/20,1), primary->secondary). GPU path (ADR-011); CPU flat fallback not
  ported (Slint is GPU by default).
- Heights driven by VisualizerState.bars (bounds-safe clamp, 30fps len-16
  VecModel) + a short animate settle - NO Timer. Bars already smoothed+clamped
  in qbz-audio (no double-EMA). Now-playing card reuses the sibling pattern.
- Mounted on mode==3; modes 0/1/2 untouched.

Logged minors: MAX_CUBES=80 clips full-amplitude bars on very tall / 4K
windows (raise as a cheap follow-up); two-color gradient ships the Svelte
default cyan->purple (no album-derived secondary color wired yet); smoothing
is the Rust asymmetric EMA, not the Svelte symmetric 0.6 (deliberate, shared
pipeline).

cc
2026-06-13 09:07:20 -06:00
..