Enum midi_msg::Parameter[][src]

pub enum Parameter {
    Unregistered(u16),
    Null,
    PitchBendSensitivity,
    PitchBendSensitivityEntry(u8u8),
    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),
}

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(u8u8)
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

impl Clone for Parameter[src]

impl Copy for Parameter[src]

impl Debug for Parameter[src]

impl PartialEq<Parameter> for Parameter[src]

impl StructuralPartialEq for Parameter[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.

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.