Home   Information   Classes   Download   Usage   Mail List   Requirements   Links   Tutorial


DelayA.h

00001 /***************************************************/
00023 /***************************************************/
00024 
00025 #ifndef STK_DELAYA_H
00026 #define STK_DELAYA_H
00027 
00028 #include "Delay.h"
00029 
00030 class DelayA : public Delay
00031 {
00032 public:
00033 
00035   DelayA();
00036 
00038 
00043   DelayA(StkFloat delay, unsigned long maxDelay);
00044 
00046   ~DelayA();
00047 
00049   void clear();
00050 
00052 
00055   void setDelay(StkFloat delay);
00056 
00058   StkFloat getDelay(void);
00059 
00061 
00064   StkFloat nextOut(void);
00065 
00067   StkFloat tick(StkFloat sample);
00068 
00070   virtual StkFloat *tick(StkFloat *vector, unsigned int vectorSize);
00071 
00073 
00079   virtual StkFrames& tick( StkFrames& frames, unsigned int channel = 1 );
00080 
00081 protected:  
00082   StkFloat alpha_;
00083   StkFloat coeff_;
00084   StkFloat apInput_;
00085   StkFloat nextOutput_;
00086   bool doNextOut_;
00087 };
00088 
00089 #endif

The Synthesis ToolKit in C++ (STK)
©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved.