[−][src]Enum midi_control::message::MidiMessage
MIDI messages are what is being sent or received on the MIDI system
Variants
We don't know that message.
Note on.
Note off.
Pressure for notes (aftertouch).
ControlChange(Channel, ControlEvent)
Control value changed.
Program change.
Channel pressure.
Pitch bending. LSB and MSB of the change.
SysEx(SysExEvent)
System extension event.
Implementations
impl MidiMessage
[src]
pub fn get_channel(&self) -> Channel
[src]
Return the channel of the MIDI command This is a convenience helper to avoid having to destructure. Note: a SysEx message doesn't have a channel.
Trait Implementations
impl Debug for MidiMessage
[src]
impl<'_> From<&'_ [u8]> for MidiMessage
[src]
fn from(data: &[u8]) -> MidiMessage
[src]
Create a MidiMessage from raw data as received from the MIDI driver.
impl Into<Vec<u8>> for MidiMessage
[src]
fn into(self) -> Vec<u8>
[src]
Convert the MidiMessage into a raw buffer suited to be sent, to the MIDI device. An empty vector mean nothing could be made.
impl PartialEq<MidiMessage> for MidiMessage
[src]
fn eq(&self, other: &MidiMessage) -> bool
[src]
fn ne(&self, other: &MidiMessage) -> bool
[src]
impl StructuralPartialEq for MidiMessage
[src]
Auto Trait Implementations
impl RefUnwindSafe for MidiMessage
impl Send for MidiMessage
impl Sync for MidiMessage
impl Unpin for MidiMessage
impl UnwindSafe for MidiMessage
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,