27template<
typename T =
float>
38 void reset() { last_in_ = T(0); last_out_ = T(0); }
45 const T y =
snap_to_zero(x - last_in_ + pole_ * last_out_);
53 for (
int i = 0;
i < n; ++
i)
void set_pole(T pole)
Set the pole position (typically 0.99..0.999).
Definition dc_blocker.hpp:35
T process(T x)
Process one sample.
Definition dc_blocker.hpp:41
void reset()
Clear filter state. Call between unrelated streams.
Definition dc_blocker.hpp:38
void process(T *samples, int n)
Process a block in-place.
Definition dc_blocker.hpp:52
Definition additive_bank.hpp:218
T snap_to_zero(T x)
Returns 0 if |x| < snap_threshold, else x.
Definition denormal.hpp:45
@ i
Definition formant_filter_bank.hpp:20