Home   Information   Classes   Download   Usage   Mail List   Requirements   Tutorial


Reverb.h

00001 /***************************************************/
00010 /***************************************************/
00011 
00012 #include "Stk.h"
00013 
00014 #if !defined(__REVERB_H)
00015 #define __REVERB_H
00016 
00017 class Reverb : public Stk
00018 {
00019  public:
00021   Reverb();
00022 
00024   virtual ~Reverb();
00025 
00027   virtual void clear() = 0;
00028 
00030   void setEffectMix(MY_FLOAT mix);
00031 
00033   MY_FLOAT lastOut() const;
00034 
00036   MY_FLOAT lastOutLeft() const;
00037 
00039   MY_FLOAT lastOutRight() const;
00040 
00042   virtual MY_FLOAT tick(MY_FLOAT input) = 0;
00043 
00045   virtual MY_FLOAT *tick(MY_FLOAT *vector, unsigned int vectorSize);
00046 
00047  protected:
00048 
00049   // Returns true if argument value is prime.
00050   bool isPrime(int number);
00051 
00052   MY_FLOAT lastOutput[2];
00053   MY_FLOAT effectMix;
00054 
00055 };
00056 
00057 #endif // defined(__REVERB_H)
00058 

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