pub struct SyChipParameters { /* private fields */ }
Expand description
Parameters for the SyChip
machine.
Implementations§
source§impl SyChipParameters
impl SyChipParameters
sourcepub fn set_lev(&mut self, lev: usize) -> Result<(), RytmError>
pub fn set_lev(&mut self, lev: usize) -> Result<(), RytmError>
Sets the lev
parameter.
Range: 0..=127
sourcepub fn plock_set_lev(
&self,
lev: usize,
trig_index: usize
) -> Result<(), RytmError>
pub fn plock_set_lev( &self, lev: usize, trig_index: usize ) -> Result<(), RytmError>
Sets the parameter lock for the lev
parameter.
Range: 0..=127
source§impl SyChipParameters
impl SyChipParameters
sourcepub fn set_tun(&mut self, tun: f32) -> Result<(), RytmError>
pub fn set_tun(&mut self, tun: f32) -> Result<(), RytmError>
Sets the tun
parameter.
Range: -24.0..=24.0
sourcepub fn plock_set_tun(
&self,
tun: f32,
trig_index: usize
) -> Result<(), RytmError>
pub fn plock_set_tun( &self, tun: f32, trig_index: usize ) -> Result<(), RytmError>
Sets the parameter lock for the tun
parameter.
Range: -24.0..=24.0
source§impl SyChipParameters
impl SyChipParameters
sourcepub fn set_dec(&mut self, dec: usize) -> Result<(), RytmError>
pub fn set_dec(&mut self, dec: usize) -> Result<(), RytmError>
Sets the dec
parameter.
Range: 0..=127
sourcepub fn plock_set_dec(
&self,
dec: usize,
trig_index: usize
) -> Result<(), RytmError>
pub fn plock_set_dec( &self, dec: usize, trig_index: usize ) -> Result<(), RytmError>
Sets the parameter lock for the dec
parameter.
Range: 0..=127
source§impl SyChipParameters
impl SyChipParameters
sourcepub fn set_of2(&mut self, of2: isize) -> Result<(), RytmError>
pub fn set_of2(&mut self, of2: isize) -> Result<(), RytmError>
Sets the of2
parameter.
Range: -24..=24
sourcepub fn plock_set_of2(
&self,
of2: isize,
trig_index: usize
) -> Result<(), RytmError>
pub fn plock_set_of2( &self, of2: isize, trig_index: usize ) -> Result<(), RytmError>
Sets the parameter lock for the of2
parameter.
Range: -24..=24
source§impl SyChipParameters
impl SyChipParameters
sourcepub fn set_of3(&mut self, of3: isize) -> Result<(), RytmError>
pub fn set_of3(&mut self, of3: isize) -> Result<(), RytmError>
Sets the of3
parameter.
Range: -24..=24
sourcepub fn plock_set_of3(
&self,
of3: isize,
trig_index: usize
) -> Result<(), RytmError>
pub fn plock_set_of3( &self, of3: isize, trig_index: usize ) -> Result<(), RytmError>
Sets the parameter lock for the of3
parameter.
Range: -24..=24
source§impl SyChipParameters
impl SyChipParameters
sourcepub fn set_of4(&mut self, of4: isize) -> Result<(), RytmError>
pub fn set_of4(&mut self, of4: isize) -> Result<(), RytmError>
Sets the of4
parameter.
Range: -24..=24
sourcepub fn plock_set_of4(
&self,
of4: isize,
trig_index: usize
) -> Result<(), RytmError>
pub fn plock_set_of4( &self, of4: isize, trig_index: usize ) -> Result<(), RytmError>
Sets the parameter lock for the of4
parameter.
Range: -24..=24
source§impl SyChipParameters
impl SyChipParameters
sourcepub fn set_wav(&mut self, wav: SyChipWaveform)
pub fn set_wav(&mut self, wav: SyChipWaveform)
Sets the wav
parameter.
sourcepub const fn get_wav(&self) -> SyChipWaveform
pub const fn get_wav(&self) -> SyChipWaveform
Returns the wav
parameter.
sourcepub fn plock_set_wav(
&self,
wav: SyChipWaveform,
trig_index: usize
) -> Result<(), RytmError>
pub fn plock_set_wav( &self, wav: SyChipWaveform, trig_index: usize ) -> Result<(), RytmError>
Sets the parameter lock for the wav
parameter.
sourcepub fn plock_get_wav(
&self,
trig_index: usize
) -> Result<Option<SyChipWaveform>, RytmError>
pub fn plock_get_wav( &self, trig_index: usize ) -> Result<Option<SyChipWaveform>, RytmError>
Gets the parameter lock for the wav
parameter.
sourcepub fn plock_clear_wav(&self, trig_index: usize) -> Result<(), RytmError>
pub fn plock_clear_wav(&self, trig_index: usize) -> Result<(), RytmError>
Clears the parameter lock for the wav
parameter if set.
sourcepub const fn get_spd(&self) -> SyChipSpeed
pub const fn get_spd(&self) -> SyChipSpeed
Returns the spd
parameter.
sourcepub fn plock_set_spd(
&self,
spd: SyChipSpeed,
trig_index: usize
) -> Result<(), RytmError>
pub fn plock_set_spd( &self, spd: SyChipSpeed, trig_index: usize ) -> Result<(), RytmError>
Sets the parameter lock for the spd
parameter.
sourcepub fn plock_get_spd(
&self,
trig_index: usize
) -> Result<Option<SyChipSpeed>, RytmError>
pub fn plock_get_spd( &self, trig_index: usize ) -> Result<Option<SyChipSpeed>, RytmError>
Gets the parameter lock for the spd
parameter.
Trait Implementations§
source§impl Clone for SyChipParameters
impl Clone for SyChipParameters
source§fn clone(&self) -> SyChipParameters
fn clone(&self) -> SyChipParameters
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more