The ParamSmoother object performs parameter smoothing on GUI control information. You can choose linear or exponential smoothing.
More...
#include <guiconstants.h>
template<class T>
class ParamSmoother< T >
The ParamSmoother object performs parameter smoothing on GUI control information. You can choose linear or exponential smoothing.
- Author
- Will Pirkle http://www.willpirkle.com
- Version
- Revision : 1.0
- Date
- Date : 2018 / 09 / 7
◆ initParamSmoother()
template<class T >
void ParamSmoother< T >::initParamSmoother |
( |
T |
smoothingTimeInMs, |
|
|
T |
samplingRate, |
|
|
T |
initValue, |
|
|
T |
minControlValue, |
|
|
T |
maxControlValue, |
|
|
smoothingMethod |
smoother = smoothingMethod::kLPFSmoother |
|
) |
| |
|
inline |
initialize the smoother; this recalculates internal coefficients
- Parameters
-
smoothingTimeInMs | the smoothing time in mSec to move from the two control extrema (min and max values) |
samplingRate | the new sampling rate |
initValue | initial (pre-smoothed) value |
minControlValue | minimum numerical value control takes |
maxControlValue | maximum numerical value control takes |
smoother | type of smoothing |
◆ setSampleRate()
set a new sample rate; this recalculates internal coefficients
- Parameters
-
samplingRate | the new sampling rate |
◆ smoothParameter()
perform smoothing operation
- Parameters
-
in | input sample |
out | smoothed value |
- Returns
- true if smoothing occurred, false otherwise (e.g. once control has assumed final value, smoothing is turned off)
The documentation for this class was generated from the following file:
- C:/RackAFX_v7/ASPIK_Doxygen/PluginTemplate/project_source/source/PluginKernel/guiconstants.h