From 27fb6e6898fdaf28a90a5864ce8222719a307131 Mon Sep 17 00:00:00 2001 From: Joshua Parmenter Date: Mon, 3 Aug 2026 07:59:12 -0700 Subject: [PATCH] fix(amps): disambiguate Reverb footswitch label; comment bypass test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Review nits: rename the reverb-enable switch "Reverb" → "Reverb FX" so it no longer collides with the "Reverb" level knob in the flat control surface (clearer, better for VoiceOver). Note in the vibrato bypass test why the differing speed between the two renders is intentional (depth gated to 0 makes the LFO a constant regardless of frequency). Co-Authored-By: Claude Opus 4.8 --- .../LyrebirdShoeGaze/Pedals/FullertonReverbAmpPedal.swift | 2 +- .../LyrebirdShoeGazeTests/FullertonReverbAmpPedalTests.swift | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Sources/LyrebirdShoeGaze/Pedals/FullertonReverbAmpPedal.swift b/Sources/LyrebirdShoeGaze/Pedals/FullertonReverbAmpPedal.swift index 604683e..579d4ff 100644 --- a/Sources/LyrebirdShoeGaze/Pedals/FullertonReverbAmpPedal.swift +++ b/Sources/LyrebirdShoeGaze/Pedals/FullertonReverbAmpPedal.swift @@ -101,7 +101,7 @@ public final class FullertonReverbAmpPedal: AmpVoicePedal { ] ), PedalSwitch( - label: "Reverb", + label: "Reverb FX", // disambiguated from the "Reverb" level knob node: $reverbEnabled, options: [ PedalSwitch.Option(title: "Off", value: switchOffValue), diff --git a/Tests/LyrebirdShoeGazeTests/FullertonReverbAmpPedalTests.swift b/Tests/LyrebirdShoeGazeTests/FullertonReverbAmpPedalTests.swift index 0fbc1a0..3897778 100644 --- a/Tests/LyrebirdShoeGazeTests/FullertonReverbAmpPedalTests.swift +++ b/Tests/LyrebirdShoeGazeTests/FullertonReverbAmpPedalTests.swift @@ -91,7 +91,8 @@ struct FullertonReverbAmpPedalTests { @Test func vibratoFootswitchBypassesToIdentity() throws { // Footswitch off with Intensity up must equal no tremolo (Intensity 0), and must differ - // from the same Intensity with the footswitch on. + // from the same Intensity with the footswitch on. The differing `speed` is intentional and + // harmless: with depth gated to 0 the LFO is a constant 1.0 regardless of its frequency. let bypassed: [Float] = try render { $0.intensity = 1.0; $0.speed = 6.0; $0.vibratoEnabled = 0.0 } let noTremolo: [Float] = try render { $0.intensity = 0.0 } #expect(windowedSSD(bypassed, noTremolo) == 0.0, "vibrato footswitch off should be identity") @@ -119,7 +120,7 @@ struct FullertonReverbAmpPedalTests { let pedal: FullertonReverbAmpPedal = FullertonReverbAmpPedal() #expect(pedal.effectKnobs.map { $0.label } == ["Gain", "Bass", "Mid", "Treble", "Reverb", "Speed", "Intensity"]) - #expect(pedal.effectSwitches.map { $0.label } == ["Bright", "Reverb", "Vibrato"]) + #expect(pedal.effectSwitches.map { $0.label } == ["Bright", "Reverb FX", "Vibrato"]) #expect(pedal.effectSelectors.map { $0.label } == ["Cab"]) #expect(pedal.effectSelectors.first?.rebuildsOnChange == true) #expect(pedal.widthUnits == 3)