Enum midi_file::core::Control

source ·
#[repr(u8)]
pub enum Control {
Show 120 variants BankSelect = 0, ModWheel = 1, BreathController = 2, Undefined3 = 3, FootController = 4, PortamentoTime = 5, DataEntryMsb = 6, ChannelVolume = 7, Balance = 8, Undefined9 = 9, Pan = 10, ExpressionController = 11, EffectControl1 = 12, EffectControl2 = 13, Undefined14 = 14, Undefined15 = 15, GeneralPurpose1 = 16, GeneralPurpose2 = 17, GeneralPurpose3 = 18, GeneralPurpose4 = 19, Undefined20 = 20, Undefined21 = 21, Undefined22 = 22, Undefined23 = 23, Undefined24 = 24, Undefined25 = 25, Undefined26 = 26, Undefined27 = 27, Undefined28 = 28, Undefined29 = 29, Undefined30 = 30, Undefined31 = 31, BankSelectLsb = 32, ModWheelLsb = 33, BreathControllerLsb = 34, Undefined3Lsb = 35, FootControllerLsb = 36, PortamentoTimeLsb = 37, DataEntryMsbLsb = 38, ChannelVolumeLsb = 39, BalanceLsb = 40, Undefined9Lsb = 41, PanLsb = 42, ExpressionControllerLsb = 43, EffectControl1Lsb = 44, EffectControl2Lsb = 45, Undefined14Lsb = 46, Undefined15Lsb = 47, GeneralPurpose1Lsb = 48, GeneralPurpose2Lsb = 49, GeneralPurpose3Lsb = 50, GeneralPurpose4Lsb = 51, Undefined20Lsb = 52, Undefined21Lsb = 53, Undefined22Lsb = 54, Undefined23Lsb = 55, Undefined24Lsb = 56, Undefined25Lsb = 57, Undefined26Lsb = 58, Undefined27Lsb = 59, Undefined28Lsb = 60, Undefined29Lsb = 61, Undefined30Lsb = 62, Undefined31Lsb = 63, DamperPedalSustain = 64, PortamentoOnOff = 65, Sostenuto = 66, SoftPedal = 67, LegatoFootswitch = 68, Hold2 = 69, SoundVariation = 70, HarmonicIntensity = 71, ReleaseTime = 72, AttackTime = 73, Brightness = 74, SoundControllers6 = 75, SoundControllers7 = 76, SoundControllers8 = 77, SoundControllers9 = 78, SoundControllers10 = 79, GeneralPurpose5 = 80, GeneralPurpose6 = 81, GeneralPurpose7 = 82, GeneralPurpose8 = 83, PortamentoControl = 84, Undefined85 = 85, Undefined86 = 86, Undefined87 = 87, Undefined88 = 88, Undefined89 = 89, Undefined90 = 90, Effects1Depth = 91, Effects2Depth = 92, Effects3Depth = 93, Effects4Depth = 94, Effects5Depth = 95, DataIncrement = 96, DataDecrement = 97, NonRegisteredParameterNumberLsb = 98, NonRegisteredParameterNumberMsb = 99, RegisteredParameterNumberLsb = 100, RegisteredParameterNumberMsb = 101, Undefined102 = 102, Undefined103 = 103, Undefined104 = 104, Undefined105 = 105, Undefined106 = 106, Undefined107 = 107, Undefined108 = 108, Undefined109 = 109, Undefined110 = 110, Undefined111 = 111, Undefined112 = 112, Undefined113 = 113, Undefined114 = 114, Undefined115 = 115, Undefined116 = 116, Undefined117 = 117, Undefined118 = 118, Undefined119 = 119,
}
Expand description

Represents the control byte in a [ControlChangeValue]. Values greater than one byte require sending two messages, one with the most-significant byte and one with the least-significant byte. Control values greater than 31 are for the Lsb in these two-byte messages.

Variants§

§

BankSelect = 0

§

ModWheel = 1

§

BreathController = 2

§

Undefined3 = 3

§

FootController = 4

§

PortamentoTime = 5

§

DataEntryMsb = 6

§

ChannelVolume = 7

§

Balance = 8

§

Undefined9 = 9

§

Pan = 10

§

ExpressionController = 11

§

EffectControl1 = 12

§

EffectControl2 = 13

§

Undefined14 = 14

§

Undefined15 = 15

§

