pub struct MidiMessage<'a>(/* private fields */);Expand description
A MIDI message borrowed from REAPER.
Trait Implementations§
Source§impl<'a> Clone for MidiMessage<'a>
impl<'a> Clone for MidiMessage<'a>
Source§fn clone(&self) -> MidiMessage<'a>
fn clone(&self) -> MidiMessage<'a>
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<'a> Debug for MidiMessage<'a>
impl<'a> Debug for MidiMessage<'a>
Source§impl<'a> Hash for MidiMessage<'a>
impl<'a> Hash for MidiMessage<'a>
Source§impl<'a> PartialEq for MidiMessage<'a>
impl<'a> PartialEq for MidiMessage<'a>
Source§impl<'a> ShortMessage for MidiMessage<'a>
impl<'a> ShortMessage for MidiMessage<'a>
Source§fn status_byte(&self) -> u8
fn status_byte(&self) -> u8
Returns the status byte.
Source§fn data_byte_1(&self) -> U7
fn data_byte_1(&self) -> U7
Returns the first data byte.
Source§fn data_byte_2(&self) -> U7
fn data_byte_2(&self) -> U7
Returns the second data byte.
Source§fn to_bytes(&self) -> (u8, U7, U7)
fn to_bytes(&self) -> (u8, U7, U7)
Returns the status byte and the two data bytes as a tuple. Read more
Source§fn to_other<O>(&self) -> Owhere
O: ShortMessageFactory,
fn to_other<O>(&self) -> Owhere
O: ShortMessageFactory,
Converts this message to a short message of another type.
Source§fn to_structured(&self) -> StructuredShortMessage
fn to_structured(&self) -> StructuredShortMessage
Converts this message to a
StructuredShortMessage, which is ideal for matching.Source§fn type(&self) -> ShortMessageType
fn type(&self) -> ShortMessageType
Returns the type of this message.
Source§fn super_type(&self) -> MessageSuperType
fn super_type(&self) -> MessageSuperType
Returns the super type of this message.
Source§fn main_category(&self) -> MessageMainCategory
fn main_category(&self) -> MessageMainCategory
Returns the main category of this message.
Source§fn is_note_on(&self) -> bool
fn is_note_on(&self) -> bool
Returns whether this message is a note-on in a practical sense. That means, it also returns
false if the message type is NoteOn but the velocity is zero.Source§fn is_note_off(&self) -> bool
fn is_note_off(&self) -> bool
Returns whether this message is a note-off in a practical sense. That means, it also returns
true if the message type is NoteOn but the velocity is zero.Source§fn key_number(&self) -> Option<KeyNumber>
fn key_number(&self) -> Option<KeyNumber>
Returns the key number of this message if applicable.
Source§fn controller_number(&self) -> Option<ControllerNumber>
fn controller_number(&self) -> Option<ControllerNumber>
Returns the controller number of this message if applicable.
Source§fn control_value(&self) -> Option<U7>
fn control_value(&self) -> Option<U7>
Returns the control value of this message if applicable.
Source§fn program_number(&self) -> Option<U7>
fn program_number(&self) -> Option<U7>
Returns the program number of this message if applicable.
Source§fn pressure_amount(&self) -> Option<U7>
fn pressure_amount(&self) -> Option<U7>
Returns the pressure amount of this message if applicable.
Source§fn pitch_bend_value(&self) -> Option<U14>
fn pitch_bend_value(&self) -> Option<U14>
Returns the pitch bend value of this message if applicable.
impl<'a> Copy for MidiMessage<'a>
impl<'a> Eq for MidiMessage<'a>
impl<'a> StructuralPartialEq for MidiMessage<'a>
Auto Trait Implementations§
impl<'a> Freeze for MidiMessage<'a>
impl<'a> RefUnwindSafe for MidiMessage<'a>
impl<'a> Send for MidiMessage<'a>
impl<'a> Sync for MidiMessage<'a>
impl<'a> Unpin for MidiMessage<'a>
impl<'a> UnwindSafe for MidiMessage<'a>
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