ControlFunction

Struct ControlFunction 

Source
pub struct ControlFunction(pub U7);
Expand description

Custom type for a control function.

Tuple Fields§

§0: U7

Implementations§

Source§

impl ControlFunction

Control Functions as defined in the MIDI 1.0 Specification.

Source

pub const BANK_SELECT_0: Self

Source

pub const MOD_WHEEL_1: Self

Source

pub const BREATH_CONTROLLER_2: Self

Source

pub const UNDEFINED_3: Self

Source

pub const FOOT_CONTROLLER_4: Self

Source

pub const PORTAMENTO_TIME_5: Self

Source

pub const DATA_ENTRY_MSB_6: Self

Source

pub const CHANNEL_VOLUME_7: Self

Source

pub const BALANCE_8: Self

Source

pub const UNDEFINED_9: Self

Source

pub const PAN_10: Self

Source

pub const EXPRESSION_CONTROLLER_11: Self

Source

pub const EFFECT_CONTROL_1_12: Self

Source

pub const EFFECT_CONTROL_2_13: Self

Source

pub const UNDEFINED_14: Self

Source

pub const UNDEFINED_15: Self

Source

pub const GENERAL_PURPOSE_CONTROLLER_1_16: Self

Source

pub const GENERAL_PURPOSE_CONTROLLER_2_17: Self

Source

pub const GENERAL_PURPOSE_CONTROLLER_3_18: Self

Source

pub const GENERAL_PURPOSE_CONTROLLER_4_19: Self

Source

pub const UNDEFINED_20: Self

Source

pub const UNDEFINED_21: Self

Source

pub const UNDEFINED_22: Self

Source

pub const UNDEFINED_23: Self

Source

pub const UNDEFINED_24: Self

Source

pub const UNDEFINED_25: Self

Source

pub const UNDEFINED_26: Self

Source

pub const UNDEFINED_27: Self

Source

pub const UNDEFINED_28: Self

Source

pub const UNDEFINED_29: Self

Source

pub const UNDEFINED_30: Self

Source

pub const UNDEFINED_31: Self

Source

pub const LSB_FOR_BANK_SELECT_32: Self

Source

pub const LSB_FOR_MOD_WHEEL_33: Self

Source

pub const LSB_FOR_BREATH_CONTROLLER_34: Self

Source

pub const LSB_FOR_UNDEFINED_35: Self

Source

pub const LSB_FOR_FOOT_CONTROLLER_36: Self

Source

pub const LSB_FOR_PORTAMENTO_TIME_37: Self

Source

pub const LSB_FOR_DATA_ENTRY_MSB_38: Self

Source

pub const LSB_FOR_CHANNEL_VOLUME_39: Self

Source

pub const LSB_FOR_BALANCE_40: Self

Source

pub const LSB_FOR_UNDEFINED_41: Self

Source

pub const LSB_FOR_PAN_42: Self

Source

pub const LSB_FOR_EXPRESSION_CONTROLLER_43: Self

Source

pub const LSB_FOR_EFFECT_CONTROL_1_44: Self

Source

pub const LSB_FOR_EFFECT_CONTROL_2_45: Self

Source

pub const LSB_FOR_UNDEFINED_14_46: Self

Source

pub const LSB_FOR_UNDEFINED_15_47: Self

Source

pub const LSB_FOR_GENERAL_PURPOSE_CONTROLLER_1_48: Self

Source

pub const LSB_FOR_GENERAL_PURPOSE_CONTROLLER_2_49: Self

Source

pub const LSB_FOR_GENERAL_PURPOSE_CONTROLLER_3_50: Self

Source

pub const LSB_FOR_GENERAL_PURPOSE_CONTROLLER_4_51: Self

Source

pub const LSB_FOR_UNDEFINED_20_52: Self

Source

pub const LSB_FOR_UNDEFINED_21_53: Self

Source

pub const LSB_FOR_UNDEFINED_22_54: Self

Source

pub const LSB_FOR_UNDEFINED_23_55: Self

Source

pub const LSB_FOR_UNDEFINED_24_56: Self

Source

pub const LSB_FOR_UNDEFINED_25_57: Self

Source

pub const LSB_FOR_UNDEFINED_26_58: Self

Source

pub const LSB_FOR_UNDEFINED_27_59: Self

Source

pub const LSB_FOR_UNDEFINED_28_60: Self

