Skip to main content

Module production

Module production 

Source
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§

DelayLine
Circular delay line (caller-owned buffer).
ProcessPlan
Compiled execution plan for one audio block (no graph walk in callback).
StatefulMixer
Persistent allocation-free mixing of aligned mono tracks into stereo. Call reset after 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.
TrackState

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).