Struct synthizer::BiquadConfig
source · [−]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
sourceimpl 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
sourceimpl Clone for BiquadConfig
impl Clone for BiquadConfig
sourcefn clone(&self) -> BiquadConfig
fn clone(&self) -> BiquadConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for BiquadConfig
impl Debug for BiquadConfig
impl Copy for BiquadConfig
Auto Trait Implementations
impl RefUnwindSafe for BiquadConfig
impl Send for BiquadConfig
impl Sync for BiquadConfig
impl Unpin for BiquadConfig
impl UnwindSafe for BiquadConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more