Struct rytm_rs::object::pattern::track::trig::Trig

source ·
pub struct Trig { /* private fields */ }

Implementations§

source§

impl Trig

source

pub fn plock_set_amplitude_attack( &self, amplitude_attack: usize ) -> Result<(), RytmError>

Sets a parameter lock for the amplitude attack.

Range 0..=127

source

pub fn plock_set_amplitude_hold( &self, amplitude_hold: usize ) -> Result<(), RytmError>

Sets a parameter lock for the amplitude hold.

Range 0..=127

source

pub fn plock_set_amplitude_decay( &self, amplitude_decay: usize ) -> Result<(), RytmError>

Sets a parameter lock for the amplitude decay.

Range 0..=127

source

pub fn plock_set_amplitude_overdrive( &self, amplitude_overdrive: usize ) -> Result<(), RytmError>

Sets a parameter lock for the amplitude overdrive.

Range 0..=127

source

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

source

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

source

pub fn plock_set_amplitude_pan( &self, amplitude_pan: isize ) -> Result<(), RytmError>

Sets a parameter lock for the amplitude pan.

Range -64..=63

source

pub fn plock_set_amplitude_volume( &self, amplitude_volume: usize ) -> Result<(), RytmError>

Sets a parameter lock for the amplitude volume.

Range 0..=127

source

pub fn plock_get_amplitude_attack(&self) -> Result<Option<usize>, RytmError>

Gets the parameter lock for the amplitude attack.

Range 0..=127

source

pub fn plock_get_amplitude_hold(&self) -> Result<Option<usize>, RytmError>

Gets the parameter lock for the amplitude hold.

Range 0..=127

source

pub fn plock_get_amplitude_decay(&self) -> Result<Option<usize>, RytmError>

Gets the parameter lock for the amplitude decay.

Range 0..=127

source

pub fn plock_get_amplitude_overdrive(&self) -> Result<Option<usize>, RytmError>

Gets the parameter lock for the amplitude overdrive.

Range 0..=127

source

pub fn plock_get_amplitude_delay_send(&self) -> Result<Option<usize>, RytmError>

Gets the parameter lock for the amplitude delay send.

Range 0..=127

source

pub fn plock_get_amplitude_reverb_send( &self ) -> Result<Option<usize>, RytmError>

Gets the parameter lock for the amplitude reverb send.

Range 0..=127

source

pub fn plock_get_amplitude_pan(&self) -> Result<Option<isize>, RytmError>

Gets the parameter lock for the amplitude pan.

Range -64..=63

source

pub fn plock_get_amplitude_volume(&self) -> Result<Option<usize>, RytmError>

Gets the parameter lock for the amplitude volume.

Range 0..=127

source

pub fn plock_clear_amplitude_attack(&self) -> Result<(), RytmError>

Clears the parameter lock for the amplitude attack.

source

pub fn plock_clear_amplitude_hold(&self) -> Result<(), RytmError>

Clears the parameter lock for the amplitude hold.

source

pub fn plock_clear_amplitude_decay(&self) -> Result<(), RytmError>

Clears the parameter lock for the amplitude decay.

source

pub fn plock_clear_amplitude_overdrive(&self) -> Result<(), RytmError>

Clears the parameter lock for the amplitude overdrive.

source

pub fn plock_clear_amplitude_delay_send(&self) -> Result<(), RytmError>

Clears the parameter lock for the amplitude delay send.

source

pub fn plock_clear_amplitude_reverb_send(&self) -> Result<(), RytmError>

Clears the parameter lock for the amplitude reverb send.

source

pub fn plock_clear_amplitude_pan(&self) -> Result<(), RytmError>

Clears the parameter lock for the amplitude pan.

source

pub fn plock_clear_amplitude_volume(&self) -> Result<(), RytmError>

Clears the parameter lock for the amplitude volume.

source§

impl Trig

source

pub fn plock_set_fx_compressor_threshold( &self, threshold: usize ) -> Result<(), RytmError>

Sets a parameter lock for the FX compressor threshold.

Range 0..=127

source

pub fn plock_set_fx_compressor_attack( &self, attack: FxCompAttack ) -> Result<(), RytmError>

Sets a parameter lock for the FX compressor attack.

source

pub fn plock_set_fx_compressor_release( &self, release: FxCompRelease ) -> Result<(), RytmError>

Sets a parameter lock for the FX compressor release.

source

