|
DSPark 1.8.0
Header-only C++20 DSP for real-time and offline audio
|
Butterworth low-pass smoother for maximally flat response. More...
#include <Smoothers.h>
Public Member Functions | |
| void | reset (double sampleRate, float timeConstantMilliseconds, float initialValue=0.0f) noexcept |
| void | setTargetValue (float newTarget) noexcept |
| float | getNextValue () noexcept |
| float | getCurrentValue () const noexcept |
| float | getTargetValue () const noexcept |
| bool | isSmoothing () const noexcept |
| void | skip () noexcept |
Static Public Attributes | |
| static constexpr float | epsilon = 1e-6f |
Butterworth low-pass smoother for maximally flat response.
Internal state is double precision. This is not optional here: smoothing time constants put the cutoff a few Hz above DC, where the TDF-II biquad has b0 ~ 1e-8; in float the state recursion loses the tiny increments to rounding and the step response stalls far short of the target. The public API stays float.
Definition at line 285 of file Smoothers.h.
|
inlinenoexcept |
Definition at line 294 of file Smoothers.h.
|
inlinenoexcept |
Definition at line 741 of file Smoothers.h.
|
inlinenoexcept |
Definition at line 295 of file Smoothers.h.
|
inlinenoexcept |
Definition at line 755 of file Smoothers.h.
|
inlinenoexcept |
Definition at line 696 of file Smoothers.h.
|
inlinenoexcept |
Definition at line 736 of file Smoothers.h.
|
inlinenoexcept |
Definition at line 767 of file Smoothers.h.
|
staticconstexpr |
Definition at line 288 of file Smoothers.h.