From e5deb8f94a6f4ebfda3ecba6c92884cbab29df76 Mon Sep 17 00:00:00 2001 From: Joshua Parmenter Date: Mon, 3 Aug 2026 10:23:25 -0700 Subject: [PATCH] feat(ui): Amp Model pedal category Add an "Amp Model" PedalCategory and move the amps (California, British, Chime, Fullerton Reverb, Jazz Clean, Chime Top Boost, Neural Amp) out of Gain into it. Overdrive/Distortion/Fuzz/Volume stay in Gain. Purely a palette grouping / filter-menu change (UI); no audio or pedal behavior. New amps register .amp. Co-Authored-By: Claude Opus 4.8 --- Sources/LyrebirdShoeGazeUI/PedalCategory.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Sources/LyrebirdShoeGazeUI/PedalCategory.swift b/Sources/LyrebirdShoeGazeUI/PedalCategory.swift index 7b4c9dd..28f7f12 100644 --- a/Sources/LyrebirdShoeGazeUI/PedalCategory.swift +++ b/Sources/LyrebirdShoeGazeUI/PedalCategory.swift @@ -10,6 +10,7 @@ import SwiftUI /// drive the "filter by type" menu. Purely a UI concern: the mapping from a pedal's `displayName` /// to its category lives here, keyed by name like ``PedalPaletteView``'s preferred order. public enum PedalCategory: String, CaseIterable, Identifiable, Sendable { + case amp = "Amp Model" case gain = "Gain" case dynamics = "Dynamics" case filter = "EQ & Filter" @@ -24,6 +25,7 @@ public enum PedalCategory: String, CaseIterable, Identifiable, Sendable { /// Accent colour used to tint the palette card and the filter chip. var color: Color { switch self { + case .amp: return Color(red: 0.70, green: 0.45, blue: 0.18) // warm valve-glow copper case .gain: return Color(red: 0.82, green: 0.38, blue: 0.12) case .dynamics: return Color(red: 0.20, green: 0.50, blue: 0.32) case .filter: return Color(red: 0.14, green: 0.46, blue: 0.55) @@ -42,7 +44,8 @@ public enum PedalCategory: String, CaseIterable, Identifiable, Sendable { } private static let mapping: [String: PedalCategory] = [ - "California": .gain, "British": .gain, "Chime": .gain, "Fullerton Reverb": .gain, "Jazz Clean": .gain, "Chime Top Boost": .gain, "Neural Amp": .gain, "Overdrive": .gain, "Distortion": .gain, "Fuzz": .gain, "Volume": .gain, + "California": .amp, "British": .amp, "Chime": .amp, "Fullerton Reverb": .amp, "Jazz Clean": .amp, "Chime Top Boost": .amp, "Neural Amp": .amp, + "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,