pub enum Parameter {
Show 34 variants 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),
}
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(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

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.