pub fn plock_set_fx_compressor_ratio( &self, ratio: FxCompRatio ) -> Result<(), RytmError>

Sets a parameter lock for the FX compressor ratio.

source

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.

source

pub fn plock_set_fx_compressor_gain(&self, gain: usize) -> Result<(), RytmError>

Sets a parameter lock for the FX compressor gain.

Range 0..=127

source

pub fn plock_set_fx_compressor_mix(&self, mix: usize) -> Result<(), RytmError>

Sets a parameter lock for the FX compressor mix.

Range 0..=127

source

pub fn plock_set_fx_compressor_volume( &self, volume: usize ) -> Result<(), RytmError>

Sets a parameter lock for the FX compressor volume.

Range 0..=127

source

pub fn plock_get_fx_compressor_threshold( &self ) -> Result<Option<usize>, RytmError>

Gets the FX compressor threshold parameter lock.

Range 0..=127

source

pub fn plock_get_fx_compressor_attack( &self ) -> Result<Option<FxCompAttack>, RytmError>

Gets the FX compressor attack parameter lock.

source

pub fn plock_get_fx_compressor_release( &self ) -> Result<Option<FxCompRelease>, RytmError>

Gets the FX compressor release parameter lock.

source

pub fn plock_get_fx_compressor_ratio( &self ) -> Result<Option<FxCompRatio>, RytmError>

Gets the FX compressor ratio parameter lock.

source

pub fn plock_get_fx_compressor_side_chain_eq( &self ) -> Result<Option<FxCompSideChainEq>, RytmError>

Gets the FX compressor side chain eq parameter lock.

source

pub fn plock_get_fx_compressor_gain(&self) -> Result<Option<usize>, RytmError>

Gets the FX compressor gain parameter lock.

Range 0..=127

source

pub fn plock_get_fx_compressor_mix(&self) -> Result<Option<usize>, RytmError>

Gets the FX compressor mix parameter lock.

Range 0..=127

source

pub fn plock_get_fx_compressor_volume(&self) -> Result<Option<usize>, RytmError>

Gets the FX compressor volume parameter lock.

Range 0..=127

source

pub fn plock_clear_fx_compressor_threshold(&self) -> Result<(), RytmError>

Clears the FX compressor threshold parameter lock.

source

pub fn plock_clear_fx_compressor_attack(&self) -> Result<(), RytmError>

Clears the FX compressor attack parameter lock.

source

pub fn plock_clear_fx_compressor_release(&self) -> Result<(), RytmError>

Clears the FX compressor release parameter lock.

source

pub fn plock_clear_fx_compressor_ratio(&self) -> Result<(), RytmError>

Clears the FX compressor ratio parameter lock.

source

pub fn plock_clear_fx_compressor_side_chain_eq(&self) -> Result<(), RytmError>

Clears the FX compressor side chain eq parameter lock.

source

pub fn plock_clear_fx_compressor_gain(&self) -> Result<(), RytmError>

Clears the FX compressor gain parameter lock.

source

pub fn plock_clear_fx_compressor_mix(&self) -> Result<(), RytmError>

Clears the FX compressor mix parameter lock.

source

pub fn plock_clear_fx_compressor_volume(&self) -> Result<(), RytmError>

Clears the FX compressor volume parameter lock.

source§

impl Trig

source

pub fn plock_set_fx_delay_time(&self, time: usize) -> Result<(), RytmError>

Sets a parameter lock for the FX delay time.

Range 0..=127

source

pub fn plock_set_fx_delay_ping_pong( &self, ping_pong: bool ) -> Result<(), RytmError>

Sets a parameter lock for the FX delay ping pong.

source

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

source

pub fn plock_set_fx_delay_feedback( &self, feedback: usize ) -> Result<(), RytmError>

Sets a parameter lock for the FX delay feedback.

Range 0..=127

source

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

source

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

source

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

source

pub fn plock_set_fx_delay_volume(&self, volume: usize) -> Result<(), RytmError>

Sets a parameter lock for the FX delay volume.

Range 0..=127

source

pub fn plock_get_fx_delay_time(&self) -> Result<Option<usize>, RytmError>

Gets the parameter lock for the FX delay time.

Range 0..=127

source

pub fn plock_get_fx_delay_ping_pong(&self) -> Result<Option<bool>, RytmError>

Gets the parameter lock for the FX delay ping pong.

source

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

source

