[−][src]Enum lv2rs_midi::MidiMessage
A MIDI message.
Please consult the MIDI reference for information on how to use these messages.
Variants
NoteOff
Stop playing a note.
Fields of NoteOff
NoteOn
Start playing a note.
Fields of NoteOn
PolyKeyPressure
Change the pressure on a key.
Fields of PolyKeyPressure
ControlChange
Change the value of a controlled number.
Fields of ControlChange
ProgramChange
Change the active program.
Fields of ProgramChange
ChannelPressure
Change the pressure of the channel.
Fields of ChannelPressure
PitchBendChange
Change the pitch bend.
Fields of PitchBendChange
TimeCodeQuarterFrame
Synchronisation message.
Fields of TimeCodeQuarterFrame
SongPositionPointer
Change the current position in a song.
Fields of SongPositionPointer
position: u14
SongSelect
Select another song.
Fields of SongSelect
song: u7
TuneRequest
Tune analog oscillators.
TimingClock
A step of the timing clock.
Start
Start the playback.
Continue
Continue the playback.
Stop
Stop the playback.
ActiveSensing
Active sensing message.
SystemReset
Reset the system.
Methods
impl MidiMessage
[src]
pub fn try_from(slice: &[u8]) -> Result<Self, TryFromError>
[src]
Try create a MidiMessage
from a slice of bytes.
This is pretty straight forward: Try to parse the data and create a MidiMessage
object
for it. Please note that this method does not support system-exclusive message due to
their unorthodox nature. These are handled by the
SystemExclusiveMessage
struct.
The error cases are described in the TryFromError
enum.
Auto Trait Implementations
impl Send for MidiMessage
impl Sync for MidiMessage
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom 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 for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,