feat(amps): channel-switch enabler + drive-channel amps (Phase 4)
Enabler: - PedalSwitch.rebuildsOnChange (mirrors PedalSelectorKnob): a switch that changes graph topology asks the host to rebuild. Wired through PedalSwitchView (onCommit on a changed tap) and PedalView.switchRow → pedalRebuildAction. - AmpVoicePedal.preampStage(_:) overridable hook (default: one TriodeStage at Gain). preCabinetCore feeds it; a channel amp cascades an extra stage on its drive channel. Named preampOversample constant (4). Amps: - Fullerton Drive — American two-channel combo: blackface Clean + an overdrive channel (cascaded TriodeStage set by Drive), spring reverb, Bright. Channel switch is rebuildsOnChange, so only the selected channel's stages are built. - Jazz Clean — add the JC onboard Distortion channel (Clean/Dist switch + Drive knob) via the same preampStage cascade; flows through its stereo wideEffect. Registered Fullerton Drive across 6 sites as .amp. 22 tests across the two amps (channel switch changes output, drive knob, rebuildsOnChange, ceiling on the drive channel, control surface, round-trip, registry). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -29,6 +29,7 @@ private func enclosureColor(for displayName: String) -> Color {
|
||||
case "Fullerton Reverb": return Color(red: 0.15, green: 0.22, blue: 0.30) // blackface panel
|
||||
case "Fullerton Deluxe": return Color(red: 0.17, green: 0.20, blue: 0.26) // blackface, warmer
|
||||
case "Fullerton Princeton": return Color(red: 0.19, green: 0.19, blue: 0.23) // small blackface
|
||||
case "Fullerton Drive": return Color(red: 0.22, green: 0.18, blue: 0.24) // two-channel combo
|
||||
case "Jazz Clean": return Color(red: 0.14, green: 0.30, blue: 0.34) // solid-state silver-teal
|
||||
case "Chime Top Boost": return Color(red: 0.20, green: 0.32, blue: 0.20) // vox-green tolex
|
||||
case "Neural Amp": return Color(red: 0.22, green: 0.16, blue: 0.30) // deep neural violet
|
||||
@@ -824,7 +825,12 @@ public struct PedalView: View {
|
||||
if !switches.isEmpty {
|
||||
HStack(alignment: .top, spacing: PedalView.knobSpacing) {
|
||||
ForEach(Array(switches.enumerated()), id: \.offset) { pair in
|
||||
PedalSwitchView(pair.element)
|
||||
PedalSwitchView(
|
||||
pair.element,
|
||||
onCommit: pair.element.rebuildsOnChange
|
||||
? { [pedal, pedalRebuildAction] in pedalRebuildAction(pedal) }
|
||||
: nil
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user