Struct Vcf
pub struct Vcf { /* private fields */ }Expand description
4-pole resonant lowpass filter modeled after the CEM3320/AS3320.
Uses a simplified Moog ladder topology with tanh saturation for analog-like resonance and self-oscillation behavior.
Implementations§
§impl Vcf
impl Vcf
pub fn set_cv_cutoff(&mut self, cv: f64)
pub fn set_cv_cutoff(&mut self, cv: f64)
Set cutoff frequency via CV (1V/octave from 1kHz base).
pub fn set_cutoff(&mut self, freq: f64)
pub fn set_cutoff(&mut self, freq: f64)
Set cutoff frequency directly in Hz.
pub fn set_resonance(&mut self, res: f64)
pub fn set_resonance(&mut self, res: f64)
Set resonance (0.0 - 1.0).
pub fn reset(&mut self)
pub fn reset(&mut self)
Reset filter state.
pub fn set_sample_rate(&mut self, sample_rate: f64)
pub fn set_sample_rate(&mut self, sample_rate: f64)
Update sample rate.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Vcf
impl RefUnwindSafe for Vcf
impl Send for Vcf
impl Sync for Vcf
impl Unpin for Vcf
impl UnsafeUnpin for Vcf
impl UnwindSafe for Vcf
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