A lowpass filter that can be used to smooth parameter changes. More...
Public Member Functions | |
DownsampledSmoother () | |
Creates a new smoother. More... | |
float | getSmoothingTime () const |
Returns the smoothing time in seconds. More... | |
void | prepareToPlay (double sampleRate_) |
Sets the internal sample rate. More... | |
void | setDefaultValue (float value) |
Sets the internal value to the given number. More... | |
void | setSmoothingTime (float newSmoothTime) |
Sets the smoothing time in seconds. More... | |
float | smooth (float newValue) |
smooth the next sample. More... | |
A lowpass filter that can be used to smooth parameter changes.
|
inline |
Creates a new smoother.
If you use this manually, you have to call prepareToPlay() and setSmoothingTime() before using it.
|
inline |
Returns the smoothing time in seconds.
|
inline |
Sets the internal sample rate.
Call this method before setting the smooth time.
|
inline |
Sets the internal value to the given number.
Use this to prevent clicks for the first smoothing operation (default is 0.0)
|
inline |
Sets the smoothing time in seconds.
If you pass 0.0 as parameter, the smoother gets deactivated and saves precious CPU cycles.
|
inline |
smooth the next sample.