pub fn plock_get_fx_delay_feedback(&self) -> Result<Option<usize>, RytmError>

Gets the parameter lock for the FX delay feedback.

Range 0..=127

source

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

source

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

source

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

source

pub fn plock_get_fx_delay_volume(&self) -> Result<Option<usize>, RytmError>

Gets the parameter lock for the FX delay volume.

Range 0..=127

source

pub fn plock_clear_fx_delay_time(&self) -> Result<(), RytmError>

Clears the parameter lock for the FX delay time.

source

pub fn plock_clear_fx_delay_ping_pong(&self) -> Result<(), RytmError>

Clears the parameter lock for the FX delay ping pong.

source

pub fn plock_clear_fx_delay_stereo_width(&self) -> Result<(), RytmError>

Clears the parameter lock for the FX delay stereo width.

source

pub fn plock_clear_fx_delay_feedback(&self) -> Result<(), RytmError>

Clears the parameter lock for the FX delay feedback.

source

pub fn plock_clear_fx_delay_hpf(&self) -> Result<(), RytmError>

Clears the parameter lock for the FX delay high pass filter.

source

pub fn plock_clear_fx_delay_lpf(&self) -> Result<(), RytmError>

Clears the parameter lock for the FX delay low pass filter.

source

pub fn plock_clear_fx_delay_reverb_send(&self) -> Result<(), RytmError>

Clears the parameter lock for the FX delay reverb send.

source

pub fn plock_clear_fx_delay_volume(&self) -> Result<(), RytmError>

Clears the parameter lock for the FX delay volume.

source§

impl Trig

source

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

source

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

source

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

source

pub fn plock_set_fx_distortion_amount( &self, amount: usize ) -> Result<(), RytmError>

Sets a parameter lock for the FX distortion amount.

Range 0..=127

source

pub fn plock_set_fx_distortion_symmetry( &self, symmetry: isize ) -> Result<(), RytmError>

Sets a parameter lock for the FX distortion symmetry.

Range -64..=63

source

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

source

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

source

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

source

pub fn plock_get_fx_distortion_amount(&self) -> Result<Option<usize>, RytmError>

Gets the parameter lock for the FX distortion amount.

Range 0..=127

source

pub fn plock_get_fx_distortion_symmetry( &self ) -> Result<Option<isize>, RytmError>

Gets the parameter lock for the FX distortion symmetry.

Range -64..=63

source

pub fn plock_clear_fx_distortion_reverb_post(&self) -> Result<(), RytmError>

Clears the parameter lock for the FX distortion reverb post.

source

pub fn plock_clear_fx_distortion_delay_overdrive(&self) -> Result<(), RytmError>

Clears the parameter lock for the FX distortion delay overdrive.

source

pub fn plock_clear_fx_distortion_delay_post(&self) -> Result<(), RytmError>

Clears the parameter lock for the FX distortion delay post.

source

pub fn plock_clear_fx_distortion_amount(&self) -> Result<(), RytmError>

Clears the parameter lock for the FX distortion amount.

source

pub fn plock_clear_fx_distortion_symmetry(&self) -> Result<(), RytmError>

Clears the parameter lock for the FX distortion symmetry.

source§

impl Trig

source

pub fn plock_set_filter_attack( &self, filter_attack: usize ) -> Result<(), RytmError>

Sets a parameter lock for the filter attack.

Range 0..=127

source

pub fn plock_set_filter_sustain( &self, filter_sustain: usize ) -> Result<(), RytmError>

Sets a parameter lock for the filter sustain.

Range 0..=127

source

pub fn plock_set_filter_decay( &self, filter_decay: usize ) -> Result<(), RytmError>

Sets a parameter lock for the filter decay.

Range 0..=127

source

pub fn plock_set_filter_release( &self, filter_release: usize ) -> Result<(), RytmError>

Sets a parameter lock for the filter release.

Range 0..=127

source

pub fn plock_set_filter_cutoff( &self, filter_cutoff: usize ) -> Result<(), RytmError>

Sets a parameter lock for the filter cutoff.

Range 0..=127

source

pub fn plock_set_filter_resonance( &self, filter_resonance: usize ) -> Result<(), RytmError>

Sets a parameter lock for the filter resonance.

Range 0..=127

source

pub fn plock_set_filter_type( &self, filter_type: FilterType ) -> Result<(), RytmError>

Sets a parameter lock for the filter type.

source

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

source

