From 31fa1b9cd36d0e2c4eaaedb265cf67ceed4c2d16 Mon Sep 17 00:00:00 2001 From: Joshua Parmenter Date: Mon, 3 Aug 2026 14:18:43 -0700 Subject: [PATCH] =?UTF-8?q?fix(amps):=20Phase=206=20review=20nits=20?= =?UTF-8?q?=E2=80=94=20reuse=20signatureRange,=20private=20leadBias?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - BoutiqueAmpPedal: drop the duplicate signatureAmount range, use the inherited AmpVoicePedal.signatureRange; make leadBias private (in-class only). - BoutiqueLead: drop the redundant toneStackModel override (base is already .marshall). Filed a follow-up task to hoist the shared switchOff/On + leadBias constants onto AmpVoicePedal (now re-declared across several amp bases). Co-Authored-By: Claude Opus 4.8 --- Sources/LyrebirdShoeGaze/Pedals/BoutiqueAmpPedal.swift | 9 ++++----- .../LyrebirdShoeGaze/Pedals/BoutiqueLeadAmpPedal.swift | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Sources/LyrebirdShoeGaze/Pedals/BoutiqueAmpPedal.swift b/Sources/LyrebirdShoeGaze/Pedals/BoutiqueAmpPedal.swift index ddd5e04..3baccc9 100644 --- a/Sources/LyrebirdShoeGaze/Pedals/BoutiqueAmpPedal.swift +++ b/Sources/LyrebirdShoeGaze/Pedals/BoutiqueAmpPedal.swift @@ -37,10 +37,9 @@ open class BoutiqueAmpPedal: AmpVoicePedal { private let masterMinDrive: Double = 0.5 private let masterMaxDrive: Double = 5.0 /// Grid bias of the cascaded lead stage — a little asymmetry for even-harmonic grind. - let leadBias: Double = 0.15 + private let leadBias: Double = 0.15 private let channelThreshold: Double = 0.5 - let signatureAmount: ClosedRange = 0.0 ... 1.0 private let driveRange: ClosedRange = 1.0 ... 30.0 let switchOffValue: Double = 0.0 let switchOnValue: Double = 1.0 @@ -48,9 +47,9 @@ open class BoutiqueAmpPedal: AmpVoicePedal { public override var toneStackModel: ToneStackModel { .marshall } public override var signatureKnobs: [PedalKnob] { [ - PedalKnob(label: "Presence", node: $presence, range: signatureAmount), - PedalKnob(label: "Depth", node: $depth, range: signatureAmount), - PedalKnob(label: "Master", node: $master, range: signatureAmount), + PedalKnob(label: "Presence", node: $presence, range: signatureRange), + PedalKnob(label: "Depth", node: $depth, range: signatureRange), + PedalKnob(label: "Master", node: $master, range: signatureRange), PedalKnob(label: "Drive", node: $drive, range: driveRange), ] } diff --git a/Sources/LyrebirdShoeGaze/Pedals/BoutiqueLeadAmpPedal.swift b/Sources/LyrebirdShoeGaze/Pedals/BoutiqueLeadAmpPedal.swift index 92d5f96..e5a89cd 100644 --- a/Sources/LyrebirdShoeGaze/Pedals/BoutiqueLeadAmpPedal.swift +++ b/Sources/LyrebirdShoeGaze/Pedals/BoutiqueLeadAmpPedal.swift @@ -13,7 +13,7 @@ import LyrebirdUI /// A ``BoutiqueAmpPedal`` fixed to the aggressive British tone stack, defaulting to a hot Lead drive. public final class BoutiqueLeadAmpPedal: BoutiqueAmpPedal { - public override var toneStackModel: ToneStackModel { .marshall } + // toneStackModel inherits the base's .marshall (aggressive British stack). public override var summaryText: String { "Boutique super-lead — aggressive cascaded high gain with Master, Presence, and Depth." }