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