adac.flamo_to_faust#
- adac.flamo_to_faust(model: Any, fs: float, *, name: str = 'FDN', controls: dict[str, Any] | None = None) str[source]#
convert a flamo model directly to faust dsp source code.
combines flamo_to_json() and json_to_faust() in a single call. equivalent to json_to_faust(flamo_to_json(model, fs, name=name)).
- Parameters:
model (flamo model) – a Shell, Recursion, Series, Parallel, or leaf dsp module.
fs (float) – sampling rate in hz. used to convert delay lengths from seconds to integer samples.
name (str) – name for the dsp, appears in the generated faust header comment.
controls (dict, optional) – macro controls to expose as sliders (“rt60”, “dry_wet”, “pre_delay”), see json_to_faust(). these are post-hoc performance controls layered onto the trained model, not the trained parameters themselves.
- Returns:
faust_code – complete faust dsp source code ready for compilation or interpretation.
- Return type: