A library to send and receive MIDI messages over USB using the default USB-MIDI drivers on Win/Mac
Fork of USBMIDI by
USBMIDI.h
- Committer:
- simon
- Date:
- 2011-02-06
- Revision:
- 0:56b095524cf2
- Child:
- 1:ff74eabe02cd
File content as of revision 0:56b095524cf2:
#ifndef MBED_USBMIDI_H #define MBED_USBMIDI_H #include "MIDIMessage.h" class USBMIDI { public: USBMIDI() {} ~USBMIDI() {} // write messages void write(MIDIMessage m) {} int writeable() { return 0; } // read messages MIDIMessage read() { return MIDIMessage::NoteOn(0); } int readable() { return 0; } // notification of incoming message void attach(void (*fptr)(void)) {} template <class T> void attach(T *tptr, void (T::*mptr)(void)) {} }; #endif