pub struct HhLabParameters { /* private fields */ }
Expand description
Parameters for the HhLab
machine.
Implementations§
source§impl HhLabParameters
impl HhLabParameters
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 set_osc1(&mut self, osc1: usize) -> Result<(), RytmError>
pub fn set_osc1(&mut self, osc1: usize) -> Result<(), RytmError>
Sets the osc1
parameter.
Range: 0..=16256
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 set_osc2(&mut self, osc2: usize) -> Result<(), RytmError>
pub fn set_osc2(&mut self, osc2: usize) -> Result<(), RytmError>
Sets the osc2
parameter.
Range: 0..=16256
sourcepub fn set_osc3(&mut self, osc3: usize) -> Result<(), RytmError>
pub fn set_osc3(&mut self, osc3: usize) -> Result<(), RytmError>
Sets the osc3
parameter.
Range: 0..=16256
sourcepub fn set_osc4(&mut self, osc4: usize) -> Result<(), RytmError>
pub fn set_osc4(&mut self, osc4: usize) -> Result<(), RytmError>
Sets the osc4
parameter.
Range: 0..=16256
sourcepub fn set_osc5(&mut self, osc5: usize) -> Result<(), RytmError>
pub fn set_osc5(&mut self, osc5: usize) -> Result<(), RytmError>
Sets the osc5
parameter.
Range: 0..=16256
source§impl HhLabParameters
impl HhLabParameters
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
sourcepub fn plock_get_lev(
&self,
trig_index: usize
) -> Result<Option<usize>, RytmError>
pub fn plock_get_lev( &self, trig_index: usize ) -> Result<Option<usize>, RytmError>
Gets the parameter lock for the lev
parameter.
Range: 0..=127
sourcepub fn plock_clear_lev(&self, trig_index: usize) -> Result<(), RytmError>
pub fn plock_clear_lev(&self, trig_index: usize) -> Result<(), RytmError>
Clears the parameter lock for the lev
parameter if set.
sourcepub fn plock_set_osc1(
&self,
osc1: usize,
trig_index: usize
) -> Result<(), RytmError>
pub fn plock_set_osc1( &self, osc1: usize, trig_index: usize ) -> Result<(), RytmError>
Sets the parameter lock for the osc1
parameter.
Range: 0..=16256
sourcepub fn plock_get_osc1(
&self,
trig_index: usize
) -> Result<Option<usize>, RytmError>
pub fn plock_get_osc1( &self, trig_index: usize ) -> Result<Option<usize>, RytmError>
Gets the parameter lock for the osc1
parameter.
Range: 0..=16256
sourcepub fn plock_clear_osc1(&self, trig_index: usize) -> Result<(), RytmError>
pub fn plock_clear_osc1(&self, trig_index: usize) -> Result<(), RytmError>
Clears the parameter lock for the osc1
parameter if set.
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
sourcepub fn plock_get_dec(
&self,
trig_index: usize
) -> Result<Option<usize>, RytmError>
pub fn plock_get_dec( &self, trig_index: usize ) -> Result<Option<usize>, RytmError>
Gets the parameter lock for the dec
parameter.
Range: 0..=127
sourcepub fn plock_clear_dec(&self, trig_index: usize) -> Result<(), RytmError>
pub fn plock_clear_dec(&self, trig_index: usize) -> Result<(), RytmError>
Clears the parameter lock for the dec
parameter if set.
sourcepub fn plock_set_osc2(
&self,
osc2: usize,
trig_index: usize
) -> Result<(), RytmError>
pub fn plock_set_osc2( &self, osc2: usize, trig_index: usize ) -> Result<(), RytmError>
Sets the parameter lock for the osc2
parameter.
Range: 0..=16256
sourcepub fn plock_get_osc2(
&self,
trig_index: usize
) -> Result<Option<usize>, RytmError>
pub fn plock_get_osc2( &self, trig_index: usize ) -> Result<Option<usize>, RytmError>
Gets the parameter lock for the osc2
parameter.
Range: 0..=16256
sourcepub fn plock_clear_osc2(&self, trig_index: usize) -> Result<(), RytmError>
pub fn plock_clear_osc2(&self, trig_index: usize) -> Result<(), RytmError>
Clears the parameter lock for the osc2
parameter if set.
sourcepub fn plock_set_osc3(
&self,
osc3: usize,
trig_index: usize
) -> Result<(), RytmError>
pub fn plock_set_osc3( &self, osc3: usize, trig_index: usize ) -> Result<(), RytmError>
Sets the parameter lock for the osc3
parameter.
Range: 0..=16256
sourcepub fn plock_get_osc3(
&self,
trig_index: usize
) -> Result<Option<usize>, RytmError>
pub fn plock_get_osc3( &self, trig_index: usize ) -> Result<Option<usize>, RytmError>
Gets the parameter lock for the osc3
parameter.
Range: 0..=16256
sourcepub fn plock_clear_osc3(&self, trig_index: usize) -> Result<(), RytmError>
pub fn plock_clear_osc3(&self, trig_index: usize) -> Result<(), RytmError>
Clears the parameter lock for the osc3
parameter if set.
sourcepub fn plock_set_osc4(
&self,
osc4: usize,
trig_index: usize
) -> Result<(), RytmError>
pub fn plock_set_osc4( &self, osc4: usize, trig_index: usize ) -> Result<(), RytmError>
Sets the parameter lock for the osc4
parameter.
Range: 0..=16256
sourcepub fn plock_get_osc4(
&self,
trig_index: usize
) -> Result<Option<usize>, RytmError>
pub fn plock_get_osc4( &self, trig_index: usize ) -> Result<Option<usize>, RytmError>
Gets the parameter lock for the osc4
parameter.
Range: 0..=16256
sourcepub fn plock_clear_osc4(&self, trig_index: usize) -> Result<(), RytmError>
pub fn plock_clear_osc4(&self, trig_index: usize) -> Result<(), RytmError>
Clears the parameter lock for the osc4
parameter if set.
sourcepub fn plock_set_osc5(
&self,
osc5: usize,
trig_index: usize
) -> Result<(), RytmError>
pub fn plock_set_osc5( &self, osc5: usize, trig_index: usize ) -> Result<(), RytmError>
Sets the parameter lock for the osc5
parameter.
Range: 0..=16256
sourcepub fn plock_get_osc5(
&self,
trig_index: usize
) -> Result<Option<usize>, RytmError>
pub fn plock_get_osc5( &self, trig_index: usize ) -> Result<Option<usize>, RytmError>
Gets the parameter lock for the osc5
parameter.
Range: 0..=16256
sourcepub fn plock_clear_osc5(&self, trig_index: usize) -> Result<(), RytmError>
pub fn plock_clear_osc5(&self, trig_index: usize) -> Result<(), RytmError>
Clears the parameter lock for the osc5
parameter if set.
sourcepub fn plock_set_osc6(
&self,
osc6: usize,
trig_index: usize
) -> Result<(), RytmError>
pub fn plock_set_osc6( &self, osc6: usize, trig_index: usize ) -> Result<(), RytmError>
Sets the parameter lock for the osc6
parameter.
Range: 0..=16256
Trait Implementations§
source§impl Clone for HhLabParameters
impl Clone for HhLabParameters
source§fn clone(&self) -> HhLabParameters
fn clone(&self) -> HhLabParameters
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more