Home Information Classes Download Usage Mail List Requirements Tutorial
00001 /***************************************************/ 00019 /***************************************************/ 00020 00021 #if !defined(__DELAY_H) 00022 #define __DELAY_H 00023 00024 #include "Filter.h" 00025 00026 class Delay : protected Filter 00027 { 00028 public: 00029 00031 Delay(); 00032 00034 Delay(long theDelay, long maxDelay); 00035 00037 virtual ~Delay(); 00038 00040 void clear(); 00041 00043 00046 void setDelay(long theDelay); 00047 00049 long getDelay(void) const; 00050 00052 MY_FLOAT energy(void) const; 00053 00055 00058 MY_FLOAT contentsAt(long tapDelay) const; 00059 00061 MY_FLOAT lastOut(void) const; 00062 00064 virtual MY_FLOAT tick(MY_FLOAT sample); 00065 00067 virtual MY_FLOAT *tick(MY_FLOAT *vector, unsigned int vectorSize); 00068 00069 protected: 00070 long inPoint; 00071 long outPoint; 00072 long length; 00073 MY_FLOAT delay; 00074 }; 00075 00076 #endif 00077
The Synthesis ToolKit in C++ (STK) |
©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved. |