fbpx
Skip to main content

MIDI Forum

Merge midi input fo...
 
Notifications
Clear all

Merge midi input form a keyboard with hard coded CC messages and send to the midi out

4 Posts
3 Users
0 Reactions
16.6 K Views
carl
 carl
Posts: 2
New Member
Topic starter
 

I made an Arduino in, out and thru box that I am using with a foot pedal (potentiometer) and three switches to send CC messages. I would like to merge the midi input from my Roland keyboard with these CC messages and send them all thru the midi out. Does anyone have a simple code for Arduino to read the input and merge it with the hard coded output?

 
Posted : 30/06/2017 1:37 pm
Clemens Ladisch
Posts: 323
Reputable Member
 

You need to parse the incoming MIDI command stream to be able to detect message boundaries and to insert the additional messages there.

Google lists https://github.com/FortySevenEffects/arduino_midi_library, which has a merge example. But in your own application, you would not have two MIDI ports, but would simply output additional messages on the existing port.

 
Posted : 30/06/2017 11:35 pm
carl
 carl
Posts: 2
New Member
Topic starter
 

Clemens,

Thank you so much for the help! I took the Merge example and, after a few mistakes on my part, was able to read the keyboard input and send it right back out along with the CC messages.

 
Posted : 01/07/2017 1:03 pm
Joe
 Joe
Posts: 1
New Member
 

Carl,

I am facing the same problem - can I have a look at your Arduino code? Or even explain roughly how you wired the IN & OUT?

 
Posted : 19/06/2019 1:19 pm
Share: