Need help MIDI Out from Arduino

Please all of your sketch.

Did you use : Serial.begin(31250); in the setup part ?

It's better to use midi with diode and an optocoupler to protect arduino from other equipment like the midi in from this schematic.