Expand description
Neural Amp Modeler (.nam) models (feature nam): loading and inference.
A pure-Rust port of the parts of NeuralAmpModelerCore
(MIT) that the pedal’s converter needs: WaveNet models, plain or inside a SlimmableContainer
(NAM 0.5 “classic” and 0.7 files). The converter (docs/05) runs test signals through the model,
so this must match NeuralAmpModelerCore numerically; tests/nam_inference.rs checks it against
the vendor converter’s recorded model output where available.
let mut model = open_stomp::nam::Model::load("amp.nam")?;
let input = vec![0.0f32; 512];
let mut output = vec![0.0f32; 512];
model.process(&input, &mut output);Re-exports§
Modules§
- convert
- NAM model → pedal user AMP data: the official app’s converter, reimplemented (docs/05).
- optimise
- Optimised conversion: fit the two filters so the pedal itself sounds like the model (docs/05).
Structs§
- Model
- A loaded model, ready to process audio (mono, at its sample rate, normally 48 kHz).
- WaveNet
- A NAM WaveNet (mono in, mono out).