Enum midi_msg::MidiMsg [−][src]
The primary interface of this library. Used to encode MIDI messages.
Variants
Channel-level messages that act on a voice.
Fields of ChannelVoice
channel: Channelmsg: ChannelVoiceMsgLike ChannelVoice, but with the first “status” byte of the message omitted.
When these “running status” messages are sent, the receiver must treat them
as implicitly referring to the previous “status” received.
For instance, if a ChannelVoiceMsg::NoteOn message is received, and then
the next message does not contain a status byte, it implicitly refers to a
ChannelVoiceMsg::NoteOn.
Fields of RunningChannelVoice
channel: Channelmsg: ChannelVoiceMsgChannel-level messages that should alter the mode of the receiver.
Fields of ChannelMode
channel: Channelmsg: ChannelModeMsgLike RunningChannelVoice but for ChannelMode
Fields of RunningChannelMode
channel: Channelmsg: ChannelModeMsgA fairly limited set of messages, generally for device synchronization.
Fields of SystemCommon
msg: SystemCommonMsgAnother limited set of messages used for device synchronization.
Fields of SystemRealTime
msg: SystemRealTimeMsgThe bulk of the MIDI spec lives here, in “Universal System Exclusive” messages. Also the home of manufacturer-specific messages.
Fields of SystemExclusive
msg: SystemExclusiveMsgImplementations
impl MidiMsg[src]
pub fn to_midi(&self) -> Vec<u8>[src]
Turn a MidiMsg into a series of bytes.
pub fn messages_to_midi(msgs: &[Self]) -> Vec<u8>[src]
Turn a set of MidiMsgs into a series of bytes, with fewer allocations than
repeatedly concatenating the results of to_midi.
pub fn extend_midi(&self, v: &mut Vec<u8>)[src]
Given a Vec<u8>, append this MidiMsg to it.
Trait Implementations
impl Clone for MidiMsg[src]
impl Debug for MidiMsg[src]
impl PartialEq<MidiMsg> for MidiMsg[src]
impl StructuralPartialEq for MidiMsg[src]
Auto Trait Implementations
impl RefUnwindSafe for MidiMsg
impl Send for MidiMsg
impl Sync for MidiMsg
impl Unpin for MidiMsg
impl UnwindSafe for MidiMsg
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,
pub 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> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
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.
pub 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>,