A library to send and receive MIDI messages over USB using the default USB-MIDI drivers on Win/Mac

Dependents:   USBMIDI_HelloWorld USBMIDI_DrumExample USBMIDI_MonoSynth MIDI_Interface_ver_1 ... more

Revision:
0:56b095524cf2
Child:
1:ff74eabe02cd
--- /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