I need an Arduino sketch that can interface with the legacy Roland DCB-protocol, which is a pre-MIDI serial protocol for communication between musical instruments.
The program should be a 2-channel interface, that:
1. Takes a DCB signal on the Arduino's serial input, and translate the values into standard MIDI-data and send these to the Arduino's serial output.
2. The opposite. (Takes a MIDI input signal into the Arduino, and converts it to DCB at the output.
3. The program
The DCB protocol is defined like this: http://en.wikipedia.org/wiki/Digital_Control_Bus