pub fn plock_get_filter_attack(&self) -> Result<Option<usize>, RytmError>

Gets the parameter lock for the filter attack

Range 0..=127

source

pub fn plock_get_filter_decay(&self) -> Result<Option<usize>, RytmError>

Gets the parameter lock for the filter decay

Range 0..=127

source

pub fn plock_get_filter_sustain(&self) -> Result<Option<usize>, RytmError>

Gets the parameter lock for the filter sustain

Range 0..=127

source

pub fn plock_get_filter_release(&self) -> Result<Option<usize>, RytmError>

Gets the parameter lock for the filter release

Range 0..=127

source

pub fn plock_get_filter_cutoff(&self) -> Result<Option<usize>, RytmError>

Gets the parameter lock for the filter cutoff

Range 0..=127

source

pub fn plock_get_filter_resonance(&self) -> Result<Option<usize>, RytmError>

Gets the parameter lock for the filter resonance

Range 0..=127

source

pub fn plock_get_filter_type(&self) -> Result<Option<FilterType>, RytmError>

Gets the parameter lock for the filter type

Range 0..=127

source

pub fn plock_get_filter_envelope_amount( &self ) -> Result<Option<isize>, RytmError>

Gets the parameter lock for the filter envelope amount

Range -64..=63

source

pub fn plock_clear_filter_attack(&self) -> Result<(), RytmError>

Clears the parameter lock for the filter attack

source

pub fn plock_clear_filter_decay(&self) -> Result<(), RytmError>

Clears the parameter lock for the filter decay

source

pub fn plock_clear_filter_sustain(&self) -> Result<(), RytmError>

Clears the parameter lock for the filter sustain

source

pub fn plock_clear_filter_release(&self) -> Result<(), RytmError>

Clears the parameter lock for the filter release

source

pub fn plock_clear_filter_cutoff(&self) -> Result<(), RytmError>

Clears the parameter lock for the filter cutoff

source

pub fn plock_clear_filter_resonance(&self) -> Result<(), RytmError>

Clears the parameter lock for the filter resonance

source

pub fn plock_clear_filter_type(&self) -> Result<(), RytmError>

Clears the parameter lock for the filter type

source

pub fn plock_clear_filter_envelope_amount(&self) -> Result<(), RytmError>

Clears the parameter lock for the filter envelope amount

source§

impl Trig

source

pub fn plock_set_fx_lfo_speed(&self, speed: isize) -> Result<(), RytmError>

Sets a parameter lock for the FX LFO speed.

Range -64..=63

source

pub fn plock_set_fx_lfo_multiplier( &self, multiplier: LfoMultiplier ) -> Result<(), RytmError>

Sets a parameter lock for the FX LFO multiplier.

source

pub fn plock_set_fx_lfo_fade(&self, fade: isize) -> Result<(), RytmError>

Sets a parameter lock for the FX LFO fade.

Range -64..=63

source

pub fn plock_set_fx_lfo_destination( &self, destination: FxLfoDestination ) -> Result<(), RytmError>

Sets a parameter lock for the FX LFO destination.

source

pub fn plock_set_fx_lfo_waveform( &self, waveform: LfoWaveform ) -> Result<(), RytmError>

Sets a parameter lock for the FX LFO waveform.

source

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

source

pub fn plock_set_fx_lfo_mode(&self, mode: LfoMode) -> Result<(), RytmError>

Sets a parameter lock for the FX LFO mode.

source

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

source

pub fn plock_get_fx_lfo_speed(&self) -> Result<Option<isize>, RytmError>

Gets the parameter lock for the FX LFO speed.

Range -64..=63

source

pub fn plock_get_fx_lfo_multiplier( &self ) -> Result<Option<LfoMultiplier>, RytmError>

Gets the parameter lock for the FX LFO multiplier.

source

pub fn plock_get_fx_lfo_fade(&self) -> Result<Option<isize>, RytmError>

Gets the parameter lock for the FX LFO fade.

Range -64..=63

source

pub fn plock_get_fx_lfo_destination( &self ) -> Result<Option<FxLfoDestination>, RytmError>

Gets the parameter lock for the FX LFO destination.

Range 0..=127

source

pub fn plock_get_fx_lfo_waveform( &self ) -> Result<Option<LfoWaveform>, RytmError>

Gets the parameter lock for the FX LFO waveform.

source

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

source

pub fn plock_get_fx_lfo_mode(&self) -> Result<Option<LfoMode>, RytmError>

