USBHost+USB MIDI

Dependencies:   FATFileSystem mbed-rtos

Dependents:   USBHostMIDI_example MIDISynthwithSpecAnalyzer

Fork of USBHost by mbed official

USBHost with USB MIDI support

(work in progress...)

Tested functions

Receiving

  • note on
  • note off
  • program change
  • control change
  • pitch bend

Tranmitting

  • not tested yet.

Files at this revision

API Documentation at this revision

Comitter:
kshoji
Date:
Fri Dec 06 03:22:34 2013 +0000
Parent:
19:bf09452b8f26
Commit message:
method for sending MIDI messages

Changed in this revision

USBHostMIDI/USBHostMIDI.h Show annotated file Show diff for this revision Revisions of this file
diff -r bf09452b8f26 -r bd4759650fc0 USBHostMIDI/USBHostMIDI.h
--- a/USBHostMIDI/USBHostMIDI.h	Thu Dec 05 09:32:50 2013 +0000
+++ b/USBHostMIDI/USBHostMIDI.h	Fri Dec 06 03:22:34 2013 +0000
@@ -102,11 +102,48 @@
             pitchBend = fn;
         }
     }
-    
+
+    /**
+     * Send a note on event
+     *
+     * @param channel 0-15
+     * @param note 0-127
+     * @param velocity 0-127 (0 means note off)
+     */
     int sendNoteOn(unsigned char channel, unsigned char note, unsigned char velocity);
+
+    /**
+     * Send a note off event
+     *
+     * @param channel 0-15
+     * @param note 0-127
+     * @param velocity 0-127
+     */
     int sendNoteOff(unsigned char channel, unsigned char note, unsigned char velocity);
+
+    /**
+     * Send a control change event
+     *
+     * @param channel 0-15
+     * @param key 0-127
+     * @param value 0-127
+     */
     int sendControlChange(unsigned char channel, unsigned char key, unsigned char value);
+
+    /**
+     * Send a program change event
+     *
+     * @param channel 0-15
+     * @param program 0-127
+     */
     int sendProgramChange(unsigned char channel, unsigned char program);
+
+    /**
+     * Send a control change event
+     *
+     * @param channel 0-15
+     * @param key 0(lower)-8191(center)-16383(higher)
+     */
     int sendPitchBend(unsigned char channel, unsigned int value);
 
 protected: