Home Information Classes Download Usage Mail List Requirements Links FAQ 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 void controlChange(int number, StkFloat value); 00053 00054 protected: 00055 00056 StkFloat computeSample( void ); 00057 00058 FormSwep filters_[2]; 00059 StkFloat modDepth_; 00060 StkFloat filterQ_; 00061 StkFloat filterRate_; 00062 00063 }; 00064 00065 #endif
The Synthesis ToolKit in C++ (STK) |
©1995-2007 Perry R. Cook and Gary P. Scavone. All Rights Reserved. |