Shavano Music Online has a handy page that explains how to wire MIDI cables. Note a few things: (1) The pins are numbered in a funny order. Pin 2 is in the middle, and pins 4 and 5 are adjacent to it. The outermost pins are numbered 1 and 3. (2) Cables are always wired straight through; there is no crossover. (3) Cables use male connectors on both ends. Equipment always uses female connectors. (4) Contrary to the instructions on the Shavano page, the shield in a cable should be connected to pin 2 at one end only, to avoid ground loops. Leave it unconnected at the other end.
Remember, when wiring MIDI connectors on equipment, that the pinout is the mirror image of the cable connectors.
Mouser part numbers for MIDI connectors:
- Switchcraft female panel mount connector, solder lugs: 502-57GB5FX
- Switchcraft male cable connector, crimp connection: 502-05BL5MX
- Deltron male cable connector, solder lugs (I haven't tried these): 174-2511