VFD panel: display modes with a hardware-style switch
DISPLAY_MODE() replaces LAYOUT() with "full", "spectrum", "minimal" and
"deck" ("auto" follows Shift+M; the old names still work). When the
layout on screen changes, the time and L/R meters stay lit while the
other sections go dark and light up one after another with a short
overshoot, like a display switching modes in hardware. A pinned mode or
a fallback to the same layout only flashes the mode lamps.
The analyzer's display range follows the music: its top rises with the
loudest band and falls 4 dB/s within -26..-6 dBFS, never reaching below
the analyzer floor, so silence stays dark. Spectrum mode caps the
analyzer at 18 rows and centres the panel; minimal mode is at most 132
columns wide and centred. Deck mode adds AMS, NR [B], AUTO REVERSE and
REW / FF lamps and a tape counter that races during a seek.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d1c89511ed
commit
5a00a1c8e8
3 files changed
+182
-76
No files matched your search
+8
-4
@@ -58,7 +58,7 @@ const BUNDLED_SCRIPTS: &[BundledScript] = &[
|
||||
id: "vfd_panel",
|
||||
file_name: "vfd_panel.rhai",
|
||||
display_name: "VFD panel",
|
||||
version: 6,
|
||||
version: 7,
|
||||
source: include_str!("visualizations/vfd_panel.rhai"),
|
||||
},
|
||||
];
|
||||
@@ -2068,10 +2068,14 @@ mod tests {
|
||||
r#"fn PALETTE() { "ice" }"#,
|
||||
1,
|
||||
),
|
||||
base.replacen(r#"fn LAYOUT() { "auto" }"#, r#"fn LAYOUT() { "tape" }"#, 1),
|
||||
base.replacen(
|
||||
r#"fn LAYOUT() { "auto" }"#,
|
||||
r#"fn LAYOUT() { "minimal" }"#,
|
||||
r#"fn DISPLAY_MODE() { "auto" }"#,
|
||||
r#"fn DISPLAY_MODE() { "deck" }"#,
|
||||
1,
|
||||
),
|
||||
base.replacen(
|
||||
r#"fn DISPLAY_MODE() { "auto" }"#,
|
||||
r#"fn DISPLAY_MODE() { "minimal" }"#,
|
||||
1,
|
||||
),
|
||||
];
|
||||
|
||||
Reference in new issue
Block a user