|
DSPark 1.6.1
Header-only audio DSP framework in pure C++20 — zero dependencies
|
Linear ramp smoother for predictable, uniform interpolation. More...
#include <Smoothers.h>
Public Member Functions | |
| void | reset (double sampleRate, float rampTimeMilliseconds, float initialValue=0.0f) noexcept |
| void | setTargetValue (float newTarget) noexcept |
| float | getNextValue () noexcept |
| float | getCurrentValue () const noexcept |
| float | getTargetValue () const noexcept |
| void | setCurrentAndTargetValue (float value) noexcept |
| bool | isSmoothing () const noexcept |
| void | skip () noexcept |
| void | processBlock (float *buffer, int numSamples, bool multiply=false) noexcept |
| Block processing for SIMD optimization. | |
Static Public Attributes | |
| static constexpr float | epsilon = 1e-6f |
Linear ramp smoother for predictable, uniform interpolation.
Use for: Gains, mix/dry-wet, pans, or most faders where exact timing is needed.
Definition at line 55 of file Smoothers.h.
|
inlinenoexcept |
Definition at line 64 of file Smoothers.h.
|
inlinenoexcept |
Definition at line 347 of file Smoothers.h.
|
inlinenoexcept |
Definition at line 65 of file Smoothers.h.
|
inlinenoexcept |
Definition at line 364 of file Smoothers.h.
|
inlinenoexcept |
Block processing for SIMD optimization.
| buffer | Pointer to the audio block float array. |
| numSamples | Number of samples to process. |
| multiply | If true, acts as a gain multiplier (buffer[i] *= val). Otherwise, offsets (buffer[i] += val). |
Definition at line 374 of file Smoothers.h.
|
inlinenoexcept |
Definition at line 327 of file Smoothers.h.
|
inlinenoexcept |
Definition at line 356 of file Smoothers.h.
|
inlinenoexcept |
Definition at line 336 of file Smoothers.h.
|
inlinenoexcept |
Definition at line 369 of file Smoothers.h.
|
staticconstexpr |
Definition at line 58 of file Smoothers.h.