pub struct ParamDescriptor {
pub id: u32,
pub name: &'static str,
pub min: f64,
pub max: f64,
pub default: f64,
pub unit: ParamUnit,
pub flags: ParamFlags,
pub step: f64,
pub group: Option<u32>,
pub help: &'static str,
}Expand description
Describes a single automatable parameter.
This is the self-describing interface that lets any UI (TUI, web, etc.) enumerate and control a processor’s parameters without hardcoding.
Fields§
§id: u32Opaque id used with Processor::get_param / Processor::set_param.
name: &'static strHuman-readable label for automation UIs.
min: f64Minimum allowed value (inclusive unless a processor documents otherwise).
max: f64Maximum allowed value (inclusive unless documented otherwise).
default: f64Value after Processor::reset or construction.
unit: ParamUnitHow to display and interpret the number (e.g. dB vs linear gain).
flags: ParamFlagsKnob curve and range shape hints.
step: f64Coarse nudge increment for arrow-key editing. UIs use step / 10 for
fine adjustments. Zero means “let the UI pick a sensible default”.
group: Option<u32>Which ParamGroup this parameter belongs to, if any.
help: &'static strShort help text shown in info panels when hovering this parameter.
Trait Implementations§
Source§impl Clone for ParamDescriptor
impl Clone for ParamDescriptor
Source§fn clone(&self) -> ParamDescriptor
fn clone(&self) -> ParamDescriptor
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more