Simple mbed 5-pin DIN to USB MIDI Converter library

Dependents:   5-PinMIDIDemo

Files at this revision

API Documentation at this revision

Comitter:
mpetrut
Date:
Thu Oct 22 16:09:13 2015 +0000
Parent:
0:722bbb69c79d
Child:
2:b36bd99c6755
Commit message:
update;

Changed in this revision

Midi5Pin.cpp Show annotated file Show diff for this revision Revisions of this file
Midi5Pin.h Show annotated file Show diff for this revision Revisions of this file
--- a/Midi5Pin.cpp	Thu Oct 22 10:02:00 2015 +0000
+++ b/Midi5Pin.cpp	Thu Oct 22 16:09:13 2015 +0000
@@ -10,7 +10,7 @@
 
 Midi5Pin::Midi5Pin(PinName txPin, PinName rxPin) :
     _pc(USBTX, USBRX), _uart5pin(txPin, rxPin) {
-        _pc.baud(256000);
+        _pc.baud(115200);
         // 31250 is the official specification
         _uart5pin.baud(31250);
     }
--- a/Midi5Pin.h	Thu Oct 22 10:02:00 2015 +0000
+++ b/Midi5Pin.h	Thu Oct 22 16:09:13 2015 +0000
@@ -9,24 +9,24 @@
  
 class Midi5Pin {
 public:
-    // Create a Midi5Pin object with the specified
-    // transmit and receive pins
+    /// Create a Midi5Pin object with the specified
+    /// transmit and receive pins
     Midi5Pin(PinName txPin, PinName rxPin);
     
-    // Send a command to the 5-pin output port
+    /// Send a command to the 5-pin output port
     void write(char command, char param1, char param2);
     
-    // Send a noteOn MIDI message to the 5-pin output
+    /// Send a noteOn MIDI message to the 5-pin output
     void noteOn(char note, char velocity);
     
-    // Send a noteOff MIDI message to the 5-pin output
+    /// Send a noteOff MIDI message to the 5-pin output
     void noteOff(char note);
     
-    // Send a continuous control message to the 5-pin output
+    /// Send a continuous control message to the 5-pin output
     void contCtrl(char ccNumber, char value);
     
-    // Read from the 5-pin input connection and send
-    // it to the PC through the USB virtual com port
+    /// Read from the 5-pin input connection and send
+    /// it to the PC through the USB virtual com port
     void read();
   
 private: