Home   Information   Classes   Download   Usage   Mail List   Requirements   Links   Tutorial


Echo.h

00001 /***************************************************/
00009 /***************************************************/
00010 
00011 #if !defined(__ECHO_H)
00012 #define __ECHO_H
00013 
00014 #include "Stk.h" 
00015 #include "Delay.h" 
00016 
00017 class Echo : public Stk
00018 {
00019  public:
00021   Echo(MY_FLOAT longestDelay);
00022 
00024   ~Echo();
00025 
00027   void clear();
00028 
00030   void setDelay(MY_FLOAT delay);
00031 
00033   void setEffectMix(MY_FLOAT mix);
00034 
00036   MY_FLOAT lastOut() const;
00037 
00039   MY_FLOAT tick(MY_FLOAT input);
00040 
00042   MY_FLOAT *tick(MY_FLOAT *vector, unsigned int vectorSize);
00043 
00044  protected:  
00045   Delay *delayLine;
00046   long length;
00047   MY_FLOAT lastOutput;
00048   MY_FLOAT effectMix;
00049 
00050 };
00051 
00052 #endif
00053 

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