Gets the parameter lock for the FX LFO mode.

source

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

source

pub fn plock_clear_fx_lfo_speed(&self) -> Result<(), RytmError>

Clears the parameter lock for the FX LFO speed.

source

pub fn plock_clear_fx_lfo_multiplier(&self) -> Result<(), RytmError>

Clears the parameter lock for the FX LFO multiplier.

source

pub fn plock_clear_fx_lfo_fade(&self) -> Result<(), RytmError>

Clears the parameter lock for the FX LFO fade.

source

pub fn plock_clear_fx_lfo_destination(&self) -> Result<(), RytmError>

Clears the parameter lock for the FX LFO destination.

source

pub fn plock_clear_fx_lfo_waveform(&self) -> Result<(), RytmError>

Clears the parameter lock for the FX LFO waveform.

source

pub fn plock_clear_fx_lfo_start_phase(&self) -> Result<(), RytmError>

Clears the parameter lock for the FX LFO start phase.

source

pub fn plock_clear_fx_lfo_mode(&self) -> Result<(), RytmError>

Clears the parameter lock for the FX LFO mode.

source

pub fn plock_clear_fx_lfo_depth(&self) -> Result<(), RytmError>

Clears the parameter lock for the FX LFO depth.

source§

impl Trig

source

pub fn plock_set_lfo_speed(&self, lfo_speed: isize) -> Result<(), RytmError>

Sets a parameter lock for the LFO speed.

Range -64..=63

source

pub fn plock_set_lfo_multiplier( &self, lfo_multiplier: LfoMultiplier ) -> Result<(), RytmError>

Sets a parameter lock for the LFO multiplier.

source

pub fn plock_set_lfo_fade(&self, lfo_fade: isize) -> Result<(), RytmError>

Sets a parameter lock for the LFO fade.

Range -64..=63

source

pub fn plock_set_lfo_destination( &self, lfo_destination: LfoDestination ) -> Result<(), RytmError>

Sets a parameter lock for the LFO destination.

source

pub fn plock_set_lfo_waveform( &self, lfo_waveform: LfoWaveform ) -> Result<(), RytmError>

Sets a parameter lock for the LFO waveform.

source

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

source

pub fn plock_set_lfo_mode(&self, lfo_mode: LfoMode) -> Result<(), RytmError>

Sets a parameter lock for the LFO mode.

source

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

source

pub fn plock_get_lfo_speed(&self) -> Result<Option<isize>, RytmError>

Gets the parameter lock for the LFO speed.

Range -64..=63

source

pub fn plock_get_lfo_multiplier( &self ) -> Result<Option<LfoMultiplier>, RytmError>

Gets the parameter lock for the LFO multiplier.

source

pub fn plock_get_lfo_fade(&self) -> Result<Option<isize>, RytmError>

Gets the parameter lock for the LFO fade.

Range -64..=63

source

pub fn plock_get_lfo_destination( &self ) -> Result<Option<LfoDestination>, RytmError>

Gets the parameter lock for the LFO destination.

source

pub fn plock_get_lfo_waveform(&self) -> Result<Option<LfoWaveform>, RytmError>

Gets the parameter lock for the LFO waveform.

source

pub fn plock_get_lfo_start_phase(&self) -> Result<Option<usize>, RytmError>

Gets the parameter lock for the LFO start phase.

Range 0..=127

source

pub fn plock_get_lfo_mode(&self) -> Result<Option<LfoMode>, RytmError>

Gets the parameter lock for the LFO mode.

source

pub fn plock_get_lfo_depth(&self) -> Result<Option<f32>, RytmError>

Gets the parameter lock for the LFO depth.

Range -128.0..=127.99

source

pub fn plock_clear_lfo_speed(&self) -> Result<(), RytmError>

Clears the parameter lock for the LFO speed.

source

pub fn plock_clear_lfo_multiplier(&self) -> Result<(), RytmError>

Clears the parameter lock for the LFO multiplier.

source

pub fn plock_clear_lfo_fade(&self) -> Result<(), RytmError>

Clears the parameter lock for the LFO fade.

source

pub fn plock_clear_lfo_destination(&self) -> Result<(), RytmError>

Clears the parameter lock for the LFO destination.

source

pub fn plock_clear_lfo_waveform(&self) -> Result<(), RytmError>

Clears the parameter lock for the LFO waveform.

source

