From 71d9b448096797b9cfa9f67c176ff41a18969431 Mon Sep 17 00:00:00 2001 From: Joshua Parmenter Date: Mon, 3 Aug 2026 12:17:18 -0700 Subject: [PATCH] =?UTF-8?q?fix(amps):=20Phase=202=20review=20nits=20?= =?UTF-8?q?=E2=80=94=20Help=20scope,=20compose=20switches,=20test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - HelpView: scope the tone-stack acknowledgment to "tube-amp voice pedals" (the genericized "amp pedals" wrongly implied Neural Amp, which is .amp but has no tone stack, follows Yeh & Smith). - BritishBluesbreaker: compose super.effectSwitches for the Bright switch instead of re-declaring it, so it stays in sync with the base. - Test: round-trip now also asserts speed. Co-Authored-By: Claude Opus 4.8 --- .../Pedals/BritishBluesbreakerAmpPedal.swift | 11 ++--------- Sources/LyrebirdShoeGazeUI/HelpView.swift | 2 +- .../BritishComboAmpPedalTests.swift | 3 ++- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/Sources/LyrebirdShoeGaze/Pedals/BritishBluesbreakerAmpPedal.swift b/Sources/LyrebirdShoeGaze/Pedals/BritishBluesbreakerAmpPedal.swift index f919861..06c2404 100644 --- a/Sources/LyrebirdShoeGaze/Pedals/BritishBluesbreakerAmpPedal.swift +++ b/Sources/LyrebirdShoeGaze/Pedals/BritishBluesbreakerAmpPedal.swift @@ -42,16 +42,9 @@ public final class BritishBluesbreakerAmpPedal: BritishComboAmpPedal { /// Wider card for the extra tremolo knobs plus the Bright and Tremolo switches. public override var widthUnits: Int { 3 } + /// The base Bright switch plus a Tremolo footswitch (compose `super` so Bright stays in sync). public override var effectSwitches: [PedalSwitch] { - [ - PedalSwitch( - label: "Bright", - node: $bright, - options: [ - PedalSwitch.Option(title: "Off", value: switchOffValue), - PedalSwitch.Option(title: "On", value: switchOnValue), - ] - ), + super.effectSwitches + [ PedalSwitch( label: "Tremolo", node: $tremoloEnabled, diff --git a/Sources/LyrebirdShoeGazeUI/HelpView.swift b/Sources/LyrebirdShoeGazeUI/HelpView.swift index 8b1c093..d8c61dc 100644 --- a/Sources/LyrebirdShoeGazeUI/HelpView.swift +++ b/Sources/LyrebirdShoeGazeUI/HelpView.swift @@ -178,7 +178,7 @@ public struct HelpView: View { + "built-in speaker impulse responses.", "The Cabinet pedal's built-in cab voicings are original impulse responses generated in " + "code — not captures of any third-party hardware or IR pack.", - "The amp pedals' tone stacks " + "The tube-amp voice pedals' tone stacks " + "follow the Yeh & Smith analysis of the classic passive tone-stack circuit (\"Discretization " + "of the '59 Fender Bassman Tone Stack\", DAFx-06); their models are original code, not " + "captures of specific hardware.", diff --git a/Tests/LyrebirdShoeGazeTests/BritishComboAmpPedalTests.swift b/Tests/LyrebirdShoeGazeTests/BritishComboAmpPedalTests.swift index f6685db..337700f 100644 --- a/Tests/LyrebirdShoeGazeTests/BritishComboAmpPedalTests.swift +++ b/Tests/LyrebirdShoeGazeTests/BritishComboAmpPedalTests.swift @@ -144,12 +144,13 @@ struct BritishComboAmpPedalTests { let pedal: BritishBluesbreakerAmpPedal = BritishBluesbreakerAmpPedal() pedal.presence = 0.7 pedal.bright = 1.0 + pedal.speed = 9.0 pedal.intensity = 0.5 pedal.tremoloEnabled = 0.0 pedal.cab = 2.0 let restored: BritishBluesbreakerAmpPedal = BritishBluesbreakerAmpPedal() restored.applyState(pedal.captureState()) - #expect(restored.presence == 0.7 && restored.bright == 1.0) + #expect(restored.presence == 0.7 && restored.bright == 1.0 && restored.speed == 9.0) #expect(restored.intensity == 0.5 && restored.tremoloEnabled == 0.0 && restored.cab == 2.0) }