#ifndef __Midi_H__ #define __Midi_H__ #include class MidiPort { public: MIDIClientRef client; MIDIPortRef inPort; MIDIPortRef outPort; unsigned short hours; unsigned short minutes; unsigned short seconds; unsigned short frames; short lastSeg; unsigned short nibble; MidiPort(void); ~MidiPort(void); void MidiSendtoAll(unsigned char *data, int size); private: static void MidiReceiveProc(const MIDIPacketList *pktlist, void *refCon, void *connRefCon); }; #endif //__Midi_H__