Dusk Audio Framework
Loading...
Searching...
No Matches
ExponentialValueSmoother Class Reference

An exponential smoother for control values. More...

#include <ValueSmoother.hpp>

Public Member Functions

void setSampleRate (const float newSampleRate) noexcept
void setTimeConstant (const float newT60) noexcept
float getCurrentValue () const noexcept
float getTargetValue () const noexcept
void setTargetValue (const float newTarget) noexcept
void clearToTargetValue () noexcept
float peek () const noexcept
float next () noexcept

Detailed Description

An exponential smoother for control values.

This continually smooths a value towards a defined target, using a low-pass filter of the 1st order, which creates an exponential curve.

The length of the curve is defined by a T60 constant, which is the time it takes for a 1-to-0 smoothing to fall to -60dB.

Note that this smoother has asymptotical behavior, and it must not be assumed that the final target is ever reached.


The documentation for this class was generated from the following file: