pub struct Trig { /* private fields */ }
Implementations§
source§impl Trig
impl Trig
sourcepub fn plock_set_amplitude_attack(
&self,
amplitude_attack: usize
) -> Result<(), RytmError>
pub fn plock_set_amplitude_attack( &self, amplitude_attack: usize ) -> Result<(), RytmError>
Sets a parameter lock for the amplitude attack.
Range 0..=127
sourcepub fn plock_set_amplitude_hold(
&self,
amplitude_hold: usize
) -> Result<(), RytmError>
pub fn plock_set_amplitude_hold( &self, amplitude_hold: usize ) -> Result<(), RytmError>
Sets a parameter lock for the amplitude hold.
Range 0..=127
sourcepub fn plock_set_amplitude_decay(
&self,
amplitude_decay: usize
) -> Result<(), RytmError>
pub fn plock_set_amplitude_decay( &self, amplitude_decay: usize ) -> Result<(), RytmError>
Sets a parameter lock for the amplitude decay.
Range 0..=127
sourcepub fn plock_set_amplitude_overdrive(
&self,
amplitude_overdrive: usize
) -> Result<(), RytmError>
pub fn plock_set_amplitude_overdrive( &self, amplitude_overdrive: usize ) -> Result<(), RytmError>
Sets a parameter lock for the amplitude overdrive.
Range 0..=127
sourcepub fn plock_set_amplitude_delay_send(
&self,
amplitude_delay_send: usize
) -> Result<(), RytmError>
pub fn plock_set_amplitude_delay_send( &self, amplitude_delay_send: usize ) -> Result<(), RytmError>
Sets a parameter lock for the amplitude delay send.
Range 0..=127
sourcepub fn plock_set_amplitude_reverb_send(
&self,
amplitude_reverb_send: usize
) -> Result<(), RytmError>
pub fn plock_set_amplitude_reverb_send( &self, amplitude_reverb_send: usize ) -> Result<(), RytmError>
Sets a parameter lock for the amplitude reverb send.
Range 0..=127
sourcepub fn plock_set_amplitude_pan(
&self,
amplitude_pan: isize
) -> Result<(), RytmError>
pub fn plock_set_amplitude_pan( &self, amplitude_pan: isize ) -> Result<(), RytmError>
Sets a parameter lock for the amplitude pan.
Range -64..=63
sourcepub fn plock_set_amplitude_volume(
&self,
amplitude_volume: usize
) -> Result<(), RytmError>
pub fn plock_set_amplitude_volume( &self, amplitude_volume: usize ) -> Result<(), RytmError>
Sets a parameter lock for the amplitude volume.
Range 0..=127
sourcepub fn plock_get_amplitude_attack(&self) -> Result<Option<usize>, RytmError>
pub fn plock_get_amplitude_attack(&self) -> Result<Option<usize>, RytmError>
Gets the parameter lock for the amplitude attack.
Range 0..=127
sourcepub fn plock_get_amplitude_hold(&self) -> Result<Option<usize>, RytmError>
pub fn plock_get_amplitude_hold(&self) -> Result<Option<usize>, RytmError>
Gets the parameter lock for the amplitude hold.
Range 0..=127
sourcepub fn plock_get_amplitude_decay(&self) -> Result<Option<usize>, RytmError>
pub fn plock_get_amplitude_decay(&self) -> Result<Option<usize>, RytmError>
Gets the parameter lock for the amplitude decay.
Range 0..=127
sourcepub fn plock_get_amplitude_overdrive(&self) -> Result<Option<usize>, RytmError>
pub fn plock_get_amplitude_overdrive(&self) -> Result<Option<usize>, RytmError>
Gets the parameter lock for the amplitude overdrive.
Range 0..=127
sourcepub fn plock_get_amplitude_delay_send(&self) -> Result<Option<usize>, RytmError>
pub fn plock_get_amplitude_delay_send(&self) -> Result<Option<usize>, RytmError>
Gets the parameter lock for the amplitude delay send.
Range 0..=127
sourcepub fn plock_get_amplitude_reverb_send(
&self
) -> Result<Option<usize>, RytmError>
pub fn plock_get_amplitude_reverb_send( &self ) -> Result<Option<usize>, RytmError>
Gets the parameter lock for the amplitude reverb send.
Range 0..=127
sourcepub fn plock_get_amplitude_pan(&self) -> Result<Option<isize>, RytmError>
pub fn plock_get_amplitude_pan(&self) -> Result<Option<isize>, RytmError>
Gets the parameter lock for the amplitude pan.
Range -64..=63
sourcepub fn plock_get_amplitude_volume(&self) -> Result<Option<usize>, RytmError>
pub fn plock_get_amplitude_volume(&self) -> Result<Option<usize>, RytmError>
Gets the parameter lock for the amplitude volume.
Range 0..=127
sourcepub fn plock_clear_amplitude_attack(&self) -> Result<(), RytmError>
pub fn plock_clear_amplitude_attack(&self) -> Result<(), RytmError>
Clears the parameter lock for the amplitude attack.
sourcepub fn plock_clear_amplitude_hold(&self) -> Result<(), RytmError>
pub fn plock_clear_amplitude_hold(&self) -> Result<(), RytmError>
Clears the parameter lock for the amplitude hold.
sourcepub fn plock_clear_amplitude_decay(&self) -> Result<(), RytmError>
pub fn plock_clear_amplitude_decay(&self) -> Result<(), RytmError>
Clears the parameter lock for the amplitude decay.
sourcepub fn plock_clear_amplitude_overdrive(&self) -> Result<(), RytmError>
pub fn plock_clear_amplitude_overdrive(&self) -> Result<(), RytmError>
Clears the parameter lock for the amplitude overdrive.
sourcepub fn plock_clear_amplitude_delay_send(&self) -> Result<(), RytmError>
pub fn plock_clear_amplitude_delay_send(&self) -> Result<(), RytmError>
Clears the parameter lock for the amplitude delay send.
sourcepub fn plock_clear_amplitude_reverb_send(&self) -> Result<(), RytmError>
pub fn plock_clear_amplitude_reverb_send(&self) -> Result<(), RytmError>
Clears the parameter lock for the amplitude reverb send.
sourcepub fn plock_clear_amplitude_pan(&self) -> Result<(), RytmError>
pub fn plock_clear_amplitude_pan(&self) -> Result<(), RytmError>
Clears the parameter lock for the amplitude pan.
sourcepub fn plock_clear_amplitude_volume(&self) -> Result<(), RytmError>
pub fn plock_clear_amplitude_volume(&self) -> Result<(), RytmError>
Clears the parameter lock for the amplitude volume.
source§impl Trig
impl Trig
sourcepub fn plock_set_fx_compressor_threshold(
&self,
threshold: usize
) -> Result<(), RytmError>
pub fn plock_set_fx_compressor_threshold( &self, threshold: usize ) -> Result<(), RytmError>
Sets a parameter lock for the FX compressor threshold.
Range 0..=127
sourcepub fn plock_set_fx_compressor_attack(
&self,
attack: FxCompAttack
) -> Result<(), RytmError>
pub fn plock_set_fx_compressor_attack( &self, attack: FxCompAttack ) -> Result<(), RytmError>
Sets a parameter lock for the FX compressor attack.
sourcepub fn plock_set_fx_compressor_release(
&self,
release: FxCompRelease
) -> Result<(), RytmError>
pub fn plock_set_fx_compressor_release( &self, release: FxCompRelease ) -> Result<(), RytmError>
Sets a parameter lock for the FX compressor release.
sourcepub fn plock_set_fx_compressor_ratio(
&self,
ratio: FxCompRatio
) -> Result<(), RytmError>
pub fn plock_set_fx_compressor_ratio( &self, ratio: FxCompRatio ) -> Result<(), RytmError>
Sets a parameter lock for the FX compressor ratio.
sourcepub fn plock_set_fx_compressor_side_chain_eq(
&self,
seq: FxCompSideChainEq
) -> Result<(), RytmError>
pub fn plock_set_fx_compressor_side_chain_eq( &self, seq: FxCompSideChainEq ) -> Result<(), RytmError>
Sets a parameter lock for the FX compressor side chain eq.
sourcepub fn plock_set_fx_compressor_gain(&self, gain: usize) -> Result<(), RytmError>
pub fn plock_set_fx_compressor_gain(&self, gain: usize) -> Result<(), RytmError>
Sets a parameter lock for the FX compressor gain.
Range 0..=127
sourcepub fn plock_set_fx_compressor_mix(&self, mix: usize) -> Result<(), RytmError>
pub fn plock_set_fx_compressor_mix(&self, mix: usize) -> Result<(), RytmError>
Sets a parameter lock for the FX compressor mix.
Range 0..=127
sourcepub fn plock_set_fx_compressor_volume(
&self,
volume: usize
) -> Result<(), RytmError>
pub fn plock_set_fx_compressor_volume( &self, volume: usize ) -> Result<(), RytmError>
Sets a parameter lock for the FX compressor volume.
Range 0..=127
sourcepub fn plock_get_fx_compressor_threshold(
&self
) -> Result<Option<usize>, RytmError>
pub fn plock_get_fx_compressor_threshold( &self ) -> Result<Option<usize>, RytmError>
Gets the FX compressor threshold parameter lock.
Range 0..=127
sourcepub fn plock_get_fx_compressor_attack(
&self
) -> Result<Option<FxCompAttack>, RytmError>
pub fn plock_get_fx_compressor_attack( &self ) -> Result<Option<FxCompAttack>, RytmError>
Gets the FX compressor attack parameter lock.
sourcepub fn plock_get_fx_compressor_release(
&self
) -> Result<Option<FxCompRelease>, RytmError>
pub fn plock_get_fx_compressor_release( &self ) -> Result<Option<FxCompRelease>, RytmError>
Gets the FX compressor release parameter lock.
sourcepub fn plock_get_fx_compressor_ratio(
&self
) -> Result<Option<FxCompRatio>, RytmError>
pub fn plock_get_fx_compressor_ratio( &self ) -> Result<Option<FxCompRatio>, RytmError>
Gets the FX compressor ratio parameter lock.
sourcepub fn plock_get_fx_compressor_side_chain_eq(
&self
) -> Result<Option<FxCompSideChainEq>, RytmError>
pub fn plock_get_fx_compressor_side_chain_eq( &self ) -> Result<Option<FxCompSideChainEq>, RytmError>
Gets the FX compressor side chain eq parameter lock.
sourcepub fn plock_get_fx_compressor_gain(&self) -> Result<Option<usize>, RytmError>
pub fn plock_get_fx_compressor_gain(&self) -> Result<Option<usize>, RytmError>
Gets the FX compressor gain parameter lock.
Range 0..=127
sourcepub fn plock_get_fx_compressor_mix(&self) -> Result<Option<usize>, RytmError>
pub fn plock_get_fx_compressor_mix(&self) -> Result<Option<usize>, RytmError>
Gets the FX compressor mix parameter lock.
Range 0..=127
sourcepub fn plock_get_fx_compressor_volume(&self) -> Result<Option<usize>, RytmError>
pub fn plock_get_fx_compressor_volume(&self) -> Result<Option<usize>, RytmError>
Gets the FX compressor volume parameter lock.
Range 0..=127
sourcepub fn plock_clear_fx_compressor_threshold(&self) -> Result<(), RytmError>
pub fn plock_clear_fx_compressor_threshold(&self) -> Result<(), RytmError>
Clears the FX compressor threshold parameter lock.
sourcepub fn plock_clear_fx_compressor_attack(&self) -> Result<(), RytmError>
pub fn plock_clear_fx_compressor_attack(&self) -> Result<(), RytmError>
Clears the FX compressor attack parameter lock.
sourcepub fn plock_clear_fx_compressor_release(&self) -> Result<(), RytmError>
pub fn plock_clear_fx_compressor_release(&self) -> Result<(), RytmError>
Clears the FX compressor release parameter lock.
sourcepub fn plock_clear_fx_compressor_ratio(&self) -> Result<(), RytmError>
pub fn plock_clear_fx_compressor_ratio(&self) -> Result<(), RytmError>
Clears the FX compressor ratio parameter lock.
sourcepub fn plock_clear_fx_compressor_side_chain_eq(&self) -> Result<(), RytmError>
pub fn plock_clear_fx_compressor_side_chain_eq(&self) -> Result<(), RytmError>
Clears the FX compressor side chain eq parameter lock.
sourcepub fn plock_clear_fx_compressor_gain(&self) -> Result<(), RytmError>
pub fn plock_clear_fx_compressor_gain(&self) -> Result<(), RytmError>
Clears the FX compressor gain parameter lock.
sourcepub fn plock_clear_fx_compressor_mix(&self) -> Result<(), RytmError>
pub fn plock_clear_fx_compressor_mix(&self) -> Result<(), RytmError>
Clears the FX compressor mix parameter lock.
sourcepub fn plock_clear_fx_compressor_volume(&self) -> Result<(), RytmError>
pub fn plock_clear_fx_compressor_volume(&self) -> Result<(), RytmError>
Clears the FX compressor volume parameter lock.
source§impl Trig
impl Trig
sourcepub fn plock_set_fx_delay_time(&self, time: usize) -> Result<(), RytmError>
pub fn plock_set_fx_delay_time(&self, time: usize) -> Result<(), RytmError>
Sets a parameter lock for the FX delay time.
Range 0..=127
sourcepub fn plock_set_fx_delay_ping_pong(
&self,
ping_pong: bool
) -> Result<(), RytmError>
pub fn plock_set_fx_delay_ping_pong( &self, ping_pong: bool ) -> Result<(), RytmError>
Sets a parameter lock for the FX delay ping pong.
sourcepub fn plock_set_fx_delay_stereo_width(
&self,
stereo_width: isize
) -> Result<(), RytmError>
pub fn plock_set_fx_delay_stereo_width( &self, stereo_width: isize ) -> Result<(), RytmError>
Sets a parameter lock for the FX delay stereo width.
Range -64..=63
sourcepub fn plock_set_fx_delay_feedback(
&self,
feedback: usize
) -> Result<(), RytmError>
pub fn plock_set_fx_delay_feedback( &self, feedback: usize ) -> Result<(), RytmError>
Sets a parameter lock for the FX delay feedback.
Range 0..=127
sourcepub fn plock_set_fx_delay_hpf(&self, hpf: usize) -> Result<(), RytmError>
pub fn plock_set_fx_delay_hpf(&self, hpf: usize) -> Result<(), RytmError>
Sets a parameter lock for the FX delay high pass filter.
Range 0..=127
sourcepub fn plock_set_fx_delay_lpf(&self, lpf: usize) -> Result<(), RytmError>
pub fn plock_set_fx_delay_lpf(&self, lpf: usize) -> Result<(), RytmError>
Sets a parameter lock for the FX delay low pass filter.
Range 0..=127
sourcepub fn plock_set_fx_delay_reverb_send(
&self,
reverb_send: usize
) -> Result<(), RytmError>
pub fn plock_set_fx_delay_reverb_send( &self, reverb_send: usize ) -> Result<(), RytmError>
Sets a parameter lock for the FX delay reverb send.
Range 0..=127
sourcepub fn plock_set_fx_delay_volume(&self, volume: usize) -> Result<(), RytmError>
pub fn plock_set_fx_delay_volume(&self, volume: usize) -> Result<(), RytmError>
Sets a parameter lock for the FX delay volume.
Range 0..=127
sourcepub fn plock_get_fx_delay_time(&self) -> Result<Option<usize>, RytmError>
pub fn plock_get_fx_delay_time(&self) -> Result<Option<usize>, RytmError>
Gets the parameter lock for the FX delay time.
Range 0..=127
sourcepub fn plock_get_fx_delay_ping_pong(&self) -> Result<Option<bool>, RytmError>
pub fn plock_get_fx_delay_ping_pong(&self) -> Result<Option<bool>, RytmError>
Gets the parameter lock for the FX delay ping pong.
sourcepub fn plock_get_fx_delay_stereo_width(
&self
) -> Result<Option<isize>, RytmError>
pub fn plock_get_fx_delay_stereo_width( &self ) -> Result<Option<isize>, RytmError>
Gets the parameter lock for the FX delay stereo width.
Range -64..=63
sourcepub fn plock_get_fx_delay_feedback(&self) -> Result<Option<usize>, RytmError>
pub fn plock_get_fx_delay_feedback(&self) -> Result<Option<usize>, RytmError>
Gets the parameter lock for the FX delay feedback.
Range 0..=127
sourcepub fn plock_get_fx_delay_hpf(&self) -> Result<Option<usize>, RytmError>
pub fn plock_get_fx_delay_hpf(&self) -> Result<Option<usize>, RytmError>
Gets the parameter lock for the FX delay high pass filter.
Range 0..=127
sourcepub fn plock_get_fx_delay_lpf(&self) -> Result<Option<usize>, RytmError>
pub fn plock_get_fx_delay_lpf(&self) -> Result<Option<usize>, RytmError>
Gets the parameter lock for the FX delay low pass filter.
Range 0..=127
sourcepub fn plock_get_fx_delay_reverb_send(&self) -> Result<Option<usize>, RytmError>
pub fn plock_get_fx_delay_reverb_send(&self) -> Result<Option<usize>, RytmError>
Gets the parameter lock for the FX delay reverb send.
Range 0..=127
sourcepub fn plock_get_fx_delay_volume(&self) -> Result<Option<usize>, RytmError>
pub fn plock_get_fx_delay_volume(&self) -> Result<Option<usize>, RytmError>
Gets the parameter lock for the FX delay volume.
Range 0..=127
sourcepub fn plock_clear_fx_delay_time(&self) -> Result<(), RytmError>
pub fn plock_clear_fx_delay_time(&self) -> Result<(), RytmError>
Clears the parameter lock for the FX delay time.
sourcepub fn plock_clear_fx_delay_ping_pong(&self) -> Result<(), RytmError>
pub fn plock_clear_fx_delay_ping_pong(&self) -> Result<(), RytmError>
Clears the parameter lock for the FX delay ping pong.
sourcepub fn plock_clear_fx_delay_stereo_width(&self) -> Result<(), RytmError>
pub fn plock_clear_fx_delay_stereo_width(&self) -> Result<(), RytmError>
Clears the parameter lock for the FX delay stereo width.
sourcepub fn plock_clear_fx_delay_feedback(&self) -> Result<(), RytmError>
pub fn plock_clear_fx_delay_feedback(&self) -> Result<(), RytmError>
Clears the parameter lock for the FX delay feedback.
sourcepub fn plock_clear_fx_delay_hpf(&self) -> Result<(), RytmError>
pub fn plock_clear_fx_delay_hpf(&self) -> Result<(), RytmError>
Clears the parameter lock for the FX delay high pass filter.
sourcepub fn plock_clear_fx_delay_lpf(&self) -> Result<(), RytmError>
pub fn plock_clear_fx_delay_lpf(&self) -> Result<(), RytmError>
Clears the parameter lock for the FX delay low pass filter.
sourcepub fn plock_clear_fx_delay_reverb_send(&self) -> Result<(), RytmError>
pub fn plock_clear_fx_delay_reverb_send(&self) -> Result<(), RytmError>
Clears the parameter lock for the FX delay reverb send.
sourcepub fn plock_clear_fx_delay_volume(&self) -> Result<(), RytmError>
pub fn plock_clear_fx_delay_volume(&self) -> Result<(), RytmError>
Clears the parameter lock for the FX delay volume.
source§impl Trig
impl Trig
sourcepub fn plock_set_fx_distortion_reverb_post(
&self,
reverb_send: bool
) -> Result<(), RytmError>
pub fn plock_set_fx_distortion_reverb_post( &self, reverb_send: bool ) -> Result<(), RytmError>
Sets a parameter lock for the FX distortion reverb post.
true
= post, false
= pre
sourcepub fn plock_set_fx_distortion_delay_overdrive(
&self,
delay_overdrive: usize
) -> Result<(), RytmError>
pub fn plock_set_fx_distortion_delay_overdrive( &self, delay_overdrive: usize ) -> Result<(), RytmError>
Sets a parameter lock for the FX distortion delay overdrive.
Range 0..=127
sourcepub fn plock_set_fx_distortion_delay_post(
&self,
delay_post: bool
) -> Result<(), RytmError>
pub fn plock_set_fx_distortion_delay_post( &self, delay_post: bool ) -> Result<(), RytmError>
Sets a parameter lock for the FX distortion delay post.
true
= post, false
= pre
sourcepub fn plock_set_fx_distortion_amount(
&self,
amount: usize
) -> Result<(), RytmError>
pub fn plock_set_fx_distortion_amount( &self, amount: usize ) -> Result<(), RytmError>
Sets a parameter lock for the FX distortion amount.
Range 0..=127
sourcepub fn plock_set_fx_distortion_symmetry(
&self,
symmetry: isize
) -> Result<(), RytmError>
pub fn plock_set_fx_distortion_symmetry( &self, symmetry: isize ) -> Result<(), RytmError>
Sets a parameter lock for the FX distortion symmetry.
Range -64..=63
sourcepub fn plock_get_fx_distortion_reverb_post(
&self
) -> Result<Option<bool>, RytmError>
pub fn plock_get_fx_distortion_reverb_post( &self ) -> Result<Option<bool>, RytmError>
Gets the parameter lock for the FX distortion reverb post.
true
= post, false
= pre
sourcepub fn plock_get_fx_distortion_delay_overdrive(
&self
) -> Result<Option<usize>, RytmError>
pub fn plock_get_fx_distortion_delay_overdrive( &self ) -> Result<Option<usize>, RytmError>
Gets the parameter lock for the FX distortion delay overdrive.
Range 0..=127
sourcepub fn plock_get_fx_distortion_delay_post(
&self
) -> Result<Option<bool>, RytmError>
pub fn plock_get_fx_distortion_delay_post( &self ) -> Result<Option<bool>, RytmError>
Gets the parameter lock for the FX distortion delay post.
true
= post, false
= pre
sourcepub fn plock_get_fx_distortion_amount(&self) -> Result<Option<usize>, RytmError>
pub fn plock_get_fx_distortion_amount(&self) -> Result<Option<usize>, RytmError>
Gets the parameter lock for the FX distortion amount.
Range 0..=127
sourcepub fn plock_get_fx_distortion_symmetry(
&self
) -> Result<Option<isize>, RytmError>
pub fn plock_get_fx_distortion_symmetry( &self ) -> Result<Option<isize>, RytmError>
Gets the parameter lock for the FX distortion symmetry.
Range -64..=63
sourcepub fn plock_clear_fx_distortion_reverb_post(&self) -> Result<(), RytmError>
pub fn plock_clear_fx_distortion_reverb_post(&self) -> Result<(), RytmError>
Clears the parameter lock for the FX distortion reverb post.
sourcepub fn plock_clear_fx_distortion_delay_overdrive(&self) -> Result<(), RytmError>
pub fn plock_clear_fx_distortion_delay_overdrive(&self) -> Result<(), RytmError>
Clears the parameter lock for the FX distortion delay overdrive.
sourcepub fn plock_clear_fx_distortion_delay_post(&self) -> Result<(), RytmError>
pub fn plock_clear_fx_distortion_delay_post(&self) -> Result<(), RytmError>
Clears the parameter lock for the FX distortion delay post.
sourcepub fn plock_clear_fx_distortion_amount(&self) -> Result<(), RytmError>
pub fn plock_clear_fx_distortion_amount(&self) -> Result<(), RytmError>
Clears the parameter lock for the FX distortion amount.
sourcepub fn plock_clear_fx_distortion_symmetry(&self) -> Result<(), RytmError>
pub fn plock_clear_fx_distortion_symmetry(&self) -> Result<(), RytmError>
Clears the parameter lock for the FX distortion symmetry.
source§impl Trig
impl Trig
sourcepub fn plock_set_filter_attack(
&self,
filter_attack: usize
) -> Result<(), RytmError>
pub fn plock_set_filter_attack( &self, filter_attack: usize ) -> Result<(), RytmError>
Sets a parameter lock for the filter attack.
Range 0..=127
sourcepub fn plock_set_filter_sustain(
&self,
filter_sustain: usize
) -> Result<(), RytmError>
pub fn plock_set_filter_sustain( &self, filter_sustain: usize ) -> Result<(), RytmError>
Sets a parameter lock for the filter sustain.
Range 0..=127
sourcepub fn plock_set_filter_decay(
&self,
filter_decay: usize
) -> Result<(), RytmError>
pub fn plock_set_filter_decay( &self, filter_decay: usize ) -> Result<(), RytmError>
Sets a parameter lock for the filter decay.
Range 0..=127
sourcepub fn plock_set_filter_release(
&self,
filter_release: usize
) -> Result<(), RytmError>
pub fn plock_set_filter_release( &self, filter_release: usize ) -> Result<(), RytmError>
Sets a parameter lock for the filter release.
Range 0..=127
sourcepub fn plock_set_filter_cutoff(
&self,
filter_cutoff: usize
) -> Result<(), RytmError>
pub fn plock_set_filter_cutoff( &self, filter_cutoff: usize ) -> Result<(), RytmError>
Sets a parameter lock for the filter cutoff.
Range 0..=127
sourcepub fn plock_set_filter_resonance(
&self,
filter_resonance: usize
) -> Result<(), RytmError>
pub fn plock_set_filter_resonance( &self, filter_resonance: usize ) -> Result<(), RytmError>
Sets a parameter lock for the filter resonance.
Range 0..=127
sourcepub fn plock_set_filter_type(
&self,
filter_type: FilterType
) -> Result<(), RytmError>
pub fn plock_set_filter_type( &self, filter_type: FilterType ) -> Result<(), RytmError>
Sets a parameter lock for the filter type.
sourcepub fn plock_set_filter_envelope_amount(
&self,
filter_envelope_amount: isize
) -> Result<(), RytmError>
pub fn plock_set_filter_envelope_amount( &self, filter_envelope_amount: isize ) -> Result<(), RytmError>
Sets a parameter lock for the filter envelope amount.
Range -64..=63
sourcepub fn plock_get_filter_attack(&self) -> Result<Option<usize>, RytmError>
pub fn plock_get_filter_attack(&self) -> Result<Option<usize>, RytmError>
Gets the parameter lock for the filter attack
Range 0..=127
sourcepub fn plock_get_filter_decay(&self) -> Result<Option<usize>, RytmError>
pub fn plock_get_filter_decay(&self) -> Result<Option<usize>, RytmError>
Gets the parameter lock for the filter decay
Range 0..=127
sourcepub fn plock_get_filter_sustain(&self) -> Result<Option<usize>, RytmError>
pub fn plock_get_filter_sustain(&self) -> Result<Option<usize>, RytmError>
Gets the parameter lock for the filter sustain
Range 0..=127
sourcepub fn plock_get_filter_release(&self) -> Result<Option<usize>, RytmError>
pub fn plock_get_filter_release(&self) -> Result<Option<usize>, RytmError>
Gets the parameter lock for the filter release
Range 0..=127
sourcepub fn plock_get_filter_cutoff(&self) -> Result<Option<usize>, RytmError>
pub fn plock_get_filter_cutoff(&self) -> Result<Option<usize>, RytmError>
Gets the parameter lock for the filter cutoff
Range 0..=127
sourcepub fn plock_get_filter_resonance(&self) -> Result<Option<usize>, RytmError>
pub fn plock_get_filter_resonance(&self) -> Result<Option<usize>, RytmError>
Gets the parameter lock for the filter resonance
Range 0..=127
sourcepub fn plock_get_filter_type(&self) -> Result<Option<FilterType>, RytmError>
pub fn plock_get_filter_type(&self) -> Result<Option<FilterType>, RytmError>
Gets the parameter lock for the filter type
Range 0..=127
sourcepub fn plock_get_filter_envelope_amount(
&self
) -> Result<Option<isize>, RytmError>
pub fn plock_get_filter_envelope_amount( &self ) -> Result<Option<isize>, RytmError>
Gets the parameter lock for the filter envelope amount
Range -64..=63
sourcepub fn plock_clear_filter_attack(&self) -> Result<(), RytmError>
pub fn plock_clear_filter_attack(&self) -> Result<(), RytmError>
Clears the parameter lock for the filter attack
sourcepub fn plock_clear_filter_decay(&self) -> Result<(), RytmError>
pub fn plock_clear_filter_decay(&self) -> Result<(), RytmError>
Clears the parameter lock for the filter decay
sourcepub fn plock_clear_filter_sustain(&self) -> Result<(), RytmError>
pub fn plock_clear_filter_sustain(&self) -> Result<(), RytmError>
Clears the parameter lock for the filter sustain
sourcepub fn plock_clear_filter_release(&self) -> Result<(), RytmError>
pub fn plock_clear_filter_release(&self) -> Result<(), RytmError>
Clears the parameter lock for the filter release
sourcepub fn plock_clear_filter_cutoff(&self) -> Result<(), RytmError>
pub fn plock_clear_filter_cutoff(&self) -> Result<(), RytmError>
Clears the parameter lock for the filter cutoff
sourcepub fn plock_clear_filter_resonance(&self) -> Result<(), RytmError>
pub fn plock_clear_filter_resonance(&self) -> Result<(), RytmError>
Clears the parameter lock for the filter resonance
sourcepub fn plock_clear_filter_type(&self) -> Result<(), RytmError>
pub fn plock_clear_filter_type(&self) -> Result<(), RytmError>
Clears the parameter lock for the filter type
sourcepub fn plock_clear_filter_envelope_amount(&self) -> Result<(), RytmError>
pub fn plock_clear_filter_envelope_amount(&self) -> Result<(), RytmError>
Clears the parameter lock for the filter envelope amount
source§impl Trig
impl Trig
sourcepub fn plock_set_fx_lfo_speed(&self, speed: isize) -> Result<(), RytmError>
pub fn plock_set_fx_lfo_speed(&self, speed: isize) -> Result<(), RytmError>
Sets a parameter lock for the FX LFO speed.
Range -64..=63
sourcepub fn plock_set_fx_lfo_multiplier(
&self,
multiplier: LfoMultiplier
) -> Result<(), RytmError>
pub fn plock_set_fx_lfo_multiplier( &self, multiplier: LfoMultiplier ) -> Result<(), RytmError>
Sets a parameter lock for the FX LFO multiplier.
sourcepub fn plock_set_fx_lfo_fade(&self, fade: isize) -> Result<(), RytmError>
pub fn plock_set_fx_lfo_fade(&self, fade: isize) -> Result<(), RytmError>
Sets a parameter lock for the FX LFO fade.
Range -64..=63
sourcepub fn plock_set_fx_lfo_destination(
&self,
destination: FxLfoDestination
) -> Result<(), RytmError>
pub fn plock_set_fx_lfo_destination( &self, destination: FxLfoDestination ) -> Result<(), RytmError>
Sets a parameter lock for the FX LFO destination.
sourcepub fn plock_set_fx_lfo_waveform(
&self,
waveform: LfoWaveform
) -> Result<(), RytmError>
pub fn plock_set_fx_lfo_waveform( &self, waveform: LfoWaveform ) -> Result<(), RytmError>
Sets a parameter lock for the FX LFO waveform.
sourcepub fn plock_set_fx_lfo_start_phase(
&self,
start_phase: usize
) -> Result<(), RytmError>
pub fn plock_set_fx_lfo_start_phase( &self, start_phase: usize ) -> Result<(), RytmError>
Sets a parameter lock for the FX LFO start phase.
Range 0..=127
sourcepub fn plock_set_fx_lfo_mode(&self, mode: LfoMode) -> Result<(), RytmError>
pub fn plock_set_fx_lfo_mode(&self, mode: LfoMode) -> Result<(), RytmError>
Sets a parameter lock for the FX LFO mode.
sourcepub fn plock_set_fx_lfo_depth(&self, depth: f32) -> Result<(), RytmError>
pub fn plock_set_fx_lfo_depth(&self, depth: f32) -> Result<(), RytmError>
Sets a parameter lock for the FX LFO depth.
Range -128.0..=127.99
sourcepub fn plock_get_fx_lfo_speed(&self) -> Result<Option<isize>, RytmError>
pub fn plock_get_fx_lfo_speed(&self) -> Result<Option<isize>, RytmError>
Gets the parameter lock for the FX LFO speed.
Range -64..=63
sourcepub fn plock_get_fx_lfo_multiplier(
&self
) -> Result<Option<LfoMultiplier>, RytmError>
pub fn plock_get_fx_lfo_multiplier( &self ) -> Result<Option<LfoMultiplier>, RytmError>
Gets the parameter lock for the FX LFO multiplier.
sourcepub fn plock_get_fx_lfo_fade(&self) -> Result<Option<isize>, RytmError>
pub fn plock_get_fx_lfo_fade(&self) -> Result<Option<isize>, RytmError>
Gets the parameter lock for the FX LFO fade.
Range -64..=63
sourcepub fn plock_get_fx_lfo_destination(
&self
) -> Result<Option<FxLfoDestination>, RytmError>
pub fn plock_get_fx_lfo_destination( &self ) -> Result<Option<FxLfoDestination>, RytmError>
Gets the parameter lock for the FX LFO destination.
Range 0..=127
sourcepub fn plock_get_fx_lfo_waveform(
&self
) -> Result<Option<LfoWaveform>, RytmError>
pub fn plock_get_fx_lfo_waveform( &self ) -> Result<Option<LfoWaveform>, RytmError>
Gets the parameter lock for the FX LFO waveform.
sourcepub fn plock_get_fx_lfo_start_phase(&self) -> Result<Option<usize>, RytmError>
pub fn plock_get_fx_lfo_start_phase(&self) -> Result<Option<usize>, RytmError>
Gets the parameter lock for the FX LFO start phase.
Range 0..=127
sourcepub fn plock_get_fx_lfo_mode(&self) -> Result<Option<LfoMode>, RytmError>
pub fn plock_get_fx_lfo_mode(&self) -> Result<Option<LfoMode>, RytmError>
Gets the parameter lock for the FX LFO mode.
sourcepub fn plock_get_fx_lfo_depth(&self) -> Result<Option<f32>, RytmError>
pub fn plock_get_fx_lfo_depth(&self) -> Result<Option<f32>, RytmError>
Gets the parameter lock for the FX LFO depth.
Range -128.0..=127.99
sourcepub fn plock_clear_fx_lfo_speed(&self) -> Result<(), RytmError>
pub fn plock_clear_fx_lfo_speed(&self) -> Result<(), RytmError>
Clears the parameter lock for the FX LFO speed.
sourcepub fn plock_clear_fx_lfo_multiplier(&self) -> Result<(), RytmError>
pub fn plock_clear_fx_lfo_multiplier(&self) -> Result<(), RytmError>
Clears the parameter lock for the FX LFO multiplier.
sourcepub fn plock_clear_fx_lfo_fade(&self) -> Result<(), RytmError>
pub fn plock_clear_fx_lfo_fade(&self) -> Result<(), RytmError>
Clears the parameter lock for the FX LFO fade.
sourcepub fn plock_clear_fx_lfo_destination(&self) -> Result<(), RytmError>
pub fn plock_clear_fx_lfo_destination(&self) -> Result<(), RytmError>
Clears the parameter lock for the FX LFO destination.
sourcepub fn plock_clear_fx_lfo_waveform(&self) -> Result<(), RytmError>
pub fn plock_clear_fx_lfo_waveform(&self) -> Result<(), RytmError>
Clears the parameter lock for the FX LFO waveform.
sourcepub fn plock_clear_fx_lfo_start_phase(&self) -> Result<(), RytmError>
pub fn plock_clear_fx_lfo_start_phase(&self) -> Result<(), RytmError>
Clears the parameter lock for the FX LFO start phase.
sourcepub fn plock_clear_fx_lfo_mode(&self) -> Result<(), RytmError>
pub fn plock_clear_fx_lfo_mode(&self) -> Result<(), RytmError>
Clears the parameter lock for the FX LFO mode.
sourcepub fn plock_clear_fx_lfo_depth(&self) -> Result<(), RytmError>
pub fn plock_clear_fx_lfo_depth(&self) -> Result<(), RytmError>
Clears the parameter lock for the FX LFO depth.
source§impl Trig
impl Trig
sourcepub fn plock_set_lfo_speed(&self, lfo_speed: isize) -> Result<(), RytmError>
pub fn plock_set_lfo_speed(&self, lfo_speed: isize) -> Result<(), RytmError>
Sets a parameter lock for the LFO speed.
Range -64..=63
sourcepub fn plock_set_lfo_multiplier(
&self,
lfo_multiplier: LfoMultiplier
) -> Result<(), RytmError>
pub fn plock_set_lfo_multiplier( &self, lfo_multiplier: LfoMultiplier ) -> Result<(), RytmError>
Sets a parameter lock for the LFO multiplier.
sourcepub fn plock_set_lfo_fade(&self, lfo_fade: isize) -> Result<(), RytmError>
pub fn plock_set_lfo_fade(&self, lfo_fade: isize) -> Result<(), RytmError>
Sets a parameter lock for the LFO fade.
Range -64..=63
sourcepub fn plock_set_lfo_destination(
&self,
lfo_destination: LfoDestination
) -> Result<(), RytmError>
pub fn plock_set_lfo_destination( &self, lfo_destination: LfoDestination ) -> Result<(), RytmError>
Sets a parameter lock for the LFO destination.
sourcepub fn plock_set_lfo_waveform(
&self,
lfo_waveform: LfoWaveform
) -> Result<(), RytmError>
pub fn plock_set_lfo_waveform( &self, lfo_waveform: LfoWaveform ) -> Result<(), RytmError>
Sets a parameter lock for the LFO waveform.
sourcepub fn plock_set_lfo_start_phase(
&self,
lfo_start_phase: usize
) -> Result<(), RytmError>
pub fn plock_set_lfo_start_phase( &self, lfo_start_phase: usize ) -> Result<(), RytmError>
Sets a parameter lock for the LFO start phase.
Range 0..=127
sourcepub fn plock_set_lfo_mode(&self, lfo_mode: LfoMode) -> Result<(), RytmError>
pub fn plock_set_lfo_mode(&self, lfo_mode: LfoMode) -> Result<(), RytmError>
Sets a parameter lock for the LFO mode.
sourcepub fn plock_set_lfo_depth(&self, lfo_depth: f32) -> Result<(), RytmError>
pub fn plock_set_lfo_depth(&self, lfo_depth: f32) -> Result<(), RytmError>
Sets a parameter lock for the LFO depth.
Range -128.0..=127.99
sourcepub fn plock_get_lfo_speed(&self) -> Result<Option<isize>, RytmError>
pub fn plock_get_lfo_speed(&self) -> Result<Option<isize>, RytmError>
Gets the parameter lock for the LFO speed.
Range -64..=63
sourcepub fn plock_get_lfo_multiplier(
&self
) -> Result<Option<LfoMultiplier>, RytmError>
pub fn plock_get_lfo_multiplier( &self ) -> Result<Option<LfoMultiplier>, RytmError>
Gets the parameter lock for the LFO multiplier.
sourcepub fn plock_get_lfo_fade(&self) -> Result<Option<isize>, RytmError>
pub fn plock_get_lfo_fade(&self) -> Result<Option<isize>, RytmError>
Gets the parameter lock for the LFO fade.
Range -64..=63
sourcepub fn plock_get_lfo_destination(
&self
) -> Result<Option<LfoDestination>, RytmError>
pub fn plock_get_lfo_destination( &self ) -> Result<Option<LfoDestination>, RytmError>
Gets the parameter lock for the LFO destination.
sourcepub fn plock_get_lfo_waveform(&self) -> Result<Option<LfoWaveform>, RytmError>
pub fn plock_get_lfo_waveform(&self) -> Result<Option<LfoWaveform>, RytmError>
Gets the parameter lock for the LFO waveform.
sourcepub fn plock_get_lfo_start_phase(&self) -> Result<Option<usize>, RytmError>
pub fn plock_get_lfo_start_phase(&self) -> Result<Option<usize>, RytmError>
Gets the parameter lock for the LFO start phase.
Range 0..=127
sourcepub fn plock_get_lfo_mode(&self) -> Result<Option<LfoMode>, RytmError>
pub fn plock_get_lfo_mode(&self) -> Result<Option<LfoMode>, RytmError>
Gets the parameter lock for the LFO mode.
sourcepub fn plock_get_lfo_depth(&self) -> Result<Option<f32>, RytmError>
pub fn plock_get_lfo_depth(&self) -> Result<Option<f32>, RytmError>
Gets the parameter lock for the LFO depth.
Range -128.0..=127.99
sourcepub fn plock_clear_lfo_speed(&self) -> Result<(), RytmError>
pub fn plock_clear_lfo_speed(&self) -> Result<(), RytmError>
Clears the parameter lock for the LFO speed.
sourcepub fn plock_clear_lfo_multiplier(&self) -> Result<(), RytmError>
pub fn plock_clear_lfo_multiplier(&self) -> Result<(), RytmError>
Clears the parameter lock for the LFO multiplier.
sourcepub fn plock_clear_lfo_fade(&self) -> Result<(), RytmError>
pub fn plock_clear_lfo_fade(&self) -> Result<(), RytmError>
Clears the parameter lock for the LFO fade.
sourcepub fn plock_clear_lfo_destination(&self) -> Result<(), RytmError>
pub fn plock_clear_lfo_destination(&self) -> Result<(), RytmError>
Clears the parameter lock for the LFO destination.
sourcepub fn plock_clear_lfo_waveform(&self) -> Result<(), RytmError>
pub fn plock_clear_lfo_waveform(&self) -> Result<(), RytmError>
Clears the parameter lock for the LFO waveform.
sourcepub fn plock_clear_lfo_start_phase(&self) -> Result<(), RytmError>
pub fn plock_clear_lfo_start_phase(&self) -> Result<(), RytmError>
Clears the parameter lock for the LFO start phase.
sourcepub fn plock_clear_lfo_mode(&self) -> Result<(), RytmError>
pub fn plock_clear_lfo_mode(&self) -> Result<(), RytmError>
Clears the parameter lock for the LFO mode.
sourcepub fn plock_clear_lfo_depth(&self) -> Result<(), RytmError>
pub fn plock_clear_lfo_depth(&self) -> Result<(), RytmError>
Clears the parameter lock for the LFO depth.
source§impl Trig
impl Trig
sourcepub fn plock_set_fx_reverb_pre_delay(
&self,
pre_delay: usize
) -> Result<(), RytmError>
pub fn plock_set_fx_reverb_pre_delay( &self, pre_delay: usize ) -> Result<(), RytmError>
Sets a parameter lock for the FX reverb pre delay.
Range 0..=127
sourcepub fn plock_set_fx_reverb_decay(&self, decay: usize) -> Result<(), RytmError>
pub fn plock_set_fx_reverb_decay(&self, decay: usize) -> Result<(), RytmError>
Sets a parameter lock for the FX reverb decay.
Range 0..=127
sourcepub fn plock_set_fx_reverb_freq(&self, freq: usize) -> Result<(), RytmError>
pub fn plock_set_fx_reverb_freq(&self, freq: usize) -> Result<(), RytmError>
Sets a parameter lock for the FX reverb frequency.
Range 0..=127
sourcepub fn plock_set_fx_reverb_gain(&self, gain: usize) -> Result<(), RytmError>
pub fn plock_set_fx_reverb_gain(&self, gain: usize) -> Result<(), RytmError>
Sets a parameter lock for the FX reverb gain.
Range 0..=127
sourcepub fn plock_set_fx_reverb_hpf(&self, hpf: usize) -> Result<(), RytmError>
pub fn plock_set_fx_reverb_hpf(&self, hpf: usize) -> Result<(), RytmError>
Sets a parameter lock for the FX reverb high pass filter.
Range 0..=127
sourcepub fn plock_set_fx_reverb_lpf(&self, lpf: usize) -> Result<(), RytmError>
pub fn plock_set_fx_reverb_lpf(&self, lpf: usize) -> Result<(), RytmError>
Sets a parameter lock for the FX reverb low pass filter.
Range 0..=127
sourcepub fn plock_set_fx_reverb_volume(&self, volume: usize) -> Result<(), RytmError>
pub fn plock_set_fx_reverb_volume(&self, volume: usize) -> Result<(), RytmError>
Sets a parameter lock for the FX reverb volume.
Range 0..=127
sourcepub fn plock_get_fx_reverb_pre_delay(&self) -> Result<Option<usize>, RytmError>
pub fn plock_get_fx_reverb_pre_delay(&self) -> Result<Option<usize>, RytmError>
Gets the parameter lock for the FX reverb pre delay.
Range 0..=127
sourcepub fn plock_get_fx_reverb_decay(&self) -> Result<Option<usize>, RytmError>
pub fn plock_get_fx_reverb_decay(&self) -> Result<Option<usize>, RytmError>
Gets the parameter lock for the FX reverb decay.
Range 0..=127
sourcepub fn plock_get_fx_reverb_freq(&self) -> Result<Option<usize>, RytmError>
pub fn plock_get_fx_reverb_freq(&self) -> Result<Option<usize>, RytmError>
Gets the parameter lock for the FX reverb frequency.
Range 0..=127
sourcepub fn plock_get_fx_reverb_gain(&self) -> Result<Option<usize>, RytmError>
pub fn plock_get_fx_reverb_gain(&self) -> Result<Option<usize>, RytmError>
Gets the parameter lock for the FX reverb gain.
Range 0..=127
sourcepub fn plock_get_fx_reverb_hpf(&self) -> Result<Option<usize>, RytmError>
pub fn plock_get_fx_reverb_hpf(&self) -> Result<Option<usize>, RytmError>
Gets the parameter lock for the FX reverb high pass filter.
Range 0..=127
sourcepub fn plock_get_fx_reverb_lpf(&self) -> Result<Option<usize>, RytmError>
pub fn plock_get_fx_reverb_lpf(&self) -> Result<Option<usize>, RytmError>
Gets the parameter lock for the FX reverb low pass filter.
Range 0..=127
sourcepub fn plock_get_fx_reverb_volume(&self) -> Result<Option<usize>, RytmError>
pub fn plock_get_fx_reverb_volume(&self) -> Result<Option<usize>, RytmError>
Gets the parameter lock for the FX reverb volume.
Range 0..=127
sourcepub fn plock_clear_fx_reverb_pre_delay(&self) -> Result<(), RytmError>
pub fn plock_clear_fx_reverb_pre_delay(&self) -> Result<(), RytmError>
Clears the parameter lock for the FX reverb pre delay.
sourcepub fn plock_clear_fx_reverb_decay(&self) -> Result<(), RytmError>
pub fn plock_clear_fx_reverb_decay(&self) -> Result<(), RytmError>
Clears the parameter lock for the FX reverb decay.
sourcepub fn plock_clear_fx_reverb_freq(&self) -> Result<(), RytmError>
pub fn plock_clear_fx_reverb_freq(&self) -> Result<(), RytmError>
Clears the parameter lock for the FX reverb frequency.
sourcepub fn plock_clear_fx_reverb_gain(&self) -> Result<(), RytmError>
pub fn plock_clear_fx_reverb_gain(&self) -> Result<(), RytmError>
Clears the parameter lock for the FX reverb gain.
sourcepub fn plock_clear_fx_reverb_hpf(&self) -> Result<(), RytmError>
pub fn plock_clear_fx_reverb_hpf(&self) -> Result<(), RytmError>
Clears the parameter lock for the FX reverb high pass filter.
sourcepub fn plock_clear_fx_reverb_lpf(&self) -> Result<(), RytmError>
pub fn plock_clear_fx_reverb_lpf(&self) -> Result<(), RytmError>
Clears the parameter lock for the FX reverb low pass filter.
sourcepub fn plock_clear_fx_reverb_volume(&self) -> Result<(), RytmError>
pub fn plock_clear_fx_reverb_volume(&self) -> Result<(), RytmError>
Clears the parameter lock for the FX reverb volume.
source§impl Trig
impl Trig
sourcepub fn plock_set_sample_tune(&self, sample_tune: isize) -> Result<(), RytmError>
pub fn plock_set_sample_tune(&self, sample_tune: isize) -> Result<(), RytmError>
Sets a parameter lock for the sample tune.
Range -24..=24
sourcepub fn plock_set_sample_fine_tune(
&self,
sample_fine_tune: isize
) -> Result<(), RytmError>
pub fn plock_set_sample_fine_tune( &self, sample_fine_tune: isize ) -> Result<(), RytmError>
Sets a parameter lock for the sample fine tune.
Range -64..=63
sourcepub fn plock_set_sample_number(
&self,
sample_number: usize
) -> Result<(), RytmError>
pub fn plock_set_sample_number( &self, sample_number: usize ) -> Result<(), RytmError>
Sets a parameter lock for the sample number.
Range 0..=127
sourcepub fn plock_set_sample_bit_reduction(
&self,
sample_bit_reduction: usize
) -> Result<(), RytmError>
pub fn plock_set_sample_bit_reduction( &self, sample_bit_reduction: usize ) -> Result<(), RytmError>
Sets a parameter lock for the sample bit reduction.
Range 0..=127
sourcepub fn plock_set_sample_start(&self, sample_start: f32) -> Result<(), RytmError>
pub fn plock_set_sample_start(&self, sample_start: f32) -> Result<(), RytmError>
Sets a parameter lock for the sample start.
Range 0.0..=120.0
sourcepub fn plock_set_sample_end(&self, sample_end: f32) -> Result<(), RytmError>
pub fn plock_set_sample_end(&self, sample_end: f32) -> Result<(), RytmError>
Sets a parameter lock for the sample end.
Range 0.0..=120.0
sourcepub fn plock_set_sample_loop_flag(
&self,
sample_loop_flag: bool
) -> Result<(), RytmError>
pub fn plock_set_sample_loop_flag( &self, sample_loop_flag: bool ) -> Result<(), RytmError>
Sets a parameter lock for the sample loop flag.
sourcepub fn plock_set_sample_volume(
&self,
sample_volume: usize
) -> Result<(), RytmError>
pub fn plock_set_sample_volume( &self, sample_volume: usize ) -> Result<(), RytmError>
Sets a parameter lock for the sample volume.
Range 0..=127
sourcepub fn plock_get_sample_tune(&self) -> Result<Option<isize>, RytmError>
pub fn plock_get_sample_tune(&self) -> Result<Option<isize>, RytmError>
Gets the parameter lock for the sample tune.
Range -24..=24
sourcepub fn plock_get_sample_fine_tune(&self) -> Result<Option<isize>, RytmError>
pub fn plock_get_sample_fine_tune(&self) -> Result<Option<isize>, RytmError>
Gets the parameter lock for the sample fine tune.
Range -64..=63
sourcepub fn plock_get_sample_number(&self) -> Result<Option<usize>, RytmError>
pub fn plock_get_sample_number(&self) -> Result<Option<usize>, RytmError>
Gets the parameter lock for the sample number.
Range 0..=127
sourcepub fn plock_get_sample_bit_reduction(&self) -> Result<Option<usize>, RytmError>
pub fn plock_get_sample_bit_reduction(&self) -> Result<Option<usize>, RytmError>
Gets the parameter lock for the sample bit reduction.
Range 0..=127
sourcepub fn plock_get_sample_start(&self) -> Result<Option<f32>, RytmError>
pub fn plock_get_sample_start(&self) -> Result<Option<f32>, RytmError>
Gets the parameter lock for the sample start.
Range 0.0..=120.0
sourcepub fn plock_get_sample_end(&self) -> Result<Option<f32>, RytmError>
pub fn plock_get_sample_end(&self) -> Result<Option<f32>, RytmError>
Gets the parameter lock for the sample end.
Range 0.0..=120.0
sourcepub fn plock_get_sample_loop_flag(&self) -> Result<Option<bool>, RytmError>
pub fn plock_get_sample_loop_flag(&self) -> Result<Option<bool>, RytmError>
Gets the parameter lock for the sample loop flag.
sourcepub fn plock_get_sample_volume(&self) -> Result<Option<usize>, RytmError>
pub fn plock_get_sample_volume(&self) -> Result<Option<usize>, RytmError>
Gets the parameter lock for the sample volume.
Range 0..=127
sourcepub fn plock_clear_sample_tune(&self) -> Result<(), RytmError>
pub fn plock_clear_sample_tune(&self) -> Result<(), RytmError>
Clears the parameter lock for the sample tune.
sourcepub fn plock_clear_sample_fine_tune(&self) -> Result<(), RytmError>
pub fn plock_clear_sample_fine_tune(&self) -> Result<(), RytmError>
Clears the parameter lock for the sample fine tune.
sourcepub fn plock_clear_sample_number(&self) -> Result<(), RytmError>
pub fn plock_clear_sample_number(&self) -> Result<(), RytmError>
Clears the parameter lock for the sample number.
sourcepub fn plock_clear_sample_bit_reduction(&self) -> Result<(), RytmError>
pub fn plock_clear_sample_bit_reduction(&self) -> Result<(), RytmError>
Clears the parameter lock for the sample bit reduction.
sourcepub fn plock_clear_sample_start(&self) -> Result<(), RytmError>
pub fn plock_clear_sample_start(&self) -> Result<(), RytmError>
Clears the parameter lock for the sample start.
sourcepub fn plock_clear_sample_end(&self) -> Result<(), RytmError>
pub fn plock_clear_sample_end(&self) -> Result<(), RytmError>
Clears the parameter lock for the sample end.
sourcepub fn plock_clear_sample_loop_flag(&self) -> Result<(), RytmError>
pub fn plock_clear_sample_loop_flag(&self) -> Result<(), RytmError>
Clears the parameter lock for the sample loop flag.
sourcepub fn plock_clear_sample_volume(&self) -> Result<(), RytmError>
pub fn plock_clear_sample_volume(&self) -> Result<(), RytmError>
Clears the parameter lock for the sample volume.
source§impl Trig
impl Trig
sourcepub fn try_default(
trig_index: usize,
track_index: usize
) -> Result<Self, RytmError>
pub fn try_default( trig_index: usize, track_index: usize ) -> Result<Self, RytmError>
Makes a new trig complying to project defaults.
The trig index and track index are required.
Range 0..=63
for trig index.
Range 0..=12
for track index.
sourcepub const fn track_index(&self) -> usize
pub const fn track_index(&self) -> usize
Returns the index of the track which this trig belongs to.
Range 0..=12
sourcepub fn set_note(&mut self, note: usize) -> Result<(), RytmError>
pub fn set_note(&mut self, note: usize) -> Result<(), RytmError>
Sets the note value.
Range 0..=127
Follows the midi note convention. C-4 is 0x3C
.
sourcepub fn set_velocity(&mut self, velocity: usize) -> Result<(), RytmError>
pub fn set_velocity(&mut self, velocity: usize) -> Result<(), RytmError>
Sets the velocity value.
Range 0..=127
sourcepub fn set_micro_timing_by_value(
&mut self,
micro_timing_value: isize
) -> Result<(), RytmError>
pub fn set_micro_timing_by_value( &mut self, micro_timing_value: isize ) -> Result<(), RytmError>
Sets the micro timing by value.
Range -23..=23
sourcepub fn set_micro_timing(&mut self, micro_timing: MicroTime)
pub fn set_micro_timing(&mut self, micro_timing: MicroTime)
Sets the micro timing.
sourcepub fn set_note_length_by_value(
&mut self,
note_length: usize
) -> Result<(), RytmError>
pub fn set_note_length_by_value( &mut self, note_length: usize ) -> Result<(), RytmError>
Sets the note length value.
Range 0..=127
sourcepub fn set_note_length(&mut self, note_length: Length)
pub fn set_note_length(&mut self, note_length: Length)
Sets the note_length.
sourcepub fn set_retrig_length_by_value(
&mut self,
retrig_length: usize
) -> Result<(), RytmError>
pub fn set_retrig_length_by_value( &mut self, retrig_length: usize ) -> Result<(), RytmError>
Sets the retrig length value.
Range 0..=127
sourcepub fn set_retrig_length(&mut self, retrig_length: Length)
pub fn set_retrig_length(&mut self, retrig_length: Length)
Sets the retrig length.
sourcepub fn set_retrig_rate(&mut self, retrig_rate: RetrigRate)
pub fn set_retrig_rate(&mut self, retrig_rate: RetrigRate)
Sets the retrig rate.
sourcepub fn set_trig_condition(&mut self, trig_condition: TrigCondition)
pub fn set_trig_condition(&mut self, trig_condition: TrigCondition)
Sets the trig condition.
sourcepub fn set_retrig_velocity_offset(
&mut self,
retrig_velocity_offset: isize
) -> Result<(), RytmError>
pub fn set_retrig_velocity_offset( &mut self, retrig_velocity_offset: isize ) -> Result<(), RytmError>
Sets retrig velocity offset.
Range -128..=127
sourcepub fn set_sound_lock(&mut self, sound_lock: usize) -> Result<(), RytmError>
pub fn set_sound_lock(&mut self, sound_lock: usize) -> Result<(), RytmError>
Sets the sound lock value.
Range 0..=127
sourcepub const fn note(&self) -> usize
pub const fn note(&self) -> usize
Returns the note value.
Follows the midi note convention. C-4 is 0x3C
.
sourcepub const fn trig_condition(&self) -> TrigCondition
pub const fn trig_condition(&self) -> TrigCondition
Returns the value of the trig condition.
sourcepub const fn micro_timing_value(&self) -> isize
pub const fn micro_timing_value(&self) -> isize
Returns the micro timing value.
Range -23..=23
sourcepub const fn micro_timing(&self) -> MicroTime
pub const fn micro_timing(&self) -> MicroTime
Returns the micro timing.
sourcepub const fn note_length_value(&self) -> usize
pub const fn note_length_value(&self) -> usize
Returns the note length value.
Range 0..=127
sourcepub const fn note_length(&self) -> Length
pub const fn note_length(&self) -> Length
Returns the note length.
sourcepub const fn retrig_length_value(&self) -> usize
pub const fn retrig_length_value(&self) -> usize
Returns the retrig length value.
Range 0..=127
sourcepub const fn retrig_length(&self) -> Length
pub const fn retrig_length(&self) -> Length
Returns the retrig length.
sourcepub const fn retrig_rate(&self) -> RetrigRate
pub const fn retrig_rate(&self) -> RetrigRate
Returns the retrig rate.
sourcepub const fn retrig_velocity_offset(&self) -> isize
pub const fn retrig_velocity_offset(&self) -> isize
Returns the retrig velocity offset.
Range -128..=127
sourcepub const fn sound_lock(&self) -> usize
pub const fn sound_lock(&self) -> usize
Returns the sound lock value.
Range 0..=127
sourcepub const fn is_fx_trig(&self) -> bool
pub const fn is_fx_trig(&self) -> bool
Returns if this trig is a trig for the FX track.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Trig
impl<'de> Deserialize<'de> for Trig
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>,
source§impl HoldsTrigFlags for Trig
impl HoldsTrigFlags for Trig
source§fn raw_trig_flags(&self) -> u16
fn raw_trig_flags(&self) -> u16
source§fn raw_trig_flags_mut(&mut self) -> &mut u16
fn raw_trig_flags_mut(&mut self) -> &mut u16
source§fn set_trig_enable(&mut self, enable: bool)
fn set_trig_enable(&mut self, enable: bool)
source§fn set_retrig(&mut self, enable: bool)
fn set_retrig(&mut self, enable: bool)
source§fn set_accent(&mut self, enable: bool)
fn set_accent(&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)
source§fn enabled_trig(&self) -> bool
fn enabled_trig(&self) -> bool
true
if the trig is enabled.source§fn enabled_retrig(&self) -> bool
fn enabled_retrig(&self) -> bool
true
if the trig’s retrig option is enabled.source§fn enabled_mute(&self) -> bool
fn enabled_mute(&self) -> bool
true
if the trig’s mute option is enabled.source§fn enabled_accent(&self) -> bool
fn enabled_accent(&self) -> bool
true
if the trig’s accent option is enabled.source§fn enabled_swing(&self) -> bool
fn enabled_swing(&self) -> bool
true
if the trig’s swing option is enabled.source§fn enabled_slide(&self) -> bool
fn enabled_slide(&self) -> bool
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
source§fn swap_all_flags(&mut self, flags: &impl HoldsTrigFlags)
fn swap_all_flags(&mut self, flags: &impl HoldsTrigFlags)
source§fn unset_all_flags(&mut self)
fn unset_all_flags(&mut self)
0
.