Enum midi_file::core::StatusType
source · #[repr(u8)]pub enum StatusType {
NoteOff = 8,
NoteOn = 9,
PolyPressure = 10,
ControlOrSelectChannelMode = 11,
Program = 12,
ChannelPressure = 13,
PitchBend = 14,
System = 15,
}
Expand description
Represents the status byte types in Table I “Summary of Status Bytes” from the MIDI specification.
Variants§
NoteOff = 8
0x8
: a Note Off
message.
NoteOn = 9
0x9
: a Note On (a velocity of 0 = Note Off)
message.
PolyPressure = 10
0xA
: a Polyphonic key pressure/Aftertouch
message.
ControlOrSelectChannelMode = 11
0xB
: a Control change
message or a Channel Mode
message. Channel Mode messages are
sent under the same Status Byte as the Control Change messages (BnH). They are
differentiated by the first data byte which will have a value from 121 to 127 for Channel
Mode messages.
Program = 12
0xC
: a Program change
message.
ChannelPressure = 13
0xD
: a Channel pressure/After touch
message.
PitchBend = 14
0xE
: a Pitch bend change
message.
System = 15
0xF
: a System Message
.
Trait Implementations§
source§impl Clone for StatusType
impl Clone for StatusType
source§fn clone(&self) -> StatusType
fn clone(&self) -> StatusType
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 StatusType
impl Debug for StatusType
source§impl Default for StatusType
impl Default for StatusType
source§fn default() -> StatusType
fn default() -> StatusType
Returns the “default value” for a type. Read more
source§impl Hash for StatusType
impl Hash for StatusType
source§impl Ord for StatusType
impl Ord for StatusType
source§fn cmp(&self, other: &StatusType) -> Ordering
fn cmp(&self, other: &StatusType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for StatusType
impl PartialEq for StatusType
source§impl PartialOrd for StatusType
impl PartialOrd for StatusType
source§impl TryFrom<u8> for StatusType
impl TryFrom<u8> for StatusType
impl Copy for StatusType
impl Eq for StatusType
impl StructuralPartialEq for StatusType
Auto Trait Implementations§
impl Freeze for StatusType
impl RefUnwindSafe for StatusType
impl Send for StatusType
impl Sync for StatusType
impl Unpin for StatusType
impl UnwindSafe for StatusType
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)