|
DSPark 1.6.1
Header-only audio DSP framework in pure C++20 — zero dependencies
|
Authentic one-pole exponential IIR low-pass smoother. 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 |
Authentic one-pole exponential IIR low-pass smoother.
Implements analog-style smoothing. Anti-denormal protected.
Internal state is double precision: in float the recursion stalls once coeff * delta rounds back to the same value, parking the output around ulp(target) / (1 - coeff) away from the target (about 1e-5 for a 10 ms tau at 48 kHz and unity-scale targets), outside the settle window, so isSmoothing() would never turn off. The public API stays float.
Definition at line 136 of file Smoothers.h.
|
inlinenoexcept |
Definition at line 145 of file Smoothers.h.
|
inlinenoexcept |
Definition at line 476 of file Smoothers.h.
|
inlinenoexcept |
Definition at line 146 of file Smoothers.h.
|
inlinenoexcept |
Definition at line 483 of file Smoothers.h.
|
inlinenoexcept |
Definition at line 462 of file Smoothers.h.
|
inlinenoexcept |
Definition at line 471 of file Smoothers.h.
|
inlinenoexcept |
Definition at line 488 of file Smoothers.h.
|
staticconstexpr |
Definition at line 139 of file Smoothers.h.