pub fn plock_clear_lfo_start_phase(&self) -> Result<(), RytmError>

Clears the parameter lock for the LFO start phase.

source

pub fn plock_clear_lfo_mode(&self) -> Result<(), RytmError>

Clears the parameter lock for the LFO mode.

source

pub fn plock_clear_lfo_depth(&self) -> Result<(), RytmError>

Clears the parameter lock for the LFO depth.

source§

impl Trig

source

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

source

pub fn plock_set_fx_reverb_decay(&self, decay: usize) -> Result<(), RytmError>

Sets a parameter lock for the FX reverb decay.

Range 0..=127

source

pub fn plock_set_fx_reverb_freq(&self, freq: usize) -> Result<(), RytmError>

Sets a parameter lock for the FX reverb frequency.

Range 0..=127

source

pub fn plock_set_fx_reverb_gain(&self, gain: usize) -> Result<(), RytmError>

Sets a parameter lock for the FX reverb gain.

Range 0..=127

source

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

source

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

source

pub fn plock_set_fx_reverb_volume(&self, volume: usize) -> Result<(), RytmError>

Sets a parameter lock for the FX reverb volume.

Range 0..=127

source

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

source

pub fn plock_get_fx_reverb_decay(&self) -> Result<Option<usize>, RytmError>

Gets the parameter lock for the FX reverb decay.

Range 0..=127

source

pub fn plock_get_fx_reverb_freq(&self) -> Result<Option<usize>, RytmError>

Gets the parameter lock for the FX reverb frequency.

Range 0..=127

source

pub fn plock_get_fx_reverb_gain(&self) -> Result<Option<usize>, RytmError>

Gets the parameter lock for the FX reverb gain.

Range 0..=127

source

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

source

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

source

pub fn plock_get_fx_reverb_volume(&self) -> Result<Option<usize>, RytmError>

Gets the parameter lock for the FX reverb volume.

Range 0..=127

source

pub fn plock_clear_fx_reverb_pre_delay(&self) -> Result<(), RytmError>

Clears the parameter lock for the FX reverb pre delay.

source

pub fn plock_clear_fx_reverb_decay(&self) -> Result<(), RytmError>

Clears the parameter lock for the FX reverb decay.

source

pub fn plock_clear_fx_reverb_freq(&self) -> Result<(), RytmError>

Clears the parameter lock for the FX reverb frequency.

source

pub fn plock_clear_fx_reverb_gain(&self) -> Result<(), RytmError>

Clears the parameter lock for the FX reverb gain.

source

pub fn plock_clear_fx_reverb_hpf(&self) -> Result<(), RytmError>

Clears the parameter lock for the FX reverb high pass filter.

source

pub fn plock_clear_fx_reverb_lpf(&self) -> Result<(), RytmError>

Clears the parameter lock for the FX reverb low pass filter.

source

pub fn plock_clear_fx_reverb_volume(&self) -> Result<(), RytmError>

Clears the parameter lock for the FX reverb volume.

source§

impl Trig

source

pub fn plock_set_sample_tune(&self, sample_tune: isize) -> Result<(), RytmError>

Sets a parameter lock for the sample tune.

Range -24..=24

source

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

source

pub fn plock_set_sample_number( &self, sample_number: usize ) -> Result<(), RytmError>

Sets a parameter lock for the sample number.

Range 0..=127

source

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

source

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

source

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

source

pub fn plock_set_sample_loop_flag( &self, sample_loop_flag: bool ) -> Result<(), RytmError>

Sets a parameter lock for the sample loop flag.

source

pub fn plock_set_sample_volume( &self, sample_volume: usize ) -> Result<(), RytmError>

Sets a parameter lock for the sample volume.

Range 0..=127

source

pub fn plock_get_sample_tune(&self) -> Result<Option<isize>, RytmError>

Gets the parameter lock for the sample tune.

Range -24..=24

source

pub fn plock_get_sample_fine_tune(&self) -> Result<Option<isize>, RytmError>

Gets the parameter lock for the sample fine tune.

Range -64..=63

source

pub fn plock_get_sample_number(&self) -> Result<Option<usize>, RytmError>

Gets the parameter lock for the sample number.

Range 0..=127

source

pub fn plock_get_sample_bit_reduction(&self) -> Result<Option<usize>, RytmError>

Gets the parameter lock for the sample bit reduction.

Range 0..=127

source

pub fn plock_get_sample_start(&self) -> Result<Option<f32>, RytmError>

