pub struct BiquadConfig { /* private fields */ }
Expand description
Biquad filters. This is used primarily as the value to biquad properties. The member functions match the Synthizer C functions of the same name.
Since Rust doesn’t have default parameters, you can use DEFAULT_Q
for
Synthizer’s suggested default Q.
The Default
impl on this struct returns an identity filter designed with
syz_biquadDesignIdentity
, a filter which passes audio through unchanged.
Implementations§
Source§impl BiquadConfig
impl BiquadConfig
pub fn design_identity() -> Result<BiquadConfig>
pub fn design_lowpass(frequency: f64, q: f64) -> Result<BiquadConfig>
pub fn design_highpass(frequency: f64, q: f64) -> Result<BiquadConfig>
pub fn design_bandpass(frequency: f64, bw: f64) -> Result<BiquadConfig>
Trait Implementations§
Source§impl Clone for BiquadConfig
impl Clone for BiquadConfig
Source§fn clone(&self) -> BiquadConfig
fn clone(&self) -> BiquadConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BiquadConfig
impl Debug for BiquadConfig
impl Copy for BiquadConfig
Auto Trait Implementations§
impl Freeze for BiquadConfig
impl RefUnwindSafe for BiquadConfig
impl Send for BiquadConfig
impl Sync for BiquadConfig
impl Unpin for BiquadConfig
impl UnwindSafe for BiquadConfig
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