Source

pub const LSB_FOR_UNDEFINED_29_61: Self

Source

pub const LSB_FOR_UNDEFINED_30_62: Self

Source

pub const LSB_FOR_UNDEFINED_31_63: Self

Source

pub const DAMPER_PEDAL_ON_OFF_64: Self

Source

pub const PORTAMENTO_ON_OFF_65: Self

Source

pub const SOSTENUTO_ON_OFF_66: Self

Source

pub const SOFT_PEDAL_ON_OFF_67: Self

Source

pub const LEGATO_FOOTSWITCH_68: Self

Source

pub const HOLD_2_69: Self

Source

pub const SOUND_CONTROLLER_1_70: Self

Source

pub const SOUND_CONTROLLER_2_71: Self

Source

pub const SOUND_CONTROLLER_3_72: Self

Source

pub const SOUND_CONTROLLER_4_73: Self

Source

pub const SOUND_CONTROLLER_5_74: Self

Source

pub const SOUND_CONTROLLER_6_75: Self

Source

pub const SOUND_CONTROLLER_7_76: Self

Source

pub const SOUND_CONTROLLER_8_77: Self

Source

pub const SOUND_CONTROLLER_9_78: Self

Source

pub const SOUND_CONTROLLER_10_79: Self

Source

pub const GENERAL_PURPOSE_CONTROLLER_5_80: Self

Source

pub const GENERAL_PURPOSE_CONTROLLER_6_81: Self

Source

pub const GENERAL_PURPOSE_CONTROLLER_7_82: Self

Source

pub const GENERAL_PURPOSE_CONTROLLER_8_83: Self

Source

pub const PORTAMENTO_CONTROL_84: Self

Source

pub const UNDEFINED_85: Self

Source

pub const UNDEFINED_86: Self

Source

pub const UNDEFINED_87: Self

Source

pub const HIGH_RESOLUTION_VELOCITY_PREFIX_88: Self

Source

pub const UNDEFINED_89: Self

Source

pub const UNDEFINED_90: Self

Source

pub const EFFECTS_1_DEPTH_91: Self

Source

pub const EFFECTS_2_DEPTH_92: Self

Source

pub const EFFECTS_3_DEPTH_93: Self

Source

pub const EFFECTS_4_DEPTH_94: Self

Source

pub const EFFECTS_5_DEPTH_95: Self

Source

pub const DATA_INCREMENT_96: Self

Source

pub const DATA_DECREMENT_97: Self

Source

pub const NPRN_LSB_98: Self

Source

pub const NPRN_MSB_99: Self

Source

pub const RPN_LSB_100: Self

Source

pub const UNDEFINED_101: Self

Source

pub const UNDEFINED_102: Self

Source

pub const UNDEFINED_103: Self

Source

pub const UNDEFINED_104: Self

Source

pub const UNDEFINED_105: Self

Source

pub const UNDEFINED_106: Self

Source

pub const UNDEFINED_107: Self

Source

pub const UNDEFINED_108: Self

Source

pub const UNDEFINED_109: Self

Source

pub const UNDEFINED_110: Self

Source

pub const UNDEFINED_111: Self

Source

pub const UNDEFINED_112: Self

Source

pub const UNDEFINED_113: Self

Source

pub const UNDEFINED_114: Self

Source

pub const UNDEFINED_115: Self

Source

pub const UNDEFINED_116: Self

Source

pub const UNDEFINED_117: Self

Source

pub const UNDEFINED_118: Self

Source

pub const UNDEFINED_119: Self

Source

pub const ALL_SOUND_OFF_120: Self

Source

pub const RESET_ALL_CONTROLLERS_121: Self

Source

pub const LOCAL_CONTROL_OFF_122: Self

Source

pub const ALL_NOTES_OFF_123: Self

Source

pub const OMNI_MODE_OFF_124: Self

Source

pub const OMNI_MODE_ON_125: Self

Source

pub const MONO_MODE_ON_126: Self

Source

pub const POLY_MODE_ON_127: Self

Trait Implementations§

Source§

impl Clone for ControlFunction

Source§

fn clone(&self) -> ControlFunction

Returns a duplicate 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 ControlFunction

Source§

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

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

impl PartialEq for ControlFunction

Source§

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

Source§

impl StructuralPartialEq for ControlFunction

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