home *** CD-ROM | disk | FTP | other *** search
/ PC Musician 2000 / PC_Musician_2000.iso / PCMUSIC / NOTATION / SILENCE / WINMIDI.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-07-08  |  1.2 KB  |  45 lines

  1. /******************************************/
  2. /*  Simple RealTime MIDI Input Object,    */
  3. /*  by Perry R. Cook, 1996                  */
  4. /*  This Windows95 Version uses code by   */
  5. /*  Bill Putnam of Stanford CCRMA         */
  6. /*                                          */
  7. /*  This object takes MIDI from the input */
  8. /*  , parses it, turns it into SKINI      */
  9. /*  messages, and buffers it up for use by*/
  10. /*  any object that asks for it later.    */
  11. /*                                          */
  12. /*  SKINI (Synthesis toolKit Network      */
  13. /*  Interface is like MIDI, but           */
  14. /*  allows for floating point control     */
  15. /*  changes, note numbers, etc. Example:  */
  16. /*  noteOn(1,60.01,111.132) plays a sharp */
  17. /*  middle C with a velocity of 111.132   */
  18. /*                                        */
  19. /******************************************/
  20.  
  21. #if !defined(__WinMIDI_h)
  22. #define __WinMIDI_h
  23.  
  24. #include "Object.h"
  25.  
  26. class WinMIDI : public Object
  27. {
  28.   protected:  
  29.     int messageType;
  30.     int channel;
  31.     float byteTwo;
  32.     float byteThree;
  33.   public:
  34.     WinMIDI();
  35.     ~WinMIDI();
  36.     void printMessage();
  37.     int nextMessage();
  38.     int getType();
  39.     int getChannel();
  40.     MY_FLOAT getByteTwo();
  41.     MY_FLOAT getByteThree();
  42. };
  43.  
  44. #endif
  45.