feat(pedals): Cabinet IR pedal (S1) with synthesized cab voices
First amp-modeling increment (ShoeGaze 2.0, plan S1). No Lyrebird change — reuses ConvolutionReverb + LyrebirdBuffer. - CabinetPedal: builds one ConvolutionReverb per built-in voice at build() time and picks the active one with a `Select` driven by the persisted `cabinet` selector — live cab switching that round-trips through the rig save format. - CabinetVoice + CabinetIRFactory: three built-in voicings synthesized in code (impulse through an RBJ biquad cascade — HP, true 4th-order Butterworth LP, body + presence peaks), so the bundled cab set is our own MIT content (no third-party IR licensing). Filter centre frequencies are Nyquist-clamped. - Registered in PedalRegistry / PedalType / PedalCategory (.filter) / palette; README pedal count + catalog updated. User-supplied captured .wav cab IRs are a planned follow-up (needs a persisted file-path field PedalState doesn't yet carry). Tests: IR is finite, peak-normalized, mono; rolls off lows and highs; voices differ; selector exposed; selection changes output and round-trips through PedalState; pedal builds, non-silent, resolves from the registry. Suite 486. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -45,6 +45,7 @@ public enum PedalCategory: String, CaseIterable, Identifiable, Sendable {
|
||||
"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,
|
||||
"Tremolo": .modulation, "Phaser": .modulation, "Modulation": .modulation, "Chorus": .modulation,
|
||||
"Flanger": .modulation, "Vibrato": .modulation, "Rotary": .modulation, "Ring Modulator": .modulation,
|
||||
"Bass Octaver": .pitch, "Octave Splitter": .pitch, "Harmonizer": .pitch,
|
||||
|
||||
@@ -57,7 +57,7 @@ public struct PedalPaletteView: View {
|
||||
"Overdrive", "Distortion", "Compressor", "Sustainer", "Limiter", "Noise Gate", "Fuzz",
|
||||
"Volume",
|
||||
"Graphic EQ", "Tremolo", "Phaser", "Modulation", "Chorus", "Flanger", "Vibrato", "Rotary",
|
||||
"Auto-Wah", "Wah", "Mutant", "Ring Modulator", "Diffuser", "Bitcrusher", "Granulator",
|
||||
"Auto-Wah", "Wah", "Mutant", "Cabinet", "Ring Modulator", "Diffuser", "Bitcrusher", "Granulator",
|
||||
"Auto Granulator", "Bass Octaver", "Octave Splitter", "Harmonizer",
|
||||
"Delay", "Feedback Delay", "Multi-Tap Delay", "Ping-Pong", "Reverse Delay", "Reverb",
|
||||
"Shimmer Reverb", "Plate Reverb", "Room Reverb", "Spring Reverb",
|
||||
|
||||
@@ -39,6 +39,7 @@ private func enclosureColor(for displayName: String) -> Color {
|
||||
case "Limiter": return Color(red: 0.62, green: 0.16, blue: 0.20) // brick red
|
||||
case "Noise Gate": return Color(red: 0.24, green: 0.26, blue: 0.30) // gunmetal
|
||||
case "Graphic EQ": return Color(red: 0.14, green: 0.40, blue: 0.50) // deep teal
|
||||
case "Cabinet": return Color(red: 0.50, green: 0.36, blue: 0.18) // tweed / cabinet tan
|
||||
case "Chorus": return Color(red: 0.16, green: 0.50, blue: 0.64) // aqua
|
||||
case "Flanger": return Color(red: 0.28, green: 0.52, blue: 0.78) // steel blue
|
||||
case "Vibrato": return Color(red: 0.42, green: 0.30, blue: 0.70) // violet-blue
|
||||
|
||||
Reference in New Issue
Block a user