MIDI 5 Pin connector pinout

Female Male
Pin Signal
1 Not Used
2 Ground
3 Not Used
4 Current Sync
5 Current Source

Shown from wiring side
Pin-out shown is for MIDI out connection, for MIDI in connection reverse pins 4 and 5.