|
DSPark 1.6.1
Header-only audio DSP framework in pure C++20 — zero dependencies
|
Second-order state variable filter (SVF) smoother (TPT implementation). More...
#include <Smoothers.h>

Public Member Functions | |
| void | reset (double sampleRate, float timeConstantMilliseconds, float q=0.707f, 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 |
| float | getBandPassOutput () const noexcept |
| float | getHighPassOutput () const noexcept |
Static Public Attributes | |
| static constexpr float | epsilon = 1e-6f |
Second-order state variable filter (SVF) smoother (TPT implementation).
Internal state is double precision: smoothing time constants put the cutoff a few Hz above DC, where g = tan(pi*fc/fs) is ~1e-4 and float recursion stalls several 1e-5 short of the target (the settle check would then never fire). The public API stays float.
Definition at line 244 of file Smoothers.h.
|
inlinenoexcept |
Definition at line 258 of file Smoothers.h.
|
inlinenoexcept |
Definition at line 253 of file Smoothers.h.
|
inlinenoexcept |
Definition at line 259 of file Smoothers.h.
|
inlinenoexcept |
Definition at line 650 of file Smoothers.h.
|
inlinenoexcept |
Definition at line 254 of file Smoothers.h.
|
inlinenoexcept |
Definition at line 668 of file Smoothers.h.
|
inlinenoexcept |
Definition at line 618 of file Smoothers.h.
|
inlinenoexcept |
Definition at line 645 of file Smoothers.h.
|
inlinenoexcept |
Definition at line 678 of file Smoothers.h.
|
staticconstexpr |
Definition at line 247 of file Smoothers.h.