home *** CD-ROM | disk | FTP | other *** search
- /******************************************/
- /* Simple RealTime MIDI Input Object, */
- /* by Perry R. Cook, 1996 */
- /* This Windows95 Version uses code by */
- /* Bill Putnam of Stanford CCRMA */
- /* */
- /* This object takes MIDI from the input */
- /* , parses it, turns it into SKINI */
- /* messages, and buffers it up for use by*/
- /* any object that asks for it later. */
- /* */
- /* SKINI (Synthesis toolKit Network */
- /* Interface is like MIDI, but */
- /* allows for floating point control */
- /* changes, note numbers, etc. Example: */
- /* noteOn(1,60.01,111.132) plays a sharp */
- /* middle C with a velocity of 111.132 */
- /* */
- /******************************************/
-
- #if !defined(__WinMIDI_h)
- #define __WinMIDI_h
-
- #include "Object.h"
-
- class WinMIDI : public Object
- {
- protected:
- int messageType;
- int channel;
- float byteTwo;
- float byteThree;
- public:
- WinMIDI();
- ~WinMIDI();
- void printMessage();
- int nextMessage();
- int getType();
- int getChannel();
- MY_FLOAT getByteTwo();
- MY_FLOAT getByteThree();
- };
-
- #endif
-