Black cable serves as floor just like in every other device. This diagram is superceded by midi 10 electrical specification update 2014.

Midi
Midi cable wiring diagram. The red one is to get sure wire with dc ability of 5 volts. For more details please see the complete midi 10 detailed specification. Leads direct sell and manufacture cables using a wide range of din standard connectors which you can view and purchase the most common of these are midi and keyboard and mouse leads and cables. According to usb midi cable wiring diagram you will find just four wires used inside the cable. Typically it uses black green red and white cable colours. Original electrical specification diagram note.
This article will explain how midi cables are wired starting with conventional din 5 sockets then looking at trs connectors. A midi cable is connected as follows. In the diagram below you can see that not only is the keyboard connected to a midi interface with din midi cables the interface is connected to a computer with a usb cable. The landing page provides easy access. This will help anyone who needs to trouble shoot wiring or solder their own cables. If you want to wire your own midi cable youll need two male 5 pin din connectors and a length of shielded twisted pair stp cable.
We refer to this as a usb daw connection daw is short for digital audio workstation meaning a computer running a digital audiomidi application such as ableton live. The original circuit diagram is shown below for reference it is the most common circuit in use today and is still acceptable. The diagram shown above illustrates how to decode the bytes in the midi stream but it doesnt make any. This articles is part of my ongoing series on desktop electronic music dem. This page gives information on wiring various din connectors for various purposes including midi musical instrument digital interface connections.