pub struct Vst3ParamInfo {
pub id: u32,
pub stable_id: String,
pub title: String,
pub units: String,
pub min: f64,
pub max: f64,
pub default: f64,
pub automatable: bool,
}Expand description
A VST3 parameter declaration.
Captures the host-facing identity and value range of one automatable
parameter; to_parameter_descriptor
lowers it into the shared plugin-core ParameterDescriptor.
Fields§
§id: u32The numeric VST3 parameter id.
stable_id: StringThe stable string id used for persistence and lookup.
title: StringThe human-readable parameter title.
units: StringThe display units, empty when the parameter is unitless.
min: f64The minimum parameter value.
max: f64The maximum parameter value.
default: f64The default value, clamped into the min..=max range.
automatable: boolWhether the host may automate the parameter.
Implementations§
Source§impl Vst3ParamInfo
impl Vst3ParamInfo
Sourcepub fn new(
id: u32,
stable_id: impl Into<String>,
title: impl Into<String>,
min: f64,
max: f64,
default: f64,
) -> Result<Self>
pub fn new( id: u32, stable_id: impl Into<String>, title: impl Into<String>, min: f64, max: f64, default: f64, ) -> Result<Self>
Builds a parameter, validating ids and range.
Requires non-empty stable_id and title and min <= max; default
is clamped into the range, units starts empty, and automatable
defaults to true. Returns an error when validation fails.
Sourcepub fn to_parameter_descriptor(&self) -> Result<ParameterDescriptor>
pub fn to_parameter_descriptor(&self) -> Result<ParameterDescriptor>
Lowers this parameter into a plugin-core ParameterDescriptor with a
Float kind.
Trait Implementations§
Source§impl Clone for Vst3ParamInfo
impl Clone for Vst3ParamInfo
Source§fn clone(&self) -> Vst3ParamInfo
fn clone(&self) -> Vst3ParamInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Vst3ParamInfo
impl Debug for Vst3ParamInfo
Source§impl PartialEq for Vst3ParamInfo
impl PartialEq for Vst3ParamInfo
Source§fn eq(&self, other: &Vst3ParamInfo) -> bool
fn eq(&self, other: &Vst3ParamInfo) -> bool
self and other values to be equal, and is used by ==.