Home Information Classes Download Usage Mail List Requirements Links Tutorial
00001 /***************************************************/ 00013 /***************************************************/ 00014 00015 #ifndef STK_POLEZERO_H 00016 #define STK_POLEZERO_H 00017 00018 #include "Filter.h" 00019 00020 class PoleZero : protected Filter 00021 { 00022 public: 00023 00025 PoleZero(); 00026 00028 ~PoleZero(); 00029 00031 void clear(void); 00032 00034 void setB0(StkFloat b0); 00035 00037 void setB1(StkFloat b1); 00038 00040 void setA1(StkFloat a1); 00041 00043 00048 void setAllpass(StkFloat coefficient); 00049 00051 00057 void setBlockZero(StkFloat thePole = 0.99); 00058 00060 00064 void setGain(StkFloat gain); 00065 00067 StkFloat getGain(void) const; 00068 00070 StkFloat lastOut(void) const; 00071 00073 StkFloat tick(StkFloat sample); 00074 00076 StkFloat *tick(StkFloat *vector, unsigned int vectorSize); 00077 00079 00085 StkFrames& tick( StkFrames& frames, unsigned int channel = 1 ); 00086 00087 }; 00088 00089 #endif
The Synthesis ToolKit in C++ (STK) |
©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved. |