pub struct NoteExpressionInfo {
pub kind: NoteExpressionType,
pub title: String,
pub short_title: String,
pub units: String,
pub default_value: f64,
pub min: f64,
pub max: f64,
pub step_count: i32,
pub is_bipolar: bool,
pub is_one_shot: bool,
pub is_absolute: bool,
}Expand description
A note-expression dimension a plugin advertises via INoteExpressionController
(from Plugin::note_expressions).
Fields§
§kind: NoteExpressionTypeWhich expression dimension this is.
title: StringDisplay title (e.g. “Tuning”).
short_title: StringShort title.
units: StringUnits string (may be empty).
default_value: f64Default normalized value.
min: f64Minimum normalized value.
max: f64Maximum normalized value.
step_count: i32Discrete step count (0 = continuous).
is_bipolar: boolWhether the dimension is bipolar (centered at 0.5).
is_one_shot: boolWhether it’s a one-shot (applied once at note start).
is_absolute: boolWhether the value is absolute (vs relative to the note’s base).
Trait Implementations§
Source§impl Clone for NoteExpressionInfo
impl Clone for NoteExpressionInfo
Source§fn clone(&self) -> NoteExpressionInfo
fn clone(&self) -> NoteExpressionInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NoteExpressionInfo
impl Debug for NoteExpressionInfo
Source§impl<'de> Deserialize<'de> for NoteExpressionInfo
impl<'de> Deserialize<'de> for NoteExpressionInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for NoteExpressionInfo
impl PartialEq for NoteExpressionInfo
Source§impl Serialize for NoteExpressionInfo
impl Serialize for NoteExpressionInfo
impl StructuralPartialEq for NoteExpressionInfo
Auto Trait Implementations§
impl Freeze for NoteExpressionInfo
impl RefUnwindSafe for NoteExpressionInfo
impl Send for NoteExpressionInfo
impl Sync for NoteExpressionInfo
impl Unpin for NoteExpressionInfo
impl UnsafeUnpin for NoteExpressionInfo
impl UnwindSafe for NoteExpressionInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more