Using UNO R3 + USB Host Shield to relay MIDI via powered USB Hub?

In the realm of speculation here but your modifications use the same array to send a message to two devices. I would try using two seprate arrays one for each midi instance.