refactor(amps): hoist shared switch/leadBias constants to AmpVoicePedal

switchOffValue (0.0) / switchOnValue (1.0) were re-declared in six amp files and
leadBias (0.15) in two. Hoist all three onto AmpVoicePedal as internal `let`s so
every subclass inherits them; remove the per-file duplicates. Pure refactor — no
behavior change; 610 tests stay green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-08-03 15:11:32 -07:00
parent 31fa1b9cd3
commit 573a91f377
7 changed files with 6 additions and 17 deletions
@@ -36,13 +36,9 @@ open class BoutiqueAmpPedal: AmpVoicePedal {
private let depthSlope: Double = 0.7
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.
private let leadBias: Double = 0.15
private let channelThreshold: Double = 0.5
private let driveRange: ClosedRange<Double> = 1.0 ... 30.0
let switchOffValue: Double = 0.0
let switchOnValue: Double = 1.0
public override var toneStackModel: ToneStackModel { .marshall }
public override var signatureKnobs: [PedalKnob] {