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,
},
Sostenuto {
down: bool,
channel: Channel,
},
AllNotesOff {
channel: Channel,
},
AllSoundOff {
channel: Channel,
},
ResetControllers {
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.
Sostenuto
Sets the sostenuto pedal state on a channel.
AllNotesOff
Releases every key-down note on one channel, subject to hold pedals.
AllSoundOff
Silences every sounding note on one channel immediately.
ResetControllers
Resets channel controllers and releases notes held only by pedals.
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
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more