pub struct NoteExpressionValue {
pub note_id: NoteId,
pub expression_type: u32,
pub value: f64,
}Expand description
Note Expression value event (f64 precision).
Used for MPE-style per-note modulation. Each playing note can have independent expression values for volume, pan, tuning, etc.
Fields§
§note_id: NoteIdNote ID this expression applies to.
expression_type: u32Expression type (see note_expression module for constants).
value: f64Normalized value. Range depends on expression type:
- Most types: 0.0 to 1.0
- Tuning: -0.5 to 0.5 (semitones, can exceed for wider range)
Trait Implementations§
Source§impl Clone for NoteExpressionValue
impl Clone for NoteExpressionValue
Source§fn clone(&self) -> NoteExpressionValue
fn clone(&self) -> NoteExpressionValue
Returns a duplicate of the value. Read more
1.0.0 · 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 NoteExpressionValue
impl Debug for NoteExpressionValue
Source§impl PartialEq for NoteExpressionValue
impl PartialEq for NoteExpressionValue
impl Copy for NoteExpressionValue
impl StructuralPartialEq for NoteExpressionValue
Auto Trait Implementations§
impl Freeze for NoteExpressionValue
impl RefUnwindSafe for NoteExpressionValue
impl Send for NoteExpressionValue
impl Sync for NoteExpressionValue
impl Unpin for NoteExpressionValue
impl UnwindSafe for NoteExpressionValue
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