pub struct LfoBlock<S>where
S: Sample,{
pub frequency: Parameter<S>,
pub depth: Parameter<S>,
/* private fields */
}Expand description
A low-frequency oscillator for modulating block parameters.
Generates control signals (typically < 20 Hz) using standard waveforms. Output range is -depth to +depth, centered at zero.
Fields§
§frequency: Parameter<S>LFO frequency in Hz (typically 0.01-20 Hz).
depth: Parameter<S>Modulation depth (output amplitude).
Implementations§
Trait Implementations§
Source§impl<S> Block<S> for LfoBlock<S>where
S: Sample,
impl<S> Block<S> for LfoBlock<S>where
S: Sample,
Source§fn process(
&mut self,
_inputs: &[&[S]],
outputs: &mut [&mut [S]],
modulation_values: &[S],
context: &DspContext,
)
fn process( &mut self, _inputs: &[&[S]], outputs: &mut [&mut [S]], modulation_values: &[S], context: &DspContext, )
Process audio through this block. Read more
Source§fn input_count(&self) -> usize
fn input_count(&self) -> usize
Returns the number of input ports this block accepts.
Source§fn output_count(&self) -> usize
fn output_count(&self) -> usize
Returns the number of output ports this block produces.
Source§fn modulation_outputs(&self) -> &[ModulationOutput]
fn modulation_outputs(&self) -> &[ModulationOutput]
Returns the modulation outputs this block provides. Read more
Source§fn channel_config(&self) -> ChannelConfig
fn channel_config(&self) -> ChannelConfig
Returns how this block handles multi-channel audio. Read more
Auto Trait Implementations§
impl<S> Freeze for LfoBlock<S>where
S: Freeze,
impl<S> RefUnwindSafe for LfoBlock<S>where
S: RefUnwindSafe,
impl<S> Send for LfoBlock<S>
impl<S> Sync for LfoBlock<S>
impl<S> Unpin for LfoBlock<S>where
S: Unpin,
impl<S> UnwindSafe for LfoBlock<S>where
S: UnwindSafe,
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