Expand description
Swarm P — bounded production engine (zero-alloc process block + FX primitives).
Offline bounce uses the same process_block path as RT so deterministic FX
match sample-for-sample when automation is fixed.
Structs§
- Delay
Line - Circular delay line (caller-owned buffer).
- Process
Plan - Compiled execution plan for one audio block (no graph walk in callback).
- Stateful
Mixer - Persistent allocation-free mixing of aligned mono tracks into stereo.
Call
resetafter a discontinuous seek, track-slot reassignment or sample-rate change. Source scheduling, resampling, limiting and device playback remain host duties. Effect memory follows the input while bypassed: lowpass tracks the last source sample, while EQ and compressor retain their normal smoothers. Delay stores processed input even when bypassed; changes to its length read from that history, with no crossfade. This delay has no feedback or tail policy. - Track
State
Constants§
- MAX_
BLOCK - MAX_
DELAY_ SAMPLES - MAX_
MIX_ DELAY - Largest delay supported by the stateful block mixer, in frames.
- MAX_
TRACKS - Fixed-capacity track strip.
Functions§
- apply_
comp_ sample - Soft-knee compressor sample (stateful envelope in
env). - apply_
eq_ sample - One-pole peaking-ish shelf via gain around centre freq (reference quality).