Gets the parameter lock for the sample start.

Range 0.0..=120.0

source

pub fn plock_get_sample_end(&self) -> Result<Option<f32>, RytmError>

Gets the parameter lock for the sample end.

Range 0.0..=120.0

source

pub fn plock_get_sample_loop_flag(&self) -> Result<Option<bool>, RytmError>

Gets the parameter lock for the sample loop flag.

source

pub fn plock_get_sample_volume(&self) -> Result<Option<usize>, RytmError>

Gets the parameter lock for the sample volume.

Range 0..=127

source

pub fn plock_clear_sample_tune(&self) -> Result<(), RytmError>

Clears the parameter lock for the sample tune.

source

pub fn plock_clear_sample_fine_tune(&self) -> Result<(), RytmError>

Clears the parameter lock for the sample fine tune.

source

pub fn plock_clear_sample_number(&self) -> Result<(), RytmError>

Clears the parameter lock for the sample number.

source

pub fn plock_clear_sample_bit_reduction(&self) -> Result<(), RytmError>

Clears the parameter lock for the sample bit reduction.

source

pub fn plock_clear_sample_start(&self) -> Result<(), RytmError>

Clears the parameter lock for the sample start.

source

pub fn plock_clear_sample_end(&self) -> Result<(), RytmError>

Clears the parameter lock for the sample end.

source

pub fn plock_clear_sample_loop_flag(&self) -> Result<(), RytmError>

Clears the parameter lock for the sample loop flag.

source

pub fn plock_clear_sample_volume(&self) -> Result<(), RytmError>

Clears the parameter lock for the sample volume.

source§

impl Trig

source

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.

source

pub const fn index(&self) -> usize

Returns the index of the trig.

Range 0..=63

source

pub const fn track_index(&self) -> usize

Returns the index of the track which this trig belongs to.

Range 0..=12

source

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.

source

pub fn set_velocity(&mut self, velocity: usize) -> Result<(), RytmError>

Sets the velocity value.

Range 0..=127

source

pub fn set_micro_timing_by_value( &mut self, micro_timing_value: isize ) -> Result<(), RytmError>

Sets the micro timing by value.

Range -23..=23

source

pub fn set_micro_timing(&mut self, micro_timing: MicroTime)

Sets the micro timing.

source

pub fn set_note_length_by_value( &mut self, note_length: usize ) -> Result<(), RytmError>

Sets the note length value.

Range 0..=127

source

pub fn set_note_length(&mut self, note_length: Length)

Sets the note_length.

source

pub fn set_retrig_length_by_value( &mut self, retrig_length: usize ) -> Result<(), RytmError>

Sets the retrig length value.

Range 0..=127

source

pub fn set_retrig_length(&mut self, retrig_length: Length)

Sets the retrig length.

source

pub fn set_retrig_rate(&mut self, retrig_rate: RetrigRate)

Sets the retrig rate.

source

pub fn set_trig_condition(&mut self, trig_condition: TrigCondition)

Sets the trig condition.

source

pub fn set_retrig_velocity_offset( &mut self, retrig_velocity_offset: isize ) -> Result<(), RytmError>

Sets retrig velocity offset.

Range -128..=127

source

pub fn set_sound_lock(&mut self, sound_lock: usize) -> Result<(), RytmError>

Sets the sound lock value.

Range 0..=127

source

pub const fn note(&self) -> usize

Returns the note value.

Follows the midi note convention. C-4 is 0x3C.

source

pub const fn trig_condition(&self) -> TrigCondition

Returns the value of the trig condition.

source

pub const fn velocity(&self) -> usize

Returns the velocity value.

Range 1..=127

source

pub const fn micro_timing_value(&self) -> isize

Returns the micro timing value.

Range -23..=23

source

pub const fn micro_timing(&self) -> MicroTime

Returns the micro timing.

source

pub const fn note_length_value(&self) -> usize

Returns the note length value.

Range 0..=127

source

pub const fn note_length(&self) -> Length

Returns the note length.

source

pub const fn retrig_length_value(&self) -> usize

Returns the retrig length value.

Range 0..=127

source

pub const fn retrig_length(&self) -> Length

Returns the retrig length.

source

pub const fn retrig_rate(&self) -> RetrigRate

Returns the retrig rate.

source

pub const fn retrig_velocity_offset(&self) -> isize

Returns the retrig velocity offset.

