pub struct FirEq { /* private fields */ }Expand description
FIR EQ generator: creates IR from band gain specifications
Implementations§
Source§impl FirEq
impl FirEq
Sourcepub fn new(sample_rate: f64, num_taps: usize) -> Self
pub fn new(sample_rate: f64, num_taps: usize) -> Self
Create a new FIR EQ generator
§Arguments
sample_rate- Audio sample rate in Hznum_taps- Number of FIR taps (must be odd, will be forced to odd if even)
Sourcepub fn set_sample_rate(&mut self, sr: f64)
pub fn set_sample_rate(&mut self, sr: f64)
Set sample rate (triggers IR regeneration)
Sourcepub fn set_num_taps(&mut self, taps: usize)
pub fn set_num_taps(&mut self, taps: usize)
Set number of taps (triggers IR regeneration)
Sourcepub fn set_phase_mode(&mut self, mode: FirPhaseMode)
pub fn set_phase_mode(&mut self, mode: FirPhaseMode)
Set phase mode (triggers IR regeneration)
Sourcepub fn set_band(&mut self, band_idx: usize, gain_db: f64)
pub fn set_band(&mut self, band_idx: usize, gain_db: f64)
Update a band gain (triggers IR regeneration)
§Arguments
band_idx- Band index (0-9 for standard 10-band EQ)gain_db- Gain in dB (-15 to +15)
Auto Trait Implementations§
impl Freeze for FirEq
impl RefUnwindSafe for FirEq
impl Send for FirEq
impl Sync for FirEq
impl Unpin for FirEq
impl UnsafeUnpin for FirEq
impl UnwindSafe for FirEq
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
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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