pub enum MidiEventKind {
Show 13 variants
NoteOn(NoteOn),
NoteOff(NoteOff),
PolyPressure(PolyPressure),
ControlChange(ControlChange),
PitchBend(PitchBend),
ChannelPressure(ChannelPressure),
ProgramChange(ProgramChange),
SysEx(Box<SysEx>),
NoteExpressionValue(NoteExpressionValue),
NoteExpressionInt(NoteExpressionInt),
NoteExpressionText(NoteExpressionText),
ChordInfo(ChordInfo),
ScaleInfo(ScaleInfo),
}Expand description
MIDI event types.
Most variants are small (8-32 bytes). The SysEx variant uses Box<SysEx>
to avoid bloating the enum size and prevent stack overflow.
Variants§
NoteOn(NoteOn)
Note on event.
NoteOff(NoteOff)
Note off event.
PolyPressure(PolyPressure)
Polyphonic key pressure (per-note aftertouch).
ControlChange(ControlChange)
Control change (CC).
PitchBend(PitchBend)
Pitch bend.
ChannelPressure(ChannelPressure)
Channel pressure (channel aftertouch).
ProgramChange(ProgramChange)
Program change.
SysEx(Box<SysEx>)
System Exclusive (SysEx) message.
Uses Box<SysEx> to avoid bloating the enum size. SysEx messages are
relatively rare compared to notes and CCs, so the heap allocation is acceptable.
NoteExpressionValue(NoteExpressionValue)
Per-note expression value (MPE, f64 precision).
NoteExpressionInt(NoteExpressionInt)
Per-note expression integer value.
NoteExpressionText(NoteExpressionText)
Per-note expression text.
ChordInfo(ChordInfo)
Chord information from DAW chord track.
ScaleInfo(ScaleInfo)
Scale/key information from DAW.
Trait Implementations§
Source§impl Clone for MidiEventKind
impl Clone for MidiEventKind
Source§fn clone(&self) -> MidiEventKind
fn clone(&self) -> MidiEventKind
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 MidiEventKind
impl Debug for MidiEventKind
Source§impl PartialEq for MidiEventKind
impl PartialEq for MidiEventKind
impl StructuralPartialEq for MidiEventKind
Auto Trait Implementations§
impl Freeze for MidiEventKind
impl RefUnwindSafe for MidiEventKind
impl Send for MidiEventKind
impl Sync for MidiEventKind
impl Unpin for MidiEventKind
impl UnwindSafe for MidiEventKind
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