#[non_exhaustive]#[repr(i32)]pub enum NoteExpressionType {
Volume = 0,
Pan = 1,
Tuning = 2,
Vibrato = 3,
Expression = 4,
Brightness = 5,
Pressure = 6,
}Expand description
The types of expressions a NoteExpressionEvent can carry.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Volume = 0
A volume change.
with 0 < x <= 4, plain = 20 * log(x)
Pan = 1
A panning change.
0 is left, 0.5 is center, and 1 is right.
Tuning = 2
A tuning change.
This is relative and is expressed in semitones, from -120 to +120.
Semitones are in equal temperament; the resulting note would be
retuned by 100 * event.value() cents.
Vibrato = 3
A vibrato change.
Values for this event type are in the 0..=1 range.
Expression = 4
An “expression” change.
Values for this event type are in the 0..=1 range.
Brightness = 5
A “brightness” change.
Values for this event type are in the 0..=1 range.
Pressure = 6
A “pressure” change.
Values for this event type are in the 0..=1 range.
Implementations§
Source§impl NoteExpressionType
impl NoteExpressionType
Sourcepub const fn from_raw(raw: i32) -> Option<NoteExpressionType>
pub const fn from_raw(raw: i32) -> Option<NoteExpressionType>
Returns the NoteExpressionType matching the given raw, C-FFI compatible expression
value.
This returns None if the given value does not match any known NoteExpressionType.
Sourcepub const fn into_raw(self) -> i32
pub const fn into_raw(self) -> i32
Returns the raw, C-FFI compatible expression value corresponding to this NoteExpressionType.
Trait Implementations§
Source§impl Clone for NoteExpressionType
impl Clone for NoteExpressionType
Source§fn clone(&self) -> NoteExpressionType
fn clone(&self) -> NoteExpressionType
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more