pub struct FxLfo { /* private fields */ }
Expand description
Lfo parameters for the fx.
Implementations§
source§impl FxLfo
impl FxLfo
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: FxLfoDestination)
pub fn set_destination(&mut self, destination: FxLfoDestination)
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_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) -> &FxLfoDestination
pub const fn destination(&self) -> &FxLfoDestination
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.
Trait Implementations§
source§impl<'de> Deserialize<'de> for FxLfo
impl<'de> Deserialize<'de> for FxLfo
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 PartialEq for FxLfo
impl PartialEq for FxLfo
source§impl PartialOrd for FxLfo
impl PartialOrd for FxLfo
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 moreimpl Copy for FxLfo
impl StructuralPartialEq for FxLfo
Auto Trait Implementations§
impl RefUnwindSafe for FxLfo
impl Send for FxLfo
impl Sync for FxLfo
impl Unpin for FxLfo
impl UnwindSafe for FxLfo
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