mirror of
https://github.com/thestk/stk
synced 2026-01-11 20:11:52 +00:00
29 lines
653 B
C++
29 lines
653 B
C++
/*******************************************/
|
|
/* Filter Class, by Perry R. Cook, 1995-96*/
|
|
/* This is the base class for all filters.*/
|
|
/* To me, most anything is a filter, but */
|
|
/* I'll be a little less general here, and*/
|
|
/* define a filter as something which has */
|
|
/* input(s), output(s), and gain. */
|
|
/*******************************************/
|
|
|
|
#if !defined(__Filter_h)
|
|
#define __Filter_h
|
|
|
|
#include "Object.h"
|
|
|
|
class Filter : public Object
|
|
{
|
|
protected:
|
|
MY_FLOAT gain;
|
|
MY_FLOAT *outputs;
|
|
MY_FLOAT *inputs;
|
|
MY_FLOAT lastOutput;
|
|
public:
|
|
Filter();
|
|
virtual ~Filter();
|
|
MY_FLOAT lastOut();
|
|
};
|
|
|
|
#endif
|