RC low-pass filter for parameter smoothing. More...
#include <ame_RcLowPass.hpp>
Public Member Functions | |
RcLowPass (FloatType sampleRate) | |
void | setSampleRate (FloatType newSampleRate) noexcept |
Set new sampleRate. | |
void | setCutOffFrequency (FloatType cutOffFrequency) noexcept |
LPF cutoff. More... | |
void | setRawCoefficient (FloatType newRawCoefficient) |
Set raw coefficient value. More... | |
FloatType | getRawCoefficient () const noexcept |
Get raw value of coefficient. More... | |
FloatType | process (FloatType input) noexcept |
Process filter. More... | |
RC low-pass filter for parameter smoothing.
y[t] = x[t] * coef + (1-coef) * y[t-1]
FloatType | float or double |
|
inlinenoexcept |
Get raw value of coefficient.
|
inlinenoexcept |
Process filter.
input |
|
inlinenoexcept |
LPF cutoff.
a=\frac{2\pi\cdotΔT\cdot f_{c}}{2\pi\cdotΔT\cdot f_{c}+1}
cutOffFrequency | cutoff frequency in Hz |
|
inline |
Set raw coefficient value.
newRawCoefficient | [0.0 < newRawCoefficient <= 1.0] |