pub struct Equalizer {
pub low_gain: f64,
pub mid_gain: f64,
pub high_gain: f64,
/* private fields */
}Expand description
Simple 3-band EQ (low, mid, high) using biquad filters.
Fields§
§low_gain: f64§mid_gain: f64§high_gain: f64Implementations§
Source§impl Equalizer
impl Equalizer
Sourcepub fn new(sample_rate: f64) -> Self
pub fn new(sample_rate: f64) -> Self
Build the three biquads at 200 Hz (low-pass), 1 kHz (band-pass), and 3 kHz (high-pass); all band gains start at 0 dB.
Sourcepub fn set_band_gains(&mut self, low_db: f64, mid_db: f64, high_db: f64)
pub fn set_band_gains(&mut self, low_db: f64, mid_db: f64, high_db: f64)
Set per-band gains in dB (applied multiplicatively to each band’s output).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Equalizer
impl RefUnwindSafe for Equalizer
impl Send for Equalizer
impl Sync for Equalizer
impl Unpin for Equalizer
impl UnsafeUnpin for Equalizer
impl UnwindSafe for Equalizer
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more