Compares signal magnitude to a threshold. More...
#include <Effects.h>
Public Member Functions | |
Threshold (T thresh, T freq=10) | |
T | operator() (T i0) |
Returns 0 if less than threshold, 1 otherwise. | |
T | inv (T i0) |
Returns 1 if less than threshold, 0 otherwise. | |
Public Attributes | |
OnePole< T > | lpf |
Output smoother. | |
T | thresh |
Threshold value. |
Compares signal magnitude to a threshold.
This filter compares the input magnitude to a threshold and returns 1 if it's greater than the threshold and 0 otherwise. The output is sent through a one-pole low-pass filter.
Threshold | ( | T | thresh, |
T | freq = 10 |
||
) |
[in] | thresh | Comparing threshold |
[in] | freq | Cutoff frequency of output smoother |