GoTo Connector

MIDI

5 PIN DIN 180° (DIN41524) MALE (to the 1st peripheral)
5 PIN DIN 180° (DIN41524) MALE (to the 2nd peripheral)

5 PIN DIN 180° (DIN41524) MALE to the 1st peripheral.
5 PIN DIN 180° (DIN41524) MALE to the 1st peripheral.

1st 2nd
Shield 2 2
Current Source 4 4
Current Sink 5 5

Note: Although that pin 2 only is connected at MIDI Out it's simpler to connect it to both ends.