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§
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 copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more