fix(amps): Phase 6 review nits — reuse signatureRange, private leadBias
- 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 <noreply@anthropic.com>
This commit is contained in:
@@ -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<Double> = 0.0 ... 1.0
|
||||
private let driveRange: ClosedRange<Double> = 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),
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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."
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user