A midi merger would work. It combines the midi signals from two or more sources into one. Kenton and Midi Solutions make them for example.