Home Information Classes Download Usage Mail List Requirements Tutorial
00001 /***************************************************/ 00028 /***************************************************/ 00029 00030 #if !defined(__MANDOLIN_H) 00031 #define __MANDOLIN_H 00032 00033 #include "PluckTwo.h" 00034 #include "WvIn.h" 00035 00036 class Mandolin : public PluckTwo 00037 { 00038 public: 00040 Mandolin(MY_FLOAT lowestFrequency); 00041 00043 virtual ~Mandolin(); 00044 00046 void pluck(MY_FLOAT amplitude); 00047 00049 void pluck(MY_FLOAT amplitude,MY_FLOAT position); 00050 00052 virtual void noteOn(MY_FLOAT frequency, MY_FLOAT amplitude); 00053 00055 void setBodySize(MY_FLOAT size); 00056 00058 virtual MY_FLOAT tick(); 00059 00061 virtual void controlChange(int number, MY_FLOAT value); 00062 00063 protected: 00064 WvIn *soundfile[12]; 00065 MY_FLOAT directBody; 00066 int mic; 00067 long dampTime; 00068 bool waveDone; 00069 }; 00070 00071 #endif
The Synthesis ToolKit in C++ (STK) |
©1995-2002 Perry R. Cook and Gary P. Scavone. All Rights Reserved. |