pub enum PerformanceIntent {
NoteOn {
pitch: Pitch,
velocity: u8,
channel: Channel,
},
NoteOff {
pitch: Pitch,
velocity: u8,
channel: Channel,
},
Aftertouch {
pitch: Pitch,
pressure: u8,
channel: Channel,
},
PitchBend {
value: u16,
channel: Channel,
},
Sustain {
down: bool,
channel: Channel,
},
Parameter {
target: Symbol,
value: i64,
},
Panic,
}Expand description
A single live-performance gesture.
Enumerates the MIDI-style intents a PerformanceSource
can emit: note triggers, expression controls, the sustain pedal, parameter changes,
and an all-notes-off panic.
Variants§
NoteOn
Starts a note at the given pitch and velocity on a channel.
Fields
NoteOff
Releases a previously started note.
Fields
Aftertouch
Applies polyphonic key pressure to a sounding note.
Fields
PitchBend
Bends pitch on a channel by a 14-bit amount.
Sustain
Sets the sustain pedal state on a channel.
Parameter
Sets a named parameter to an integer value.
Panic
Requests an all-notes-off panic and pedal reset.
Implementations§
Source§impl PerformanceIntent
impl PerformanceIntent
Sourcepub fn kind_symbol(&self) -> Symbol
pub fn kind_symbol(&self) -> Symbol
Returns the qualified symbol identifying this intent’s kind.
Sourcepub fn kind_label(&self) -> &'static str
pub fn kind_label(&self) -> &'static str
Returns the short kebab-case label for this intent’s kind.
Trait Implementations§
Source§impl Clone for PerformanceIntent
impl Clone for PerformanceIntent
Source§fn clone(&self) -> PerformanceIntent
fn clone(&self) -> PerformanceIntent
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 PerformanceIntent
impl Debug for PerformanceIntent
impl Eq for PerformanceIntent
Source§impl PartialEq for PerformanceIntent
impl PartialEq for PerformanceIntent
impl StructuralPartialEq for PerformanceIntent
Auto Trait Implementations§
impl Freeze for PerformanceIntent
impl RefUnwindSafe for PerformanceIntent
impl Send for PerformanceIntent
impl Sync for PerformanceIntent
impl Unpin for PerformanceIntent
impl UnsafeUnpin for PerformanceIntent
impl UnwindSafe for PerformanceIntent
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