Home   Information   Classes   Download   Usage   Mail List   Requirements   Links   Tutorial


FMVoices.h

00001 /***************************************************/
00031 /***************************************************/
00032 
00033 #ifndef STK_FMVOICES_H
00034 #define STK_FMVOICES_H
00035 
00036 #include "FM.h"
00037 
00038 class FMVoices : public FM
00039 {
00040  public:
00042 
00045   FMVoices();
00046 
00048   ~FMVoices();
00049 
00051   virtual void setFrequency(StkFloat frequency);
00052 
00054   void noteOn(StkFloat frequency, StkFloat amplitude);
00055 
00057   StkFloat tick();
00058 
00060   StkFloat *tick(StkFloat *vector, unsigned int vectorSize);
00061 
00063 
00069   StkFrames& tick( StkFrames& frames, unsigned int channel = 1 );
00070 
00072   virtual void controlChange(int number, StkFloat value);
00073 
00074  protected:
00075   int currentVowel_;
00076   StkFloat tilt_[3];
00077   StkFloat mods_[3];
00078 };
00079 
00080 #endif

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