Home Information Classes Download Usage Mail List Requirements Links FAQ Tutorial
00001 /***************************************************/ 00013 /***************************************************/ 00014 00015 #ifndef STK_TWOZERO_H 00016 #define STK_TWOZERO_H 00017 00018 #include "Filter.h" 00019 00020 class TwoZero : protected Filter 00021 { 00022 public: 00024 TwoZero(); 00025 00027 ~TwoZero(); 00028 00030 void ignoreSampleRateChange( bool ignore = true ) { ignoreSampleRateChange_ = ignore; }; 00031 00033 void clear(void); 00034 00036 void setB0(StkFloat b0); 00037 00039 void setB1(StkFloat b1); 00040 00042 void setB2(StkFloat b2); 00043 00045 00055 void setNotch(StkFloat frequency, StkFloat radius); 00056 00058 00062 void setGain(StkFloat gain); 00063 00065 StkFloat getGain(void) const; 00066 00068 StkFloat lastOut(void) const; 00069 00071 StkFloat tick(StkFloat sample); 00072 00074 00080 StkFrames& tick( StkFrames& frames, unsigned int channel = 0 ); 00081 00082 protected: 00083 00084 virtual void sampleRateChanged( StkFloat newRate, StkFloat oldRate ); 00085 }; 00086 00087 #endif
The Synthesis ToolKit in C++ (STK) |
©1995-2007 Perry R. Cook and Gary P. Scavone. All Rights Reserved. |