Skip to main content

ControlNumber

Enum ControlNumber 

Source
pub enum ControlNumber {
Show 65 variants BankSelect = 0, BankSelectLSB = 32, ModWheel = 1, ModWheelLSB = 33, Breath = 2, BreathLSB = 34, Foot = 4, FootLSB = 36, Portamento = 5, PortamentoLSB = 37, DataEntry = 6, DataEntryLSB = 38, Volume = 7, VolumeLSB = 39, Balance = 8, BalanceLSB = 40, Pan = 10, PanLSB = 42, Expression = 11, ExpressionLSB = 43, Effect1 = 12, Effect1LSB = 44, Effect2 = 13, Effect2LSB = 45, GeneralPurpose1 = 16, GeneralPurpose1LSB = 48, GeneralPurpose2 = 17, GeneralPurpose2LSB = 49, GeneralPurpose3 = 18, GeneralPurpose3LSB = 50, GeneralPurpose4 = 19, GeneralPurpose4LSB = 51, Hold = 64, TogglePortamento = 65, Sostenuto = 66, SoftPedal = 67, ToggleLegato = 68, Hold2 = 69, SoundControl1 = 70, SoundControl2 = 71, SoundControl3 = 72, SoundControl4 = 73, SoundControl5 = 74, SoundControl6 = 75, SoundControl7 = 76, SoundControl8 = 77, SoundControl9 = 78, SoundControl10 = 79, GeneralPurpose5 = 80, GeneralPurpose6 = 81, GeneralPurpose7 = 82, GeneralPurpose8 = 83, PortamentoControl = 84, HighResVelocity = 88, Effects1Depth = 91, Effects2Depth = 92, Effects3Depth = 93, Effects4Depth = 94, Effects5Depth = 95, DataIncrement = 96, DataDecrement = 97, NonRegisteredParameterLSB = 98, NonRegisteredParameter = 99, RegisteredParameterLSB = 100, RegisteredParameter = 101,
}
Expand description

An enum that defines the MIDI numbers associated with Control Changes.

Variants§

§

BankSelect = 0

§

BankSelectLSB = 32

§

ModWheel = 1

§

ModWheelLSB = 33

§

Breath = 2

§

BreathLSB = 34

§

Foot = 4

§

FootLSB = 36

§

Portamento = 5

§

PortamentoLSB = 37

§

DataEntry = 6

§

DataEntryLSB = 38

§

Volume = 7

§

VolumeLSB = 39

§

Balance = 8

§

BalanceLSB = 40

§

Pan = 10

§

PanLSB = 42

§

Expression = 11

§

ExpressionLSB = 43

§

Effect1 = 12

§

Effect1LSB = 44

§

Effect2 = 13

§

Effect2LSB = 45

§

GeneralPurpose1 = 16

§

GeneralPurpose1LSB = 48

§

GeneralPurpose2 = 17

§

GeneralPurpose2LSB = 49

§

GeneralPurpose3 = 18

§

GeneralPurpose3LSB = 50

§

GeneralPurpose4 = 19

§

GeneralPurpose4LSB = 51

§

Hold = 64

AKA Sustain

§

TogglePortamento = 65

§

Sostenuto = 66

§

SoftPedal = 67

§

ToggleLegato = 68

§

Hold2 = 69

§

SoundControl1 = 70

AKA SoundVariation

§

SoundControl2 = 71

AKA Timbre

§

SoundControl3 = 72

AKA ReleaseTime

§

SoundControl4 = 73

AKA AttackTime

§

SoundControl5 = 74

AKA Brightness

§

SoundControl6 = 75

AKA DecayTime

§

SoundControl7 = 76

AKA VibratoRate

§

SoundControl8 = 77

AKA VibratoDepth

§

SoundControl9 = 78

AKA VibratoDelay

§

SoundControl10 = 79

§

GeneralPurpose5 = 80

§

GeneralPurpose6 = 81

§

GeneralPurpose7 = 82

§

GeneralPurpose8 = 83

§

PortamentoControl = 84

§

HighResVelocity = 88

§

Effects1Depth = 91

AKA ReverbSendLevel

§

Effects2Depth = 92

AKA TremoloDepth

§

Effects3Depth = 93

AKA ChorusSendLevel

§

Effects4Depth = 94

AKA CelesteDepth

§

Effects5Depth = 95

AKA PhaserDepth

§

DataIncrement = 96

§

DataDecrement = 97

§

NonRegisteredParameterLSB = 98

§

NonRegisteredParameter = 99

§

RegisteredParameterLSB = 100

§

RegisteredParameter = 101

Trait Implementations§

Source§

impl Clone for ControlNumber

Source§

fn clone(&self) -> ControlNumber

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for ControlNumber

Source§

impl Debug for ControlNumber

Source§

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

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

impl Eq for ControlNumber

Source§

impl PartialEq for ControlNumber

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ControlNumber

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, dest: *mut u8)

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