GeneralPurpose1 = 16

§

GeneralPurpose2 = 17

§

GeneralPurpose3 = 18

§

GeneralPurpose4 = 19

§

Undefined20 = 20

§

Undefined21 = 21

§

Undefined22 = 22

§

Undefined23 = 23

§

Undefined24 = 24

§

Undefined25 = 25

§

Undefined26 = 26

§

Undefined27 = 27

§

Undefined28 = 28

§

Undefined29 = 29

§

Undefined30 = 30

§

Undefined31 = 31

§

BankSelectLsb = 32

§

ModWheelLsb = 33

§

BreathControllerLsb = 34

§

Undefined3Lsb = 35

§

FootControllerLsb = 36

§

PortamentoTimeLsb = 37

§

DataEntryMsbLsb = 38

§

ChannelVolumeLsb = 39

§

BalanceLsb = 40

§

Undefined9Lsb = 41

§

PanLsb = 42

§

ExpressionControllerLsb = 43

§

EffectControl1Lsb = 44

§

EffectControl2Lsb = 45

§

Undefined14Lsb = 46

§

Undefined15Lsb = 47

§

GeneralPurpose1Lsb = 48

§

GeneralPurpose2Lsb = 49

§

GeneralPurpose3Lsb = 50

§

GeneralPurpose4Lsb = 51

§

Undefined20Lsb = 52

§

Undefined21Lsb = 53

§

Undefined22Lsb = 54

§

Undefined23Lsb = 55

§

Undefined24Lsb = 56

§

Undefined25Lsb = 57

§

Undefined26Lsb = 58

§

Undefined27Lsb = 59

§

Undefined28Lsb = 60

§

Undefined29Lsb = 61

§

Undefined30Lsb = 62

§

Undefined31Lsb = 63

§

DamperPedalSustain = 64

§

PortamentoOnOff = 65

§

Sostenuto = 66

§

SoftPedal = 67

§

LegatoFootswitch = 68

§

Hold2 = 69

§

SoundVariation = 70

§

HarmonicIntensity = 71

§

ReleaseTime = 72

§

AttackTime = 73

§

Brightness = 74

§

SoundControllers6 = 75

§

SoundControllers7 = 76

§

SoundControllers8 = 77

§

SoundControllers9 = 78

§

SoundControllers10 = 79

§

GeneralPurpose5 = 80

§

GeneralPurpose6 = 81

§

GeneralPurpose7 = 82

§

GeneralPurpose8 = 83

§

PortamentoControl = 84

§

Undefined85 = 85

§

Undefined86 = 86

§

Undefined87 = 87

§

Undefined88 = 88

§

Undefined89 = 89

§

Undefined90 = 90

§

Effects1Depth = 91

§

Effects2Depth = 92

§

Effects3Depth = 93

§

Effects4Depth = 94

§

Effects5Depth = 95

§

DataIncrement = 96

§

DataDecrement = 97

§

NonRegisteredParameterNumberLsb = 98

§

NonRegisteredParameterNumberMsb = 99

§

RegisteredParameterNumberLsb = 100

§

RegisteredParameterNumberMsb = 101

§

Undefined102 = 102

§

Undefined103 = 103

§

Undefined104 = 104

§

Undefined105 = 105

§

Undefined106 = 106

§

Undefined107 = 107

§

Undefined108 = 108

§

Undefined109 = 109

§

Undefined110 = 110

§

Undefined111 = 111

§

Undefined112 = 112

§

Undefined113 = 113

§

Undefined114 = 114

§

Undefined115 = 115

§

Undefined116 = 116

§

Undefined117 = 117

§

Undefined118 = 118

§

Undefined119 = 119

Trait Implementations§

source§

impl Clone for Control

source§

fn clone(&self) -> Control

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 Control

source§

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

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

impl Default for Control

source§

fn default() -> Control

Returns the “default value” for a type. Read more
source§

impl Hash for Control

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for Control

source§

fn cmp(&self, other: &Control) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for Control

source§

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

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

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

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

impl PartialOrd for Control

source§

fn partial_cmp(&self, other: &Control) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl TryFrom<u8> for Control

source§

type Error = Error

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

fn try_from(value: u8) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl Copy for Control

source§

impl Eq for Control

source§

impl StructuralPartialEq for Control

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> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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,

source§

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>,

source§

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>,

source§

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.