Range -128..=127

source

pub const fn sound_lock(&self) -> usize

Returns the sound lock value.

Range 0..=127

source

pub const fn is_fx_trig(&self) -> bool

Returns if this trig is a trig for the FX track.

Trait Implementations§

source§

impl Clone for Trig

source§

fn clone(&self) -> Trig

Returns a copy 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 Trig

source§

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

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

impl<'de> Deserialize<'de> for Trig

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl HoldsTrigFlags for Trig

source§

fn raw_trig_flags(&self) -> u16

Returns the raw flags value.
source§

fn raw_trig_flags_mut(&mut self) -> &mut u16

Returns a mutable reference to the raw flags value.
source§

fn set_trig_enable(&mut self, enable: bool)

Enables or disables a trig.
source§

fn set_retrig(&mut self, enable: bool)

Enables or disables a trig’s retrig option.
source§

fn set_mute(&mut self, enable: bool)

Enables or disables a trig’s mute option.
source§

fn set_accent(&mut self, enable: bool)

Enables or disables a trig’s accent option.
source§

fn set_swing(&mut self, enable: bool)

Enables or disables a trig’s swing option.
source§

fn set_slide(&mut self, enable: bool)

Enables or disables a trig’s slide option.
source§

fn set_parameter_lock_lfo_switch(&mut self, enable: bool)

source§

fn set_parameter_lock_lfo(&mut self, enable: bool)

source§

fn set_parameter_lock_synth_switch(&mut self, enable: bool)

source§

fn set_parameter_lock_synth(&mut self, enable: bool)

source§

fn set_parameter_lock_sample_switch(&mut self, enable: bool)

source§

fn set_parameter_lock_sample(&mut self, enable: bool)

source§

fn set_parameter_lock_env_switch(&mut self, enable: bool)

source§

fn set_parameter_lock_env(&mut self, enable: bool)

source§

fn enabled_trig(&self) -> bool

Returns true if the trig is enabled.
source§

fn enabled_retrig(&self) -> bool

Returns true if the trig’s retrig option is enabled.
source§

fn enabled_mute(&self) -> bool

Returns true if the trig’s mute option is enabled.
source§

fn enabled_accent(&self) -> bool

Returns true if the trig’s accent option is enabled.
source§

fn enabled_swing(&self) -> bool

Returns true if the trig’s swing option is enabled.
source§

fn enabled_slide(&self) -> bool

Returns true if the trig’s slide option is enabled.
source§

fn enabled_parameter_lock_lfo_switch(&self) -> bool

source§

fn enabled_parameter_lock_lfo(&self) -> bool

source§

fn enabled_parameter_lock_synth_switch(&self) -> bool

source§

fn enabled_parameter_lock_synth(&self) -> bool

source§

fn enabled_parameter_lock_sample_switch(&self) -> bool

source§

fn enabled_parameter_lock_sample(&self) -> bool

source§

fn enabled_parameter_lock_env_switch(&self) -> bool

source§

fn enabled_parameter_lock_env(&self) -> bool

source§

fn swap_all_flags(&mut self, flags: &impl HoldsTrigFlags)

Sets all flags to the given value.
source§

fn unset_all_flags(&mut self)

Sets all flags to 0.
source§

fn flip_all_flags(&mut self, flags: &impl HoldsTrigFlags)

Flips all flags.
source§

fn set_difference_from(&mut self, other: &impl HoldsTrigFlags)

Sets the current flags to the intersection between the current flags and the given flags.
source§

fn set_intersection_with(&mut self, other: &impl HoldsTrigFlags)

Sets the current flags to the union between the current flags and the given flags.
source§

fn set_union_with(&mut self, other: &impl HoldsTrigFlags)

Sets the current flags to the union between the current flags and the given flags.
source§

fn get_difference_from(&self, other: &impl HoldsTrigFlags) -> u16

Returns the difference between the current flags and the given flags.
source§

fn get_intersection_with(&self, other: &impl HoldsTrigFlags) -> u16

Returns the intersection between the current flags and the given flags.
source§

fn get_union_with(&self, other: &impl HoldsTrigFlags) -> u16

Returns the union between the current flags and the given flags.
source§

impl Serialize for Trig

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl RefUnwindSafe for Trig

§

impl Send for Trig

§

impl Sync for Trig

§

impl Unpin for Trig

§

impl UnwindSafe for Trig

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

§

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

§

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

§

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.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,