Home Information Classes Download Usage Mail List Requirements Links FAQ Tutorial
00001 /***************************************************/ 00028 /***************************************************/ 00029 00030 #ifndef STK_MANDOLIN_H 00031 #define STK_MANDOLIN_H 00032 00033 #include "PluckTwo.h" 00034 #include "FileWvIn.h" 00035 00036 class Mandolin : public PluckTwo 00037 { 00038 public: 00040 Mandolin(StkFloat lowestFrequency); 00041 00043 ~Mandolin(); 00044 00046 void pluck(StkFloat amplitude); 00047 00049 void pluck(StkFloat amplitude,StkFloat position); 00050 00052 void noteOn(StkFloat frequency, StkFloat amplitude); 00053 00055 void setBodySize(StkFloat size); 00056 00058 void controlChange(int number, StkFloat value); 00059 00060 protected: 00061 00062 StkFloat computeSample( void ); 00063 00064 FileWvIn *soundfile_[12]; 00065 int mic_; 00066 long dampTime_; 00067 bool waveDone_; 00068 }; 00069 00070 #endif
The Synthesis ToolKit in C++ (STK) |
©1995-2007 Perry R. Cook and Gary P. Scavone. All Rights Reserved. |