Enum midi_msg::UniversalRealTimeMsg

source ·
pub enum UniversalRealTimeMsg {
Show 21 variants TimeCodeFull(TimeCode), TimeCodeUserBits(UserBits), ShowControl(ShowControlMsg), BarMarker(BarMarker), TimeSignature(TimeSignature), TimeSignatureDelayed(TimeSignature), MasterVolume(u16), MasterBalance(u16), MasterFineTuning(i16), MasterCoarseTuning(i8), GlobalParameterControl(GlobalParameterControl), TimeCodeCueing(TimeCodeCueingMsg), MachineControlCommand(MachineControlCommandMsg), MachineControlResponse(MachineControlResponseMsg), TuningNoteChange(TuningNoteChange), ScaleTuning1Byte(ScaleTuning1Byte), ScaleTuning2Byte(ScaleTuning2Byte), ChannelPressureControllerDestination(ControllerDestination), PolyphonicKeyPressureControllerDestination(ControllerDestination), ControlChangeControllerDestination(ControlChangeControllerDestination), KeyBasedInstrumentControl(KeyBasedInstrumentControl),
}
Expand description

A diverse range of messages for real-time applications. Used by SystemExclusiveMsg::UniversalRealTime.

Variants§

§

TimeCodeFull(TimeCode)

For use when a SystemCommonMsg::TimeCodeQuarterFrame is not appropriate: When rewinding, fast-forwarding, or otherwise locating and cueing, where sending quarter frame messages continuously would be excessive.

§

TimeCodeUserBits(UserBits)

Provided for sending SMTPE “user bits”, which are application specific.

§

ShowControl(ShowControlMsg)

Used to control equipment for liver performances and installations.

§

BarMarker(BarMarker)

Indicates that the next MIDI clock message is the first clock of a new measure.

§

TimeSignature(TimeSignature)

Indicates a change in time signature, effective immediately (or on the next MIDI clock).

§

TimeSignatureDelayed(TimeSignature)

Indicates a change in time signature, effective upon receipt of the next BarMarker message.

§

MasterVolume(u16)

Change the volume of all sound, from 0 (volume off) to 16383.

§

MasterBalance(u16)

Change the balance of all sound, from 0 (hard left) to 8192 (center) to 16383 (hard right).

§

MasterFineTuning(i16)

A value from -8192-8191, used like Parameter::FineTuning, but affecting all channels.

Defined in CA-025.

§

MasterCoarseTuning(i8)

A value from -64-63, used like Parameter::CoarseTuning, but affecting all channels.

Defined in CA-025.

§

GlobalParameterControl(GlobalParameterControl)

Used to control parameters on a device that affect all sound, e.g. a global reverb.

§

TimeCodeCueing(TimeCodeCueingMsg)

Used to define a range of time points.

§

MachineControlCommand(MachineControlCommandMsg)

Used to control audio recording and production systems.

§

MachineControlResponse(MachineControlResponseMsg)

Responses to MachineControlCommand.

§

TuningNoteChange(TuningNoteChange)

Immediately change the tuning of 1 or more notes.

§

ScaleTuning1Byte(ScaleTuning1Byte)

A set of 12 tunings across all octaves targeting a set of channels, to take effect immediately.

§

ScaleTuning2Byte(ScaleTuning2Byte)

A set of 12 high-res tunings across all octaves targeting a set of channels, to take effect immediately.

§

ChannelPressureControllerDestination(ControllerDestination)

Select the destination of a ChannelPressure message.

§

PolyphonicKeyPressureControllerDestination(ControllerDestination)

Select the destination of a PolyPressure message.

§

ControlChangeControllerDestination(ControlChangeControllerDestination)

Select the destination of a ControlChange message.

§

KeyBasedInstrumentControl(KeyBasedInstrumentControl)

Intended to act like Control Change messages, but targeted at an individual key for e.g. changing the release time for individual drum sounds.

Trait Implementations§

source§

impl Clone for UniversalRealTimeMsg

source§

fn clone(&self) -> UniversalRealTimeMsg

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for UniversalRealTimeMsg

source§

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

Formats the value using the given formatter. Read more
source§

impl PartialEq for UniversalRealTimeMsg

source§

fn eq(&self, other: &UniversalRealTimeMsg) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for UniversalRealTimeMsg

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

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

Performs the conversion.