- hasConverged
bool hasConverged(T target)
Undocumented in source. Be warned that the author may not have intended to support it.
- initialize
void initialize(float samplerate, float timeAttackRelease, T initialValue)
time: the time constant of the smoother.
threshold: absolute difference below which we consider current value and target equal
- nextBuffer
void nextBuffer(const(T)* input, T* output, int frames)
Undocumented in source. Be warned that the author may not have intended to support it.
- nextBuffer
void nextBuffer(T input, T* output, int frames)
Undocumented in source. Be warned that the author may not have intended to support it.
- nextSample
T nextSample(T target)
Advance smoothing and return the next smoothed sample with respect
to tau time and samplerate.
- setAttackReleaseTime
void setAttackReleaseTime(float timeAttackRelease)
Changes attack and release time (given in seconds).
Smooth values exponentially with a 1-pole lowpass. This is usually sufficient for most parameter smoothing.