Home   Information   Classes   Download   Usage   Mail List   Requirements   Links   Tutorial


Echo.h

00001 /***************************************************/
00009 /***************************************************/
00010 
00011 #ifndef STK_ECHO_H
00012 #define STK_ECHO_H
00013 
00014 #include "Effect.h" 
00015 #include "Delay.h" 
00016 
00017 class Echo : public Effect
00018 {
00019  public:
00021 
00024   Echo( unsigned long maximumDelay = (unsigned long) Stk::sampleRate() );
00025 
00027   ~Echo();
00028 
00030   void clear();
00031 
00033   void setMaximumDelay( unsigned long delay );
00034 
00036   void setDelay( unsigned long delay );
00037 
00039   StkFloat tick(StkFloat input);
00040 
00042   StkFloat *tick( StkFloat *vector, unsigned int vectorSize );
00043 
00045 
00051   StkFrames& tick( StkFrames& frames, unsigned int channel = 1 );
00052 
00053  protected:  
00054   Delay delayLine_;
00055   unsigned long length_;
00056 
00057 };
00058 
00059 #endif
00060 

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