From 0f6d69819dd99f4a498656ebfca0559d2dbcfe8e Mon Sep 17 00:00:00 2001 From: Joshua Parmenter Date: Mon, 3 Aug 2026 17:34:46 -0700 Subject: [PATCH] chore(amps): hide Neural Amp from palette/registry (keep code for later) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove Neural Amp from PedalRegistry.builtIn and PedalPaletteView.preferredOrder so it can't be added — the model loader's security-scoped file access is unresolved (fails silently under sandboxing; flagged in external review). NeuralAmpPedal, its neuralModelRow UI, PedalType/category/color mappings, and tests are all kept for later iteration — re-add the two entries to re-enable. Help acknowledgment for the GuitarML loader dropped (feature not user-reachable); registry test now asserts it is not registered. Co-Authored-By: Claude Opus 4.8 --- Sources/LyrebirdShoeGaze/Presets/PedalRegistry.swift | 4 +++- Sources/LyrebirdShoeGazeUI/HelpView.swift | 3 --- Sources/LyrebirdShoeGazeUI/PedalPaletteView.swift | 2 +- Tests/LyrebirdShoeGazeTests/NeuralAmpPedalTests.swift | 8 +++++--- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/Sources/LyrebirdShoeGaze/Presets/PedalRegistry.swift b/Sources/LyrebirdShoeGaze/Presets/PedalRegistry.swift index 10260d6..4a43cb2 100644 --- a/Sources/LyrebirdShoeGaze/Presets/PedalRegistry.swift +++ b/Sources/LyrebirdShoeGaze/Presets/PedalRegistry.swift @@ -57,7 +57,9 @@ public enum PedalRegistry { "Fullerton Drive": { FullertonDriveAmpPedal() }, "Jazz Clean": { JazzCleanAmpPedal() }, "Chime Top Boost": { ChimeTopBoostAmpPedal() }, - "Neural Amp": { NeuralAmpPedal() }, + // "Neural Amp" intentionally NOT registered -- hidden from the palette while the neural + // model-loader's security-scoped file access is unresolved. NeuralAmpPedal + its UI are kept + // for later iteration; re-add this entry (and the palette order below) to re-enable. "Overdrive": { OverdrivePedal() }, "Distortion": { DistortionPedal() }, "Delay": { DelayPedal() }, diff --git a/Sources/LyrebirdShoeGazeUI/HelpView.swift b/Sources/LyrebirdShoeGazeUI/HelpView.swift index d8c61dc..270bf2d 100644 --- a/Sources/LyrebirdShoeGazeUI/HelpView.swift +++ b/Sources/LyrebirdShoeGazeUI/HelpView.swift @@ -182,9 +182,6 @@ public struct HelpView: View { + "follow the Yeh & Smith analysis of the classic passive tone-stack circuit (\"Discretization " + "of the '59 Fender Bassman Tone Stack\", DAFx-06); their models are original code, not " + "captures of specific hardware.", - "The Neural Amp pedal loads GuitarML Proteus / NeuralPi capture models (the open LSTM " - + "format from github.com/GuitarML). You supply the model file; none are bundled, and " - + "those models are licensed by their respective authors.", ] ) } diff --git a/Sources/LyrebirdShoeGazeUI/PedalPaletteView.swift b/Sources/LyrebirdShoeGazeUI/PedalPaletteView.swift index b256693..c0bddac 100644 --- a/Sources/LyrebirdShoeGazeUI/PedalPaletteView.swift +++ b/Sources/LyrebirdShoeGazeUI/PedalPaletteView.swift @@ -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] = [ - "California", "British", "British Plexi", "British JTM", "British Bluesbreaker", "British Master", "British Dual", "Boutique Lead", "Boutique OD", "Cali Hi-Gain", "Command", "Citrus", "Sixties Combo", "Magna Vibrato", "Anaheim", "Modern High-Gain", "Chime", "Chime 15", "Chime Normal", "Chime Baby", "Fullerton Reverb", "Fullerton Deluxe", "Fullerton Princeton", "Fullerton Drive", "Jazz Clean", "Chime Top Boost", "Neural Amp", "Overdrive", "Distortion", "Compressor", "Sustainer", "Limiter", "Noise Gate", "Fuzz", + "California", "British", "British Plexi", "British JTM", "British Bluesbreaker", "British Master", "British Dual", "Boutique Lead", "Boutique OD", "Cali Hi-Gain", "Command", "Citrus", "Sixties Combo", "Magna Vibrato", "Anaheim", "Modern High-Gain", "Chime", "Chime 15", "Chime Normal", "Chime Baby", "Fullerton Reverb", "Fullerton Deluxe", "Fullerton Princeton", "Fullerton Drive", "Jazz Clean", "Chime Top Boost", "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", diff --git a/Tests/LyrebirdShoeGazeTests/NeuralAmpPedalTests.swift b/Tests/LyrebirdShoeGazeTests/NeuralAmpPedalTests.swift index cf0e655..cf1511b 100644 --- a/Tests/LyrebirdShoeGazeTests/NeuralAmpPedalTests.swift +++ b/Tests/LyrebirdShoeGazeTests/NeuralAmpPedalTests.swift @@ -113,8 +113,10 @@ struct NeuralAmpPedalTests { #expect(pedal.effectKnobs.map { $0.label } == ["Gain"]) } - @Test func registeredInBuiltInRegistry() throws { - let pedal: Pedal? = PedalRegistry.makePedal(type: "Neural Amp") - #expect(pedal is NeuralAmpPedal) + @Test func notRegisteredWhileHidden() throws { + // Neural Amp is intentionally not in the palette/registry for now (unresolved security-scoped + // model-file access); the class + UI are kept for later iteration. Re-add to + // PedalRegistry.builtIn + PedalPaletteView.preferredOrder to re-enable. + #expect(PedalRegistry.makePedal(type: "Neural Amp") == nil) } }