pub struct Df2tBiquad {
pub state: Df2tState,
pub active: BiquadCoeffs,
pub target: BiquadCoeffs,
pub delta: BiquadCoeffs,
}Expand description
Single DF2T biquad filter with linear coefficient ramping.
Fields§
§state: Df2tStateDF2T state registers.
active: BiquadCoeffsCoefficients in use this sample (ramped per-sample toward target).
target: BiquadCoeffsCoefficients being ramped toward over the current quantum.
delta: BiquadCoeffsPer-sample increment derived in set_target_quantum.
Implementations§
Source§impl Df2tBiquad
impl Df2tBiquad
Sourcepub fn set_target_quantum(&mut self, target: BiquadCoeffs)
pub fn set_target_quantum(&mut self, target: BiquadCoeffs)
Prepare ramping step towards new target coefficients over the next 128-sample quantum.
Sourcepub fn process_sample(&mut self, input: f32) -> f32
pub fn process_sample(&mut self, input: f32) -> f32
Process a single sample using DF2T transposed topology with 5-addition coefficient ramp.
Trait Implementations§
Source§impl Clone for Df2tBiquad
impl Clone for Df2tBiquad
Source§impl Debug for Df2tBiquad
impl Debug for Df2tBiquad
Auto Trait Implementations§
impl Freeze for Df2tBiquad
impl RefUnwindSafe for Df2tBiquad
impl Send for Df2tBiquad
impl Sync for Df2tBiquad
impl Unpin for Df2tBiquad
impl UnsafeUnpin for Df2tBiquad
impl UnwindSafe for Df2tBiquad
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.