pub struct Lfo { /* private fields */ }
Expand description
Represents parameters in the lfo page of a sound.
Implementations§
source§impl Lfo
impl Lfo
sourcepub fn set_speed(&mut self, speed: isize) -> Result<(), RytmError>
pub fn set_speed(&mut self, speed: isize) -> Result<(), RytmError>
Sets the speed of the LFO.
Range: -64..=63
sourcepub fn set_multiplier(&mut self, multiplier: LfoMultiplier)
pub fn set_multiplier(&mut self, multiplier: LfoMultiplier)
Sets the multiplier of the LFO.
sourcepub fn set_fade(&mut self, fade: isize) -> Result<(), RytmError>
pub fn set_fade(&mut self, fade: isize) -> Result<(), RytmError>
Sets the fade of the LFO.
Range: -64..=63
sourcepub fn set_destination(&mut self, destination: LfoDestination)
pub fn set_destination(&mut self, destination: LfoDestination)
Sets the destination of the LFO.
sourcepub fn set_waveform(&mut self, waveform: LfoWaveform)
pub fn set_waveform(&mut self, waveform: LfoWaveform)
Sets the waveform of the LFO.
sourcepub fn set_depth(&mut self, depth: f32) -> Result<(), RytmError>
pub fn set_depth(&mut self, depth: f32) -> Result<(), RytmError>
Sets the depth of the LFO.
Range: -128.0..=127.99
sourcepub fn set_start_phase(
&mut self,
start_phase_or_slew: usize
) -> Result<(), RytmError>
pub fn set_start_phase( &mut self, start_phase_or_slew: usize ) -> Result<(), RytmError>
Sets the start phase of the LFO.
Range: 0..=127
sourcepub const fn multiplier(&self) -> LfoMultiplier
pub const fn multiplier(&self) -> LfoMultiplier
Returns the multiplier of the LFO.
sourcepub const fn destination(&self) -> LfoDestination
pub const fn destination(&self) -> LfoDestination
Returns the destination of the LFO.
sourcepub const fn waveform(&self) -> LfoWaveform
pub const fn waveform(&self) -> LfoWaveform
Returns the waveform of the LFO.
sourcepub const fn start_phase_or_slew(&self) -> usize
pub const fn start_phase_or_slew(&self) -> usize
Returns the start phase of the LFO.
Range: 0..=127
Trait Implementations§
source§impl<'de> Deserialize<'de> for Lfo
impl<'de> Deserialize<'de> for Lfo
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialOrd for Lfo
impl PartialOrd for Lfo
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<&ar_sound_t> for Lfo
impl TryFrom<&ar_sound_t> for Lfo
§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl Copy for Lfo
impl StructuralPartialEq for Lfo
Auto Trait Implementations§
impl RefUnwindSafe for Lfo
impl Send for Lfo
impl Sync for Lfo
impl Unpin for Lfo
impl UnwindSafe for Lfo
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more