Home   Information   Classes   Download   Usage   Mail List   Requirements   Links   Tutorial


Instrmnt.h

00001 /***************************************************/
00010 /***************************************************/
00011 
00012 #if !defined(__INSTRMNT_H)
00013 #define __INSTRMNT_H
00014 
00015 #include "Stk.h"
00016 #include <iostream>
00017 
00018 class Instrmnt : public Stk
00019 {
00020  public:
00022   Instrmnt();
00023 
00025   virtual ~Instrmnt();
00026 
00028   virtual void noteOn(MY_FLOAT frequency, MY_FLOAT amplitude) = 0;
00029 
00031   virtual void noteOff(MY_FLOAT amplitude) = 0;
00032 
00034   virtual void setFrequency(MY_FLOAT frequency);
00035 
00037   MY_FLOAT lastOut() const;
00038 
00040   MY_FLOAT lastOutLeft() const;
00041 
00043   MY_FLOAT lastOutRight() const;
00044 
00046   virtual MY_FLOAT tick() = 0;
00047 
00049   virtual MY_FLOAT *tick(MY_FLOAT *vector, unsigned int vectorSize);
00050   
00052   virtual void controlChange(int number, MY_FLOAT value);
00053 
00054   protected:
00055     MY_FLOAT lastOutput;
00056 
00057 };
00058 
00059 #endif

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