mirror of
https://github.com/thestk/stk
synced 2026-01-17 14:41:53 +00:00
Version 3.2
This commit is contained in:
committed by
Stephen Sinclair
parent
4b6500d3de
commit
3f126af4e5
32
include/PoleZero.h
Normal file
32
include/PoleZero.h
Normal file
@@ -0,0 +1,32 @@
|
||||
/*******************************************/
|
||||
/* PoleZero (1-pole, 1-zero) Filter Class */
|
||||
/* by Gary P. Scavone, 1999 */
|
||||
/* */
|
||||
/* See books on filters to understand */
|
||||
/* more about how this works. Nothing */
|
||||
/* out of the ordinary in this version. */
|
||||
/*******************************************/
|
||||
|
||||
#if !defined(__PoleZero_h)
|
||||
#define __PoleZero_h
|
||||
|
||||
#include "Filter.h"
|
||||
|
||||
class PoleZero : public Filter
|
||||
{
|
||||
protected:
|
||||
MY_FLOAT a1Coeff;
|
||||
MY_FLOAT b0Coeff;
|
||||
MY_FLOAT b1Coeff;
|
||||
public:
|
||||
PoleZero();
|
||||
~PoleZero();
|
||||
void clear();
|
||||
void setA1(MY_FLOAT coeff);
|
||||
void setB0(MY_FLOAT coeff);
|
||||
void setB1(MY_FLOAT coeff);
|
||||
void setGain(MY_FLOAT aValue);
|
||||
MY_FLOAT tick(MY_FLOAT sample);
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user