1
/*******************************************/
2
/* One Zero Filter Class, */
3
/* by Perry R. Cook, 1995-96 */
4
/* The parameter gain is an additional */
5
/* gain parameter applied to the filter */
6
/* on top of the normalization that takes */
7
/* place automatically. So the net max */
8
/* gain through the system equals the */
9
/* value of gain. sgain is the combina- */
10
/* tion of gain and the normalization */
11
/* parameter, so if you set the poleCoeff */
12
/* to alpha, sgain is always set to */
13
/* gain / (1.0 - fabs(alpha)). */
14
/*******************************************/
16
#if !defined(__OneZero_h)
21
class OneZero : public Filter
30
void setGain(MY_FLOAT aValue);
31
void setCoeff(MY_FLOAT aValue);
32
MY_FLOAT tick(MY_FLOAT sample);