Processor ownership and lifecycle¶
The processing thread exclusively owns mutable DSP state. Preparation validates sample rate, channel layout, maximum frames, and event capacity, and may allocate storage. Stop callbacks before preparing again or deactivating.
The lifecycle is create, prepare, process or reset, then deactivate. A failed gain preparation leaves the processor inactive. Reset preserves preparation and requested parameter values while snapping smoothing to the latest request. Deactivation preserves that request for the next activation.
The reference gain accepts mono/stereo effects. Foundation also represents no-input instruments and up to 64 channels per direction, plus eight auxiliary buses; contract tests exercise those boundaries, the separate public sine/performance references and CLAP/VST3/LV2 profiles exercise their stated subsets. See MIDI and the format guides.