Skip to main content

Crate truce_params

Crate truce_params 

Source

Re-exports§

pub use sample::Float;
pub use sample::Sample;

Modules§

sample
Float and Sample - the precision-routing traits that let plugin code stay in one float type without per-call-site casts.

Structs§

BoolParam
A boolean parameter.
EnumParam
An enum parameter.
FloatParam
A continuous floating-point parameter.
IntParam
An integer parameter.
MeterSlot
A meter slot with an auto-assigned ID.
ParamFlags
ParamInfo
Metadata for a single parameter, used by format wrappers.
Smoother
Per-parameter smoother. All methods take &self for interior mutability, enabling use through Arc<Params>.

Enums§

ParamRange
Defines how a parameter maps between plain and normalized values.
ParamUnit
ParamValueKind
Which strongly-typed *Param constructor produced this ParamInfo. The #[derive(Params)] macro sets it from the field type so format-side code can branch on the original typing without re-deriving it from range / unit.
SmoothingStyle
Smoothing style for a parameter.

Traits§

FloatParamReadF32
Precision-routed read accessors for FloatParam at f32.
FloatParamReadF64
Precision-routed read accessors for FloatParam at f64. See FloatParamReadF32 for the contract.
ParamEnum
Trait for enums used as parameters.
Params
Trait implemented by #[derive(Params)] on a struct. Format wrappers use this to enumerate, read, and write parameters.

Functions§

format_param_value
Format a plain parameter value as a display string based on the parameter’s unit.