Enum midi_msg::Parameter

source ·
pub enum Parameter {
Show 34 variants Unregistered(u16), Null, PitchBendSensitivity, PitchBendSensitivityEntry(u8, u8), FineTuning, FineTuningEntry(i16), CoarseTuning, CoarseTuningEntry(i8), TuningProgramSelect, TuningProgramSelectEntry(u8), TuningBankSelect, TuningBankSelectEntry(u8), ModulationDepthRange, ModulationDepthRangeEntry(u16), PolyphonicExpression, PolyphonicExpressionEntry(u8), AzimuthAngle3DSound, AzimuthAngle3DSoundEntry(u16), ElevationAngle3DSound, ElevationAngle3DSoundEntry(u16), Gain3DSound, Gain3DSoundEntry(u16), DistanceRatio3DSound, DistanceRatio3DSoundEntry(u16), MaxiumumDistance3DSound, MaxiumumDistance3DSoundEntry(u16), GainAtMaxiumumDistance3DSound, GainAtMaxiumumDistance3DSoundEntry(u16), ReferenceDistanceRatio3DSound, ReferenceDistanceRatio3DSoundEntry(u16), PanSpreadAngle3DSound, PanSpreadAngle3DSoundEntry(u16), RollAngle3DSound, RollAngle3DSoundEntry(u16),
}
Expand description

Used by ControlChange::Parameter. “Entry” Parameters can be used to set the given parameters: they will first select that parameter, then send a ControlChange::DataEntry with the given value.

Variants§

§

Unregistered(u16)

A whole bunch of parameters defined by the given number 0-16383, that can be used for whatever.

§

Null

A registered parameter that does nothing. Defined in GM2.

§

PitchBendSensitivity

The pitch bend sensitivity in semitones (0-127) and the sensitivity in cents (0-100), respectively. For example, a value (1, 0) means +/- one semitone (a total range of two semitones)

§

PitchBendSensitivityEntry(u8, u8)

§

FineTuning

A value from -8192-8191, representing the fractional cents to shift away from A440 in 1/8192ths of a cent.

§

FineTuningEntry(i16)

§

CoarseTuning

A value from -64-63, the number of semitones to shift away from A44.

§

CoarseTuningEntry(i8)

§

TuningProgramSelect

Which “Tuning Program” to select from: 0-127.

Defined in the MIDI Tuning Standard (Updated Specification)

§

TuningProgramSelectEntry(u8)

§

TuningBankSelect

Which “Tuning Bank” to select from: 0-127.

Defined in the MIDI Tuning Standard (Updated Specification)

§

TuningBankSelectEntry(u8)

§

ModulationDepthRange

The amount of “modulation depth” your mod wheel should apply: 0-16383.

Defined in CA 26. GM2 defines what this range might mean

§

ModulationDepthRangeEntry(u16)

§

PolyphonicExpression

Only valid when sent to channel 1 or channel 16, the former indicating that this is configuring the number of “lower zone” channels and the latter referring to the “upper zone”. A value between 0 (zone is not configured to be MPE) and 16 (zone has 16 channels in it). There can be no more than lower zone channels + upper zone channels active at a given time.

Defined in RP-053: MIDI Polyphonic Expression

§

PolyphonicExpressionEntry(u8)

§

AzimuthAngle3DSound

A value 0-16383 representing -180.00-179.98 degrees.

Defined in RP-049

§

AzimuthAngle3DSoundEntry(u16)

§

ElevationAngle3DSound

A value 0-16383 representing -180.00-179.98 degrees.

Defined in RP-049

§

ElevationAngle3DSoundEntry(u16)

§

Gain3DSound

A value 1-16383 representing -163.82-0 dB of gain.

0 indicates “negative infinity”.

Defined in RP-049

§

Gain3DSoundEntry(u16)

§

DistanceRatio3DSound

A value 0-16383 representing a ratio between -0.000061-1.0.

Defined in RP-049

§

DistanceRatio3DSoundEntry(u16)

§

MaxiumumDistance3DSound

A value 0-16383 representing between 0 and 1000 distance units. Defined in RP-049

§

MaxiumumDistance3DSoundEntry(u16)

§

GainAtMaxiumumDistance3DSound

A value 0-16383 representing -163.83-0 dB of gain Defined in RP-049

§

GainAtMaxiumumDistance3DSoundEntry(u16)

§

ReferenceDistanceRatio3DSound

A value 0-16383 representing a ratio between -0.000061-1.0 Defined in RP-049

§

ReferenceDistanceRatio3DSoundEntry(u16)

§

PanSpreadAngle3DSound

A value 0-16383 representing -180.00-179.98 degrees Defined in RP-049

§

PanSpreadAngle3DSoundEntry(u16)

§

RollAngle3DSound

A value 0-16383 representing -180.00-179.98 degrees Defined in RP-049

§

RollAngle3DSoundEntry(u16)

Trait Implementations§

source§

impl Clone for Parameter

source§

fn clone(&self) -> Parameter

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 Parameter

source§

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

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

impl PartialEq for Parameter

source§

fn eq(&self, other: &Parameter) -> 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 Copy for Parameter

source§

impl Eq for Parameter

source§

impl StructuralPartialEq for Parameter

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.