pub trait HoldsTrigFlags {
Show 39 methods
// Required methods
fn raw_trig_flags(&self) -> u16;
fn raw_trig_flags_mut(&mut self) -> &mut u16;
// Provided methods
fn set_trig_enable(&mut self, enable: bool) { ... }
fn set_retrig(&mut self, enable: bool) { ... }
fn set_mute(&mut self, enable: bool) { ... }
fn set_accent(&mut self, enable: bool) { ... }
fn set_swing(&mut self, enable: bool) { ... }
fn set_slide(&mut self, enable: bool) { ... }
fn set_parameter_lock_lfo_switch(&mut self, enable: bool) { ... }
fn set_parameter_lock_lfo(&mut self, enable: bool) { ... }
fn set_parameter_lock_synth_switch(&mut self, enable: bool) { ... }
fn set_parameter_lock_synth(&mut self, enable: bool) { ... }
fn set_parameter_lock_sample_switch(&mut self, enable: bool) { ... }
fn set_parameter_lock_sample(&mut self, enable: bool) { ... }
fn set_parameter_lock_env_switch(&mut self, enable: bool) { ... }
fn set_parameter_lock_env(&mut self, enable: bool) { ... }
fn enabled_trig(&self) -> bool { ... }
fn enabled_retrig(&self) -> bool { ... }
fn enabled_mute(&self) -> bool { ... }
fn enabled_accent(&self) -> bool { ... }
fn enabled_swing(&self) -> bool { ... }
fn enabled_slide(&self) -> bool { ... }
fn enabled_parameter_lock_lfo_switch(&self) -> bool { ... }
fn enabled_parameter_lock_lfo(&self) -> bool { ... }
fn enabled_parameter_lock_synth_switch(&self) -> bool { ... }
fn enabled_parameter_lock_synth(&self) -> bool { ... }
fn enabled_parameter_lock_sample_switch(&self) -> bool { ... }
fn enabled_parameter_lock_sample(&self) -> bool { ... }
fn enabled_parameter_lock_env_switch(&self) -> bool { ... }
fn enabled_parameter_lock_env(&self) -> bool { ... }
fn swap_all_flags(&mut self, flags: &impl HoldsTrigFlags) { ... }
fn unset_all_flags(&mut self) { ... }
fn flip_all_flags(&mut self, flags: &impl HoldsTrigFlags) { ... }
fn set_difference_from(&mut self, other: &impl HoldsTrigFlags) { ... }
fn set_intersection_with(&mut self, other: &impl HoldsTrigFlags) { ... }
fn set_union_with(&mut self, other: &impl HoldsTrigFlags) { ... }
fn get_difference_from(&self, other: &impl HoldsTrigFlags) -> u16 { ... }
fn get_intersection_with(&self, other: &impl HoldsTrigFlags) -> u16 { ... }
fn get_union_with(&self, other: &impl HoldsTrigFlags) -> u16 { ... }
}
Required Methods§
sourcefn raw_trig_flags(&self) -> u16
fn raw_trig_flags(&self) -> u16
Returns the raw flags value.
sourcefn raw_trig_flags_mut(&mut self) -> &mut u16
fn raw_trig_flags_mut(&mut self) -> &mut u16
Returns a mutable reference to the raw flags value.
Provided Methods§
sourcefn set_trig_enable(&mut self, enable: bool)
fn set_trig_enable(&mut self, enable: bool)
Enables or disables a trig.
sourcefn set_retrig(&mut self, enable: bool)
fn set_retrig(&mut self, enable: bool)
Enables or disables a trig’s retrig option.
sourcefn set_accent(&mut self, enable: bool)
fn set_accent(&mut self, enable: bool)
Enables or disables a trig’s accent option.
fn set_parameter_lock_lfo_switch(&mut self, enable: bool)
fn set_parameter_lock_lfo(&mut self, enable: bool)
fn set_parameter_lock_synth_switch(&mut self, enable: bool)
fn set_parameter_lock_synth(&mut self, enable: bool)
fn set_parameter_lock_sample_switch(&mut self, enable: bool)
fn set_parameter_lock_sample(&mut self, enable: bool)
fn set_parameter_lock_env_switch(&mut self, enable: bool)
fn set_parameter_lock_env(&mut self, enable: bool)
sourcefn enabled_trig(&self) -> bool
fn enabled_trig(&self) -> bool
Returns true
if the trig is enabled.
sourcefn enabled_retrig(&self) -> bool
fn enabled_retrig(&self) -> bool
Returns true
if the trig’s retrig option is enabled.
sourcefn enabled_mute(&self) -> bool
fn enabled_mute(&self) -> bool
Returns true
if the trig’s mute option is enabled.
sourcefn enabled_accent(&self) -> bool
fn enabled_accent(&self) -> bool
Returns true
if the trig’s accent option is enabled.
sourcefn enabled_swing(&self) -> bool
fn enabled_swing(&self) -> bool
Returns true
if the trig’s swing option is enabled.
sourcefn enabled_slide(&self) -> bool
fn enabled_slide(&self) -> bool
Returns true
if the trig’s slide option is enabled.
fn enabled_parameter_lock_lfo_switch(&self) -> bool
fn enabled_parameter_lock_lfo(&self) -> bool
fn enabled_parameter_lock_synth_switch(&self) -> bool
fn enabled_parameter_lock_synth(&self) -> bool
fn enabled_parameter_lock_sample_switch(&self) -> bool
fn enabled_parameter_lock_sample(&self) -> bool
fn enabled_parameter_lock_env_switch(&self) -> bool
fn enabled_parameter_lock_env(&self) -> bool
sourcefn swap_all_flags(&mut self, flags: &impl HoldsTrigFlags)
fn swap_all_flags(&mut self, flags: &impl HoldsTrigFlags)
Sets all flags to the given value.
sourcefn unset_all_flags(&mut self)
fn unset_all_flags(&mut self)
Sets all flags to 0
.
sourcefn flip_all_flags(&mut self, flags: &impl HoldsTrigFlags)
fn flip_all_flags(&mut self, flags: &impl HoldsTrigFlags)
Flips all flags.
sourcefn set_difference_from(&mut self, other: &impl HoldsTrigFlags)
fn set_difference_from(&mut self, other: &impl HoldsTrigFlags)
Sets the current flags to the intersection between the current flags and the given flags.
sourcefn set_intersection_with(&mut self, other: &impl HoldsTrigFlags)
fn set_intersection_with(&mut self, other: &impl HoldsTrigFlags)
Sets the current flags to the union between the current flags and the given flags.
sourcefn set_union_with(&mut self, other: &impl HoldsTrigFlags)
fn set_union_with(&mut self, other: &impl HoldsTrigFlags)
Sets the current flags to the union between the current flags and the given flags.
sourcefn get_difference_from(&self, other: &impl HoldsTrigFlags) -> u16
fn get_difference_from(&self, other: &impl HoldsTrigFlags) -> u16
Returns the difference between the current flags and the given flags.
sourcefn get_intersection_with(&self, other: &impl HoldsTrigFlags) -> u16
fn get_intersection_with(&self, other: &impl HoldsTrigFlags) -> u16
Returns the intersection between the current flags and the given flags.
sourcefn get_union_with(&self, other: &impl HoldsTrigFlags) -> u16
fn get_union_with(&self, other: &impl HoldsTrigFlags) -> u16
Returns the union between the current flags and the given flags.