home *** CD-ROM | disk | FTP | other *** search
/ PC Musician 2000 / PC_Musician_2000.iso / PCMUSIC / NOTATION / SILENCE / INSTRMNT.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-18  |  612 b   |  26 lines

  1. /******************************************/
  2. /*  Instrument SuperClass for Toolkit96   */
  3. /*  Perry R. Cook, Princeton University   */
  4. /******************************************/
  5.  
  6. #if !defined(__Instrmnt_h)
  7. #define __Instrmnt_h
  8.  
  9. #include "Object.h"
  10.  
  11. class Instrmnt : public Object
  12. {
  13.   protected:
  14.     MY_FLOAT lastOutput;
  15.   public:
  16.     Instrmnt();
  17.     MY_FLOAT lastOut();
  18.     virtual void noteOn(MY_FLOAT freq, MY_FLOAT amp);
  19.     virtual void noteOff(MY_FLOAT amp);
  20.     virtual void setFreq(MY_FLOAT frequency);
  21.     virtual MY_FLOAT tick();
  22.     virtual void controlChange(int number, MY_FLOAT value);
  23. };
  24.  
  25. #endif
  26.