|
DSPark 1.9.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 299 of file Smoothers.h.
|
inlinenoexcept |
Definition at line 308 of file Smoothers.h.
|
inlinenoexcept |
Definition at line 803 of file Smoothers.h.
|
inlinenoexcept |
Definition at line 309 of file Smoothers.h.
|
inlinenoexcept |
Definition at line 817 of file Smoothers.h.
|
inlinenoexcept |
Definition at line 758 of file Smoothers.h.
|
inlinenoexcept |
Definition at line 798 of file Smoothers.h.
|
inlinenoexcept |
Definition at line 829 of file Smoothers.h.
|
staticconstexpr |
Definition at line 302 of file Smoothers.h.