AttackRelease

Undocumented in source.

Members

Functions

initialize
void initialize(float sampleRate, float timeAttackSecs, float timeReleaseSecs, 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.

setAttackTime
void setAttackTime(float timeAttackSecs)

Changes attack time (given in seconds).

setReleaseTime
void setReleaseTime(float timeReleaseSecs)

Changes release time (given in seconds).

Meta