Wednesday, 8 October 2014

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


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



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.


No comments:

Post a Comment

arduino - Can I use TI's cc2541 BLE as micro controller to perform operations/ processing instead of ATmega328P AU to save cost?

I am using arduino pro mini (which contains Atmega328p AU ) along with cc2541(HM-10) to process and transfer data over BLE to smartphone. I...