pub struct NoteExpressionState {
pub pitch_bend: f32,
pub timbre: f32,
pub aftertouch: f32,
}
Expand description
The current state of all note expression controllers for a voice.
See the documentation for [conformal_component::events::NoteExpression
] for
more information.
Fields§
§pitch_bend: f32
The current value of the pitch bend for this voice in semitones away from the root note.
timbre: f32
The current value of the “timbre” controller for this voice.
On many controllers, this represents the vertical or “y” position. This is referred to as “slide” in Ableton Live.
This value varies from 0 to 1, with 0 being neutral.
aftertouch: f32
The current value of the aftertouch controller for this voice.
This value varies from 0 to 1, with 0 being neutral.
Trait Implementations§
Source§impl Clone for NoteExpressionState
impl Clone for NoteExpressionState
Source§fn clone(&self) -> NoteExpressionState
fn clone(&self) -> NoteExpressionState
Returns a copy 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 NoteExpressionState
impl Debug for NoteExpressionState
Source§impl Default for NoteExpressionState
impl Default for NoteExpressionState
Source§fn default() -> NoteExpressionState
fn default() -> NoteExpressionState
Returns the “default value” for a type. Read more
Source§impl PartialEq for NoteExpressionState
impl PartialEq for NoteExpressionState
impl Copy for NoteExpressionState
impl StructuralPartialEq for NoteExpressionState
Auto Trait Implementations§
impl Freeze for NoteExpressionState
impl RefUnwindSafe for NoteExpressionState
impl Send for NoteExpressionState
impl Sync for NoteExpressionState
impl Unpin for NoteExpressionState
impl UnwindSafe for NoteExpressionState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more