Skip to main content

Crate truce

Crate truce 

Source

Re-exports§

pub use truce_core as core;
pub use truce_gui as gui;
pub use truce_params as params;
pub use truce_clap as clap_wrapper;

Modules§

prelude
Default prelude. Same shape as prelude32 - f32 audio path. Use whichever name reads better at the import site.
prelude32
f32-flavoured prelude. param.read() resolves to f32 via FloatParamReadF32; the audio buffer is f32 (the host wire format for nearly every plugin format).
prelude64
f64-flavoured prelude. The audio buffer is f64 end-to-end (high-order biquads, oscillator phase accumulators, long-running cumulative state where 24-bit f32 precision shows up audibly). The format wrapper widens the host’s audio buffer to f64 at the block boundary and narrows on the way out.
prelude64m
Mixed-precision prelude (m for “mixed”). The audio buffer stays at host wire precision (f32 - no wrapper-boundary widening cost) but param.read() returns f64 so intermediary math (filter coefficients, phase accumulators, long-tail feedback) runs at f64 precision.

Macros§

plugin
Export a plugin to all active format targets.

Derive Macros§

ParamEnum
Derive ParamEnum for a C-like enum.
Params
Panics
State
Derive binary serialization for a custom state struct.