chore(amps): hide Neural Amp from palette/registry (keep code for later)
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 <noreply@anthropic.com>
This commit is contained in:
@@ -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() },
|
||||
|
||||
@@ -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.",
|
||||
]
|
||||
)
|
||||
}
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user