Electrical – Making a simple 1 MIDI IN + 1 arduino MIDI OUT merger (MIDI THRU + TX)

arduinomidi

From the Midi DIN spec schematics we can see MIDI THRU is just MIDI OUT directly at the end of a MIDI IN. Is it possible to just add a midi signal from the arduino TX ("FROM UART") to the midi thru (parallel to the MIDI IN) or do I need to get the MIDI IN signal in arduino and mix them digitally before sending to a regular out? Or is there another simple solution to merge the 2?

It is for a keyboard and a pedal (CC64) so notes won't be the same (if it is an issue).

enter image description here

Best Answer

No, combining them in hardware is not possible. Normal way of doing this is to have two MIDI inputs, and two UARTs on a microcontroller receiving messages from both inputs. Then the microprocessor merges the messages so that correct MIDI data bytes belong to correct MIDI status bytes. These merged messages are then sent to one (or several) MIDI outputs.