Home Information Classes Download Usage Mail List Requirements Links Tutorial
00001 /***************************************************/ 00019 /***************************************************/ 00020 00021 #ifndef STK_MOOG_H 00022 #define STK_MOOG_H 00023 00024 #include "Sampler.h" 00025 #include "FormSwep.h" 00026 00027 class Moog : public Sampler 00028 { 00029 public: 00031 00034 Moog(); 00035 00037 ~Moog(); 00038 00040 void setFrequency(StkFloat frequency); 00041 00043 void noteOn(StkFloat frequency, StkFloat amplitude); 00044 00046 void setModulationSpeed(StkFloat mSpeed); 00047 00049 void setModulationDepth(StkFloat mDepth); 00050 00052 StkFloat tick(); 00053 00055 StkFloat *tick(StkFloat *vector, unsigned int vectorSize); 00056 00058 00064 StkFrames& tick( StkFrames& frames, unsigned int channel = 1 ); 00065 00067 void controlChange(int number, StkFloat value); 00068 00069 protected: 00070 FormSwep filters_[2]; 00071 StkFloat modDepth_; 00072 StkFloat filterQ_; 00073 StkFloat filterRate_; 00074 00075 }; 00076 00077 #endif
The Synthesis ToolKit in C++ (STK) |
©1995-2004 Perry R. Cook and Gary P. Scavone. All Rights Reserved. |