Home   Information   Classes   Download   Usage   Mail List   Requirements   Links   Tutorial


Mandolin.h

00001 /***************************************************/
00028 /***************************************************/
00029 
00030 #ifndef STK_MANDOLIN_H
00031 #define STK_MANDOLIN_H
00032 
00033 #include "PluckTwo.h"
00034 #include "WvIn.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   StkFloat tick();
00059 
00061   StkFloat *tick(StkFloat *vector, unsigned int vectorSize);
00062 
00064 
00070   StkFrames& tick( StkFrames& frames, unsigned int channel = 1 );
00071 
00073   void controlChange(int number, StkFloat value);
00074 
00075   protected:  
00076     WvIn *soundfile_[12];
00077     int mic_;
00078     long dampTime_;
00079     bool waveDone_;
00080 };
00081 
00082 #endif

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