Skip to main content

extract_precomputed

Function extract_precomputed 

Source
pub fn extract_precomputed(
    compiled: &CompiledPedal,
    pedal_source: &str,
    sample_rate: f64,
) -> PrecomputedScattering
Expand description

Extract a PrecomputedScattering from a compiled pedal.

Iterates over the compiled pedal’s MultiNL stages and extracts scattering matrices, port resistances, VS injection vectors, and pot interpolation tables.

§Arguments

  • compiled – the compiled pedal processor
  • pedal_source – the original .pedal source text (used to compute the hash)
  • sample_rate – the sample rate used during compilation (Hz)