pub struct BiquadDesign;Expand description
Coefficient calculation following the RBJ Audio EQ Cookbook.
Implementations§
Source§impl BiquadDesign
impl BiquadDesign
Sourcepub fn lowpass(cutoff_hz: f32, q: f32, sample_rate: f32) -> Biquad
pub fn lowpass(cutoff_hz: f32, q: f32, sample_rate: f32) -> Biquad
2nd-order lowpass Butterworth.
Sourcepub fn highpass(cutoff_hz: f32, q: f32, sample_rate: f32) -> Biquad
pub fn highpass(cutoff_hz: f32, q: f32, sample_rate: f32) -> Biquad
2nd-order highpass Butterworth.
Sourcepub fn bandpass(center_hz: f32, bandwidth_hz: f32, sample_rate: f32) -> Biquad
pub fn bandpass(center_hz: f32, bandwidth_hz: f32, sample_rate: f32) -> Biquad
2nd-order bandpass (constant 0 dB peak gain, BPF skirt gain = Q).
Sourcepub fn notch(center_hz: f32, q: f32, sample_rate: f32) -> Biquad
pub fn notch(center_hz: f32, q: f32, sample_rate: f32) -> Biquad
2nd-order notch (band-reject).
Sourcepub fn low_shelf(
cutoff_hz: f32,
gain_db: f32,
slope: f32,
sample_rate: f32,
) -> Biquad
pub fn low_shelf( cutoff_hz: f32, gain_db: f32, slope: f32, sample_rate: f32, ) -> Biquad
Low shelf.
Auto Trait Implementations§
impl Freeze for BiquadDesign
impl RefUnwindSafe for BiquadDesign
impl Send for BiquadDesign
impl Sync for BiquadDesign
impl Unpin for BiquadDesign
impl UnsafeUnpin for BiquadDesign
impl UnwindSafe for BiquadDesign
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.