AUDIO
Source snapshot · 12 October 2026

Extended portable processing

Native-precision main-bus CLAP adapter

MainBusBridge<P, S> supplies a separate f32/f64 main-bus adapter for effects or no-input instruments, with 0..64 inputs and 1..64 outputs. Prepare at most 65,536 frames and 1,024 events. Input/output scratch is separate; legal input/output aliases copy before DSP runs. Native precision matches the host buffer exactly; wrong or dual precision rejects and silences every supplied output. No sample conversion occurs. Maximum f64 scratch is 64 MiB. Preparation/drop happen outside audio; process/flush/reset do not allocate, block or perform I/O.

An optional selected note-port index translates validated MIDI short messages with timestamps. Status determines length; three-byte CLAP padding beyond it is ignored. Other-port MIDI and unsupported kinds are ignored but all timestamps and total event counts validate. Global parameter mapping retains existing semantics. Complete UMP packets also retain numeric words and timing on the selected port. Unused words in the fixed CLAP array are ignored. Flush applies only parameters. CLAP note IDs/wildcards, pointer-based SysEx, modulation and auxiliary buses are pending. Exporters must declare only implemented ports/precision/dialects; the original gain adapter is unchanged. Block-start transport continuity follows the rules above.

Fixtures exercise no-input synthesis, invalid-event preservation, exact f64 64-channel copying and prepared heap behavior. The sine CLAP reference consumes the f32 path through a built native bundle. This does not establish arbitrary DAW f64/multichannel compatibility. See decision 0040.