Home Information Classes Download Usage Mail List Requirements Links FAQ Tutorial
00001 /***************************************************/ 00020 /***************************************************/ 00021 00022 #ifndef STK_DELAYA_H 00023 #define STK_DELAYA_H 00024 00025 #include "Delay.h" 00026 00027 class DelayA : public Delay 00028 { 00029 public: 00030 00032 DelayA(); 00033 00035 00040 DelayA(StkFloat delay, unsigned long maxDelay); 00041 00043 ~DelayA(); 00044 00046 void clear(); 00047 00049 00052 void setDelay(StkFloat delay); 00053 00055 StkFloat getDelay(void) const; 00056 00058 00061 StkFloat nextOut(void); 00062 00063 protected: 00064 00065 StkFloat computeSample( StkFloat input ); 00066 00067 StkFloat alpha_; 00068 StkFloat coeff_; 00069 StkFloat apInput_; 00070 StkFloat nextOutput_; 00071 bool doNextOut_; 00072 }; 00073 00074 #endif
The Synthesis ToolKit in C++ (STK) |
©1995-2007 Perry R. Cook and Gary P. Scavone. All Rights Reserved. |