feat(pedals): component Amp pedal (S2) on Lyrebird 1.7
Bump Lyrebird dependency to 1.7.0 and add a full white-box amp built on its new amp-modeling core. AmpPedal chain: preamp TriodeStage(drive: gain) → ToneStack(bass/mid/treble, model) → gentle power-amp TriodeStage → speaker-cabinet ConvolutionReverb. The tone-stack model (Fender/Marshall/Vox) and cabinet voice are each built per option and picked live with Select, so both round-trip through the rig save format. Fully wet (Level is master; Mix hidden). Controls: Gain, Bass, Mid, Treble knobs + Amp / Cab selectors. Registered in PedalRegistry / PedalType / PedalCategory (.gain) / palette / enclosure color; Help acknowledgments cite the Yeh & Smith tone-stack model. Tests: builds/non-silent/finite; gain, tone, amp-model, and cab all change the output; controls exposed; amp/cab selections round-trip through PedalState; registry resolves "Amp". Full suite 494. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -178,6 +178,9 @@ public struct HelpView: View {
|
||||
+ "built-in speaker impulse responses.",
|
||||
"The Cabinet pedal's built-in cab voicings are original impulse responses generated in "
|
||||
+ "code — not captures of any third-party hardware or IR pack.",
|
||||
"The Amp pedal's tone stack follows the Yeh & Smith analysis of the Fender/Marshall/Vox "
|
||||
+ "tone-stack circuit (\"Discretization of the '59 Fender Bassman Tone Stack\", DAFx-06); "
|
||||
+ "its models are original code, not captures of specific hardware.",
|
||||
]
|
||||
)
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ public enum PedalCategory: String, CaseIterable, Identifiable, Sendable {
|
||||
}
|
||||
|
||||
private static let mapping: [String: PedalCategory] = [
|
||||
"Overdrive": .gain, "Distortion": .gain, "Fuzz": .gain, "Volume": .gain,
|
||||
"Amp": .gain, "Overdrive": .gain, "Distortion": .gain, "Fuzz": .gain, "Volume": .gain,
|
||||
"Compressor": .dynamics, "Sustainer": .dynamics, "Limiter": .dynamics, "Noise Gate": .dynamics,
|
||||
"Graphic EQ": .filter, "Auto-Wah": .filter, "Wah": .filter, "Mutant": .filter,
|
||||
"Cabinet": .filter,
|
||||
|
||||
@@ -54,7 +54,7 @@ public struct PedalPaletteView: View {
|
||||
/// Preferred display order for the built-in pedals. Any registered pedal not listed here is
|
||||
/// appended afterwards (sorted) so the palette never silently drops a newly added pedal.
|
||||
private static let preferredOrder: [String] = [
|
||||
"Overdrive", "Distortion", "Compressor", "Sustainer", "Limiter", "Noise Gate", "Fuzz",
|
||||
"Amp", "Overdrive", "Distortion", "Compressor", "Sustainer", "Limiter", "Noise Gate", "Fuzz",
|
||||
"Volume",
|
||||
"Graphic EQ", "Tremolo", "Phaser", "Modulation", "Chorus", "Flanger", "Vibrato", "Rotary",
|
||||
"Auto-Wah", "Wah", "Mutant", "Cabinet", "Ring Modulator", "Diffuser", "Bitcrusher", "Granulator",
|
||||
|
||||
@@ -16,6 +16,7 @@ import LyrebirdShoeGaze
|
||||
/// here in the UI target. Unrecognised names fall through to `.gray`.
|
||||
private func enclosureColor(for displayName: String) -> Color {
|
||||
switch displayName {
|
||||
case "Amp": return Color(red: 0.18, green: 0.17, blue: 0.20) // amp-head charcoal
|
||||
case "Overdrive": return Color(red: 0.85, green: 0.42, blue: 0.08) // warm orange
|
||||
case "Distortion": return Color(red: 0.80, green: 0.26, blue: 0.12) // hot rust
|
||||
case "Delay": return Color(red: 0.10, green: 0.55, blue: 0.55) // teal
|
||||
|
||||
Reference in New Issue
Block a user