mirror of
https://github.com/thestk/stk
synced 2026-01-11 20:11:52 +00:00
28 lines
650 B
C++
28 lines
650 B
C++
/*******************************************/
|
|
/* Two Zero Filter Class, */
|
|
/* by Perry R. Cook, 1995-96 */
|
|
/* See books on filters to understand */
|
|
/* more about how this works. Nothing */
|
|
/* out of the ordinary in this version. */
|
|
/*******************************************/
|
|
|
|
#if !defined(__TwoZero_h)
|
|
#define __TwoZero_h
|
|
|
|
#include "Filter.h"
|
|
|
|
class TwoZero : public Filter
|
|
{
|
|
protected:
|
|
MY_FLOAT zeroCoeffs[2];
|
|
public:
|
|
TwoZero();
|
|
~TwoZero();
|
|
void clear();
|
|
void setZeroCoeffs(MY_FLOAT *coeffs);
|
|
void setGain(MY_FLOAT aValue);
|
|
MY_FLOAT tick(MY_FLOAT sample);
|
|
};
|
|
|
|
#endif
|