fix(amps): disambiguate Reverb footswitch label; comment bypass test

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 <noreply@anthropic.com>
This commit is contained in:
2026-08-03 07:59:12 -07:00
parent a9e91ef08c
commit 27fb6e6898
2 changed files with 4 additions and 3 deletions
@@ -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),
@@ -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)