synththing-plusplus/src/filters/svf.h

44 lines
576 B
C++

/*
* Filename: svf.h
*
* Description:
*
*
* Version:
* Created: Thu Oct 31 23:24:28 2019
* Revision: None
* Author: Rachel Fae Fox (foxiepaws),fox@foxiepa.ws
*
*/
#ifndef _H_SVF
#define _H_SVF
enum FilterMode { _low, _band, _high, _notch };
class SVF {
public:
float freq;
float q;
FilterMode mode;
float notch;
float band;
float high;
float low;
float run(float);
SVF(FilterMode);
protected:
void reset();
private:
int sample_rate;
};
#endif
/* Local Variables: */
/* mode: c++ */
/* End: */