Skip to main content

compile

Function compile 

Source
pub fn compile(
    source: &str,
    catalog: impl Fn(&str) -> Option<NodeSpec>,
) -> Result<CompiledPatch, CompileError>
Expand description

Compile source text against a catalog of available processor types.

The host supplies named signal ports and interprets the type-specific options on each returned node. Patch compilation runs outside the audio loop.

ยงErrors

Rejects malformed declarations, missing or ambiguous bindings, cycles, and graphs exceeding the bytecode format limits.