Enum apres::MIDIEvent[][src]

pub enum MIDIEvent {
Show variants SequenceNumber(u16), Text(String), CopyRightNotice(String), TrackName(String), InstrumentName(String), Lyric(String), Marker(String), CuePoint(String), ChannelPrefix(u8), SetTempo(u32), SMPTEOffset(u8u8u8u8u8), TimeSignature(u8u8u8u8), KeySignature(String), SequencerSpecific(Vec<u8>), NoteOn(u8u8u8), NoteOff(u8u8u8), AfterTouch(u8u8u8), BankSelect(u8u8), BankSelectLSB(u8u8), ModulationWheel(u8u8), ModulationWheelLSB(u8u8), BreathController(u8u8), BreathControllerLSB(u8u8), FootPedal(u8u8), FootPedalLSB(u8u8), PortamentoTime(u8u8), PortamentoTimeLSB(u8u8), DataEntry(u8u8), DataEntryLSB(u8u8), Volume(u8u8), VolumeLSB(u8u8), Balance(u8u8), BalanceLSB(u8u8), Pan(u8u8), PanLSB(u8u8), Expression(u8u8), ExpressionLSB(u8u8), EffectControl1(u8u8), EffectControl1LSB(u8u8), EffectControl2(u8u8), EffectControl2LSB(u8u8), GeneralPurpose1(u8u8), GeneralPurpose1LSB(u8u8), GeneralPurpose2(u8u8), GeneralPurpose2LSB(u8u8), GeneralPurpose3(u8u8), GeneralPurpose3LSB(u8u8), GeneralPurpose4(u8u8), GeneralPurpose4LSB(u8u8), HoldPedal(u8u8), Portamento(u8u8), Sustenuto(u8u8), SoftPedal(u8u8), Legato(u8u8), Hold2Pedal(u8u8), SoundVariation(u8u8), SoundTimbre(u8u8), SoundReleaseTime(u8u8), SoundAttack(u8u8), SoundBrightness(u8u8), SoundControl1(u8u8), SoundControl2(u8u8), SoundControl3(u8u8), SoundControl4(u8u8), SoundControl5(u8u8), GeneralPurpose5(u8u8), GeneralPurpose6(u8u8), GeneralPurpose7(u8u8), GeneralPurpose8(u8u8), EffectsLevel(u8u8), TremuloLevel(u8u8), ChorusLevel(u8u8), CelesteLevel(u8u8), PhaserLevel(u8u8), DataIncrement(u8), DataDecrement(u8), RegisteredParameterNumber(u8u8), RegisteredParameterNumberLSB(u8u8), NonRegisteredParameterNumber(u8u8), NonRegisteredParameterNumberLSB(u8u8), AllControllersOff(u8), LocalControl(u8u8), AllNotesOff(u8), AllSoundOff(u8), OmniOff(u8), OmniOn(u8), MonophonicOperation(u8u8), PolyphonicOperation(u8), ControlChange(u8u8u8), ProgramChange(u8u8), ChannelPressure(u8u8), PitchWheelChange(u8f64), SystemExclusive(Vec<u8>), MTCQuarterFrame(u8u8), SongPositionPointer(u16), SongSelect(u8), TimeCode(f32u8u8u8u8), EndOfTrack, TuneRequest, MIDIClock, MIDIStart, MIDIContinue, MIDIStop, ActiveSense, Reset,
}

Variants

SequenceNumber(u16)
Text(String)
CopyRightNotice(String)
TrackName(String)
InstrumentName(String)
Lyric(String)
Marker(String)
CuePoint(String)
ChannelPrefix(u8)
SetTempo(u32)
SMPTEOffset(u8u8u8u8u8)
TimeSignature(u8u8u8u8)
KeySignature(String)
SequencerSpecific(Vec<u8>)
NoteOn(u8u8u8)
NoteOff(u8u8u8)
AfterTouch(u8u8u8)
BankSelect(u8u8)
BankSelectLSB(u8u8)
ModulationWheel(u8u8)
ModulationWheelLSB(u8u8)
BreathController(u8u8)
BreathControllerLSB(u8u8)
FootPedal(u8u8)
FootPedalLSB(u8u8)
PortamentoTime(u8u8)
PortamentoTimeLSB(u8u8)
DataEntry(u8u8)
DataEntryLSB(u8u8)
Volume(u8u8)
VolumeLSB(u8u8)
Balance(u8u8)
BalanceLSB(u8u8)
Pan(u8u8)
PanLSB(u8u8)
Expression(u8u8)
ExpressionLSB(u8u8)
EffectControl1(u8u8)
EffectControl1LSB(u8u8)
EffectControl2(u8u8)
EffectControl2LSB(u8u8)
GeneralPurpose1(u8u8)
GeneralPurpose1LSB(u8u8)
GeneralPurpose2(u8u8)
GeneralPurpose2LSB(u8u8)
GeneralPurpose3(u8u8)
GeneralPurpose3LSB(u8u8)
GeneralPurpose4(u8u8)
GeneralPurpose4LSB(u8u8)
HoldPedal(u8u8)
Portamento(u8u8)
Sustenuto(u8u8)
SoftPedal(u8u8)
Legato(u8u8)
Hold2Pedal(u8u8)
SoundVariation(u8u8)
SoundTimbre(u8u8)
SoundReleaseTime(u8u8)
SoundAttack(u8u8)
SoundBrightness(u8u8)
SoundControl1(u8u8)
SoundControl2(u8u8)
SoundControl3(u8u8)
SoundControl4(u8u8)
SoundControl5(u8u8)
GeneralPurpose5(u8u8)
GeneralPurpose6(u8u8)
GeneralPurpose7(u8u8)
GeneralPurpose8(u8u8)
EffectsLevel(u8u8)
TremuloLevel(u8u8)
ChorusLevel(u8u8)
CelesteLevel(u8u8)
PhaserLevel(u8u8)
DataIncrement(u8)
DataDecrement(u8)
RegisteredParameterNumber(u8u8)
RegisteredParameterNumberLSB(u8u8)
NonRegisteredParameterNumber(u8u8)
NonRegisteredParameterNumberLSB(u8u8)
AllControllersOff(u8)
LocalControl(u8u8)
AllNotesOff(u8)
AllSoundOff(u8)
OmniOff(u8)
OmniOn(u8)
MonophonicOperation(u8u8)
PolyphonicOperation(u8)
ControlChange(u8u8u8)
ProgramChange(u8u8)
ChannelPressure(u8u8)
PitchWheelChange(u8f64)
SystemExclusive(Vec<u8>)
MTCQuarterFrame(u8u8)
SongPositionPointer(u16)
SongSelect(u8)
TimeCode(f32u8u8u8u8)
EndOfTrack
TuneRequest
MIDIClock
MIDIStart
MIDIContinue
MIDIStop
ActiveSense
Reset

Trait Implementations

impl Clone for MIDIEvent[src]

fn clone(&self) -> MIDIEvent[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for MIDIEvent[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl MIDIBytes for MIDIEvent[src]

fn as_bytes(&self) -> Vec<u8>[src]

fn from_bytes(
    bytes: &mut Vec<u8>,
    default_byte: u8
) -> Result<MIDIEvent, ApresError>
[src]

impl PartialEq<MIDIEvent> for MIDIEvent[src]

fn eq(&self, other: &MIDIEvent) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &MIDIEvent) -> bool[src]

This method tests for !=.

impl StructuralPartialEq for MIDIEvent[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

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]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.