pub enum MidiInputAction {
Show 32 variants
Tap,
SetMainDimmer,
SetMainDimmerRelative {
encoder: MidiEncoder,
},
SetBlackout,
ToggleBlackout,
SetSpeedAdd,
SetSpeedMultiply,
SetSpeedRelative {
encoder: MidiEncoder,
},
SelectSceneDistributed,
SelectSceneRelative {
encoder: MidiEncoder,
},
SelectSceneRow {
encoder: MidiEncoder,
},
SelectSceneColumn {
encoder: MidiEncoder,
},
SelectScene {
target: MidiSceneTarget,
},
SelectMode {
mode: u8,
},
SelectSceneEffect {
index: u8,
},
SelectSceneEffectRelative {
encoder: MidiEncoder,
},
SelectSceneEffectDistributed,
ToggleSceneActive {
target: MidiSceneTarget,
},
SetSceneActive {
target: MidiSceneTarget,
},
FlashScene {
target: MidiSceneTarget,
},
SetSceneOpacity {
target: MidiSceneTarget,
},
SetSceneInputDimmer {
target: MidiSceneTarget,
},
SetSceneBeatOffset {
target: MidiSceneTarget,
},
SetSceneIgnoreMainDimmer {
target: MidiSceneTarget,
},
SetSceneSetOffsetOnFlash {
target: MidiSceneTarget,
},
SetSceneEffectSettingF32 {
target: MidiSceneTarget,
effect: MidiEffectTarget,
setting_index: u8,
},
SetSceneEffectOpacity {
target: MidiSceneTarget,
effect: MidiEffectTarget,
},
SetSceneEffectColorShift {
target: MidiSceneTarget,
effect: MidiEffectTarget,
},
SetSceneEffectBeatProgression {
target: MidiSceneTarget,
effect: MidiEffectTarget,
},
SetSceneEffectBeatOffset {
target: MidiSceneTarget,
effect: MidiEffectTarget,
},
SetSceneEffectSpeedExponent {
target: MidiSceneTarget,
effect: MidiEffectTarget,
},
SetSceneEffectLayout {
target: MidiSceneTarget,
effect: MidiEffectTarget,
},
}Expand description
MidiInputActionKind is the action without its settings; it reads as
the label the controller window shows.
Variants§
Tap
SetMainDimmer
SetMainDimmerRelative
Moves the main dimmer by an encoder’s units, 1/127 each.
Fields
encoder: MidiEncoderSetBlackout
ToggleBlackout
Flips the blackout on a press (any value above 0).
SetSpeedAdd
Adds the value as two’s complement steps to the tempo, one BPM each.
SetSpeedMultiply
SetSpeedRelative
Moves the tempo by an encoder’s units, one BPM each.
Fields
encoder: MidiEncoderSelectSceneDistributed
SelectSceneRelative
Selects the scene an encoder’s units away, in row-major order.
Fields
encoder: MidiEncoderSelectSceneRow
Moves the selection an encoder’s units of rows up or down in the same column, stopping at the first and last row. Row scene targets then work on the new row.
Fields
encoder: MidiEncoderSelectSceneColumn
Moves the selection an encoder’s units of columns left or right in the same row, stopping at the first and last column. Column scene targets then work on the new column.
Fields
encoder: MidiEncoderSelectScene
Fields
target: MidiSceneTargetSelectMode
Switches the controller to one of its mapping’s modes on a press.
SelectSceneEffect
Selects an effect of the selected scene on a press.
SelectSceneEffectRelative
Selects the effect an encoder’s units away in the selected scene.
Fields
encoder: MidiEncoderSelectSceneEffectDistributed
Spreads the value over the selected scene’s effects.
ToggleSceneActive
Fields
target: MidiSceneTargetSetSceneActive
Fields
target: MidiSceneTargetFlashScene
Fields
target: MidiSceneTargetSetSceneOpacity
Fields
target: MidiSceneTargetSetSceneInputDimmer
Fields
target: MidiSceneTargetSetSceneBeatOffset
Fields
target: MidiSceneTargetSetSceneIgnoreMainDimmer
Fields
target: MidiSceneTargetSetSceneSetOffsetOnFlash
Fields
target: MidiSceneTargetSetSceneEffectSettingF32
SetSceneEffectOpacity
SetSceneEffectColorShift
SetSceneEffectBeatProgression
SetSceneEffectBeatOffset
SetSceneEffectSpeedExponent
SetSceneEffectLayout
Picks the effect’s layout: 0 inherits the tile’s layout, 1 is the
topology, 2… the layouts in stack order (Patch::layout_refs). Was the
effect’s group index before the patch.
Trait Implementations§
Source§impl Clone for MidiInputAction
impl Clone for MidiInputAction
Source§impl Debug for MidiInputAction
impl Debug for MidiInputAction
Source§impl<'de> Deserialize<'de> for MidiInputAction
impl<'de> Deserialize<'de> for MidiInputAction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for MidiInputAction
Source§impl<'_enum> From<&'_enum MidiInputAction> for MidiInputActionKind
impl<'_enum> From<&'_enum MidiInputAction> for MidiInputActionKind
Source§fn from(val: &'_enum MidiInputAction) -> MidiInputActionKind
fn from(val: &'_enum MidiInputAction) -> MidiInputActionKind
Source§impl From<MidiInputAction> for MidiInputActionKind
impl From<MidiInputAction> for MidiInputActionKind
Source§fn from(val: MidiInputAction) -> MidiInputActionKind
fn from(val: MidiInputAction) -> MidiInputActionKind
Source§impl IntoDiscriminant for MidiInputAction
impl IntoDiscriminant for MidiInputAction
Source§type Discriminant = MidiInputActionKind
type Discriminant = MidiInputActionKind
fn discriminant(&self) -> Self::Discriminant
Source§impl PartialEq for MidiInputAction
impl PartialEq for MidiInputAction
Source§impl Serialize for MidiInputAction
impl Serialize for MidiInputAction
impl StructuralPartialEq for MidiInputAction
Auto Trait Implementations§
impl Freeze for MidiInputAction
impl RefUnwindSafe for MidiInputAction
impl Send for MidiInputAction
impl Sync for MidiInputAction
impl Unpin for MidiInputAction
impl UnsafeUnpin for MidiInputAction
impl UnwindSafe for MidiInputAction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DebugAny for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more