1de14fd879
Phase 11. Promote Sag from Modern High-Gain to a shared AmpVoicePedal capability and add a Bias control, both surfaced in a new pedal-card pop-over rather than on the amp face. - AmpVoicePedal gains `sag` [0,1] (AmplitudeFollower gain-droop, clamped [0.15,1] to prevent phase inversion) and `bias` [0,1] mapped to the power-amp TriodeStage grid bias ([-0.25,0.25], neutral 0.5 → 0.0 so existing voices are unchanged at defaults). Both applied in preCabinetCore; new `applySag(_:)` + `powerAmpBiasInput` helpers. - Modern High-Gain drops its bespoke sag (now inherited); keeps sag=0.3 default. Sag moves off its face into the pop-over. - Pedal gains an `advancedKnobs` surface; PedalView draws a gear button (top-right) presenting them in a popover, reusing the existing pattern. - Advanced knobs round-trip through PedalState (new `advancedValues`, backward-compatible decode) and are MIDI-CC-mappable (appended last). De-branding (review nits): "Vox" removed from the Chime family's user-visible summaries + docs; "Fullerton Princeton" renamed to display "Fullerton Ivy League". Palette horizontal picker second row now shows Routing before the Amp Model group. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
42 lines
1.7 KiB
Swift
42 lines
1.7 KiB
Swift
// FullertonPrincetonAmpPedal.swift
|
||
// Lyrebird
|
||
//
|
||
// Copyright (c) 2026 Joshua Parmenter / realizedsound
|
||
// SPDX-License-Identifier: MIT
|
||
|
||
import LyrebirdSynth
|
||
import LyrebirdUI
|
||
|
||
/// American blackface **1×10 combo** — the smallest, darkest blackface voice, below
|
||
/// ``FullertonDeluxeAmpPedal``.
|
||
///
|
||
/// Same reverb + tremolo + Bright control surface, but voiced smaller: a darker cabinet, less low
|
||
/// end, and the earliest, most compressed breakup of the three — the classic small-studio recording
|
||
/// combo.
|
||
public final class FullertonPrincetonAmpPedal: FullertonReverbAmpPedal {
|
||
|
||
/// Power-amp drive — the highest of the blackface trio, so it breaks up earliest.
|
||
private let princetonPowerDrive: Double = 2.6
|
||
|
||
public override var summaryText: String {
|
||
"American 1×10 combo — small, dark, early-breakup blackface with reverb, tremolo, and Bright."
|
||
}
|
||
|
||
/// Driven hardest of the blackface trio, so 4× oversampling for anti-alias headroom.
|
||
public override var powerAmpOversample: Int { 4 }
|
||
public override var powerAmpDriveInput: any ValidGeneratorInput { princetonPowerDrive }
|
||
|
||
/// Creates a Fullerton Ivy League amp.
|
||
///
|
||
/// - Parameters:
|
||
/// - inputBus: Audio bus index to read the dry input from. Defaults to `0`.
|
||
/// - outputBus: Audio bus index to write the processed output to. Defaults to `0`.
|
||
public init(inputBus: Int = 0, outputBus: Int = 0) {
|
||
super.init(name: "Fullerton Ivy League", inputBus: inputBus, outputBus: outputBus)
|
||
gain = 5.0 // hotter still — the small combo grits up soonest
|
||
bass = 0.4 // least low end of the trio
|
||
treble = 0.55 // a shade darker
|
||
cab = 2.0 // Vintage Dark — the small, dark 1×10 voice
|
||
}
|
||
}
|