Arduino Midi to Gate

It may be an issue related to timing, try to remove delay(2) and digitalWrite(13, low) from the main loop.

Archi