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:
@@ -29,11 +29,6 @@ open class BritishComboAmpPedal: AmpVoicePedal {
|
||||
private let brightFreqHz: Double = 3500.0
|
||||
private let brightMaxGainDb: Double = 6.0
|
||||
private let brightSlope: Double = 0.7
|
||||
let switchOffValue: Double = 0.0
|
||||
let switchOnValue: Double = 1.0
|
||||
/// Grid bias of a cascaded lead/drive `TriodeStage` — a little asymmetry for even-harmonic
|
||||
/// grind. Shared by the master-volume subclasses' cascaded ``preampStage(_:)``.
|
||||
let leadBias: Double = 0.15
|
||||
|
||||
public override var toneStackModel: ToneStackModel { .marshall }
|
||||
public override var signatureKnobs: [PedalKnob] {
|
||||
|
||||
Reference in New Issue
Block a user