Gamma  0.9.5
Generic Synthesis Library
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Threshold< T > Struct Template Reference

Compares signal magnitude to a threshold. More...

#include <Effects.h>

List of all members.

Public Member Functions

 Threshold (T thresh, T freq=10)
operator() (T i0)
 Returns 0 if less than threshold, 1 otherwise.
inv (T i0)
 Returns 1 if less than threshold, 0 otherwise.

Public Attributes

OnePole< T > lpf
 Output smoother.
thresh
 Threshold value.

Detailed Description

template<class T = gam::real>
struct gam::Threshold< T >

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.


Constructor & Destructor Documentation

Threshold ( thresh,
freq = 10 
)
Parameters:
[in]threshComparing threshold
[in]freqCutoff frequency of output smoother

The documentation for this struct was generated from the following file: