Home   Information   Classes   Download   Usage   Mail List   Requirements   Links   Tutorial


Effect.h

00001 /***************************************************/
00010 /***************************************************/
00011 
00012 #include "Stk.h"
00013 
00014 #ifndef STK_EFFECT_H
00015 #define STK_EFFECT_H
00016 
00017 class Effect : public Stk
00018 {
00019  public:
00021   Effect();
00022 
00024   virtual ~Effect();
00025 
00027   virtual void clear() = 0;
00028 
00030   void setEffectMix(StkFloat mix);
00031 
00033   StkFloat lastOut() const;
00034 
00036   StkFloat lastOutLeft() const;
00037 
00039   StkFloat lastOutRight() const;
00040 
00042   virtual StkFloat tick( StkFloat input ) = 0;
00043 
00045   virtual StkFloat *tick( StkFloat *vector, unsigned int vectorSize );
00046 
00048 
00054   virtual StkFrames& tick( StkFrames& frames, unsigned int channel = 1 );
00055 
00056  protected:
00057 
00058   // Returns true if argument value is prime.
00059   bool isPrime( int number );
00060 
00061   StkFloat lastOutput_[2];
00062   StkFloat effectMix_;
00063 
00064 };
00065 
00066 #endif
00067 

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