Grumpy_Mike:
Then look at every function that ends inSerial.write(midiMsg.raw, sizeof(midiMsg));
And delete the whole of the function.
Any calls to these deleted functions should be replaced to the other set of midi out functions you have in that sketch.
None of those three errant functions are actually being called in the sketch anyway...