Home   Information   Classes   Download   Usage   Mail List   Requirements   Links   FAQ   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 
00038  protected:
00039 
00040   StkFloat computeSample( StkFloat input );
00041 
00042   Delay delayLine_;
00043   unsigned long length_;
00044 
00045 };
00046 
00047 #endif
00048 

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