A library to send and receive MIDI messages over USB using the default USB-MIDI drivers on Win/Mac
Fork of USBMIDI by
Diff: USBMIDI.h
- Revision:
- 0:56b095524cf2
- Child:
- 1:ff74eabe02cd
diff -r 000000000000 -r 56b095524cf2 USBMIDI.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/USBMIDI.h Sun Feb 06 17:26:29 2011 +0000 @@ -0,0 +1,26 @@ +#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