You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add visualizer@v1 with beats, peaks, pitch, and frequency (#259)
Upgrades the TUI visualizer from the old `_draft_r1` draft to the newer
`visualizer@v1` role, rendering everything the server streams
time-aligned to the playhead: a beats strip with estimated BPM and
downbeats, a peaks strip of energy onsets, and pitch and
dominant-frequency (`f_peak`) cursors over the spectrum.
Only data that is sent by the server is displayed. For example, Music
Assistant 2.9 does not support pitch.
|`source_format`| string | serve | ffmpeg container format for audio source |
160
161
|`clients`| array | serve | Client URLs to connect to (`--client`) |
@@ -321,9 +322,17 @@ Hooks receive these environment variables:
321
322
322
323
### Visualizer
323
324
324
-
The TUI includes a real-time audio spectrum visualizer that displays frequency data received from the server. This uses the experimental `visualizer@_draft_r1` role. The spectrum data is computed on the server and sent via sendspin to the TUI.
325
+
The TUI includes a real-time audio visualizer driven by the `visualizer@v1` role. All analysis is computed on the server and streamed to the TUI, time-aligned to the audio playhead. It shows:
325
326
326
-
Toggle it by pressing `v` in the TUI. Your preference is saved in settings and remembered on next launch.
327
+
-**Spectrum bars** — frequency magnitude across the range, tinted by overall loudness (and by the album-artwork palette when the server provides one).
328
+
-**Beats timeline** — a `beats (NNN BPM):` strip with the estimated tempo; downbeats render differently from regular beats.
329
+
-**Peaks timeline** — a `peaks:` strip of energy onsets (transients like drum hits), independent of the beat grid, with glyph height scaled by onset strength.
330
+
-**Pitch** — the perceived musical note (e.g. `A4`) with an arrow pointing at its position on the spectrum, shown whenever a pitch is detected.
331
+
-**Dominant frequency** — an `f_peak:` readout with an arrow marking the loudest frequency on the spectrum.
332
+
333
+
Lower rows are dropped first on short terminals, keeping the spectrum visible.
334
+
335
+
Toggle the visualizer by pressing `v` in the TUI. Your preference is saved in settings and remembered on next launch.
0 commit comments