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

  1. /******************************************/
  2. /*  Simple SKINI Text File Reader Class,  */
  3. /*  by Perry R. Cook, 1996                */ 
  4. /*  This Object can open a SKINI Text File*/
  5. /*  and parse it.  The file spec is mine  */
  6. /*  and mine alone, but it's all text so  */
  7. /*  you should be able to figure it out.  */        
  8. /*                      */
  9. /*  SKINI (Synthesis toolKit Instrument   */
  10. /*  Network Interface) is like MIDI, but  */
  11. /*  allows for floating point control     */
  12. /*  changes, note numbers, etc. Example:  */
  13. /*  noteOn 60.01 111.132 plays a sharp    */      
  14. /*  middle C with a velocity of 111.132   */
  15. /*  See SKINI.txt for more information    */
  16. /*  Warning:  Obey columns in the text    */
  17. /*  file if you try to edit it or create  */
  18. /*  your own files.                       */
  19. /******************************************/
  20.  
  21.  
  22. #if !defined(__SKINI08_h)
  23. #define __SKINI08_h
  24.  
  25. #include "Object.h"
  26.  
  27. class SKINI08 : public Object
  28. {
  29.   protected:  
  30.     FILE *myFile;
  31.     int messageType;
  32.     int channel;
  33.     MY_FLOAT deltaTime;
  34.     float byteTwo;
  35.     float byteThree;
  36.   public:
  37.     SKINI08(char *fileName);
  38.     ~SKINI08();
  39.     int nextMessage();
  40.     int getType();
  41.     int getChannel();
  42.     MY_FLOAT getDelta();
  43.     MY_FLOAT getByteTwo();
  44.     MY_FLOAT getByteThree();
  45. };
  46.  
  47. #endif
  48.