Friday, August 04, 2017

MIDI wiring diagrams

This article is part of an ongoing series on Desktop Electronic Music (DEM). The landing page provides easy access.

This article will explain how MIDI cables are wired, starting with conventional DIN-5 sockets, then looking at TRS connectors. This will help anyone who needs to trouble-shoot wiring or solder their own cables.

DIN-5 connectors are paired as male and female ends. But there are two tricks.

First, the pin-out diagrams are sometimes presented from the point-of-view of wiring the plug. But, commonly, when using the MIDI cables, we might prefer the point-of-view of how the plug looks externally. One is a mirror image of another. (This might be obvious to all but me, since I swear I am topologically impaired.)

Second, the MIDI in and MIDI out sides of the cable are wired opposite each other, so that when they are paired, the current flows correctly. Electrically, that makes sense. But pragmatically this might be counter-intuitive. After all, when we examine a MIDI cable, it isn't labelled as to which end is which (in or out).

Diagrams will help. Note that you can click on these to get large PNG files, which you are free to use.

Pin-out diagrams for MIDI DIN-5
Here is a male plug, seen from both plug and wiring views. Note the symmetry about a vertical bisection. (Now I sound like my high-school math teacher.)

And here is a female plug, seen from both views. Once again, these are reflections of each other. And furthermore are symmetrical with the male plugs.

Now that we know how to number the pins, we must understand how they are used to conduct signals.

MIDI electrical connections
Though MIDI for some reason standardised on DIN 5-pin sockets, pins 1 and 3 are never needed. Pin 2 is used for the shield, in order to ground the cable. That leaves the other two pins to carry an isolated current loop.

For a MIDI out connection:
pin 4 = -ve or sink
pin 5 = +ve or source

For a MIDI in connection:
pin 4 = +ve or source
pin 5 = -ve or sink

The pins are exchanged because the pins on a male plug are flipped relative to the sockets on a female connection. So, when all is said and done, a positive signal will travel continuously through the positive wire.

This is why all devices (instruments, controllers) have female sockets. And all cables (except those explicitly designed as extension cables) have male plugs. This ensures the correct electrical contacts without having to label ends.

If only it were this simple!

Behold, the minijack
With the rise of DEM (Desktop Electronic Music), manufacturers have shunned DIN-5 sockets. They are too large for tiny devices from Korg, Novation, Arturia, and IK Multimedia. Instead, the 3.5mm stereo minijack, commonly used for stereo headphones, has been repurposed. These plugs have a TRS connector, which means Tip, Ring, and Sleeve. These three current paths are exactly what's required for MIDI. So, a good match then.

But of course we have a problem. Because in Audio Land the signals do not need to switch pins, but in MIDI Land they do. So although two 3.5mm stereo cables might look alike, they could have different internal wiring. This is a nightmare.

The way to solve this is to adopt a standard, say a particular colour-coding for cables designed for MIDI. Maybe they should all be purple. But such is not the case.

The problem compounds when we need to connect devices that use both types of cables. Now we must convert between minijack and DIN-5, each carrying the same MIDI signal. And, naturally, this solution depends on whether the MIDI signal is incoming or outgoing.

When you purchase an Arturia Beatstep Pro, you get two white adapters as pictured below. (A black male MIDI connector is included for comparison.)

Both of the white adapters have a female MIDI DIN plug, so it can be coupled with a standard MIDI DIN cable. The other ends are colour-coded because they are meant for entirely different purposes.

The grey cable is designed for MIDI output. DIN pin 4 connects to the Tip and pin 5 connects to the Ring. (I have confirmed this with a multimeter.)

This is the standard adopted by Novation, Arturia, and IK Multimedia. Do not be surprised when I tell you that Korg has done the opposite! So if you were going out of a 3.5mm MIDI socket on a Korg device, you would need a different adapter to MIDI DIN-5. It would look the same, but have different internal connections.

So what the heck is the Arturia adapter with the black 3.5mm termination? Near as I can tell it's for sync output. Tip and Sleeve are wired to pins 1 and 3. This means they don't conflict with MIDI in any way. This is a smart solution. Or would be, if you think that repurposing the same cable adapter a third time is a good idea.

The mind boggles.

Official standard (added Jan 2023)

There is a need to clarify the above information. Currently there are two different ways to wire a minijack (2.5mm or 3.5mm) cable that uses a TRS (tip-ring-sleeve) connector. There is also a defunct TR wiring.

The official standard is established by the MIDI Manufacturers Association (MMA). This has become known as TRS-A and is wired as follows:

  • tip = pin 5
  • ring = pin 4
  • sleeve = pin 2

This was adopted by the following manufacturers:

  • Akai
  • Korg
  • Teenage Engineering
  • Critter & Guitari
  • Make Noise
  • Dreadbox
  • Intellijel
  • Twisted Electrons
  • Empress Zoia
  • Novation Keystep III (and other newer devices?)

The second wiring, known as TRS-B, switches the tip and ring functionality:

  • tip = pin 4
  • ring = pin 5
  • sleeve = pin 2

This is used by the following manufacturers:

  • Arturia
  • 1010 Music
  • Novation (Circuit, Launchpad Pro, Circuit Mono Station, Keystep II)

There is even a third wiring, sometimes described as Type C, which uses a TR cable instead of TRS. As far as I know this is only used for the following devices:

  • Arturia Beatstep (not Pro)
  • MidiPlus MiniEngine and MiniEngine Pro

As you can see, Novation switched to the official standard, despite the confusion this will cause their legacy users. Kudos to them!

It's frustrating that a company like 1010 Music would use the wrong wiring, despite releasing devices after the standard was published.

Unfortunately there is no standard labelling for these MIDI cables. Indeed, I have never seen an adapter labelled to clarify its wiring. I recommend using coloured rubber bands or string around any TRS-B adapter cable, so you don't get them mixed up.

You can now buy cables like the following, which adapt from TRS-A to TRS-B directly. But it too doesn't look like it's labelled! Why is this so difficult to get right?


I trust that this information will help you mix-and-match MIDI devices or solder your own adapter cables. Please correct any errors in the comments.


This research was originally part of a larger project funded by an Arts Council bursary.



Keith said...

Please, help clarify for me: you say that IK Multimedia chose a different 3.5mm TRS MIDI standard than Korg, but the article (which links to this one; see below) seems to say the opposite is true. Which is it, or is the truth somewhere in-between? Thank you for sharing your research in such a well-documented fashion.(

robin said...

Unfortunately I don't have anything from IK Multimedia to check.

Terry said...

Bravo! Thank you. My original MIDI 5 to TRS was wired "backwards", I had 4 ^ 5 swapped. It wasn't tht I went back to's image that it showed as female. Thank you!

Anonymous said...

Hello, do you have any information on the wiring of the arturia beatstep which uses an Adapter TS MIDI 5 to jack mono Cable 3.5 Type C? please

robin said...

I don't know anything about the wiring of USB-C. But wait, why do you need to know? Both ends use standard adapters and wiring, so there is no confusion.

Anonymous said...

No it's not usb C, but Din5 with TS mono jack. I bought the used beatstep and the previous owner had lost the adapter (which is too expensive),scm-url:1007.13339.291025.0,pvid:ffd7631e-d1ca-4f28-8a60-d0cd8d104d5c,tpp_buckets:668%232846%238111%231996&pdp_ext_f=%7B%22sku_id%22%3A%2265438328659%22%2C%22sceneId%22%3A%223339%22%7D&pdp_npi=2%40dis%21EUR%2117.45%2117.45%21%21%21%21%21%40211b423d16727552889505695e9191%2165438328659%21rec

robin said...

Sorry, I misunderstood your previous comment, having never seen this cabling before! I have now added substantially to my article, in order to properly delineate between the three types of minijack MIDI adapters. I trust this will help.

As far as this adapter goes, the comments on Amazon for the same cable attests that is will indeed work with the original Beatstep (not Beatstep Pro).

Anonymous said...

Thank's, that's it, another curiosity and it's the same for the MidiPlus – MiniEngine. I tinkered with a Midi 5pin/ TRS 6.35 cable, with a 6.35/3.5 mono adapter, but not conclusive. I finally tested live all the connections, and here is how this connection works, jack mono to din5 male: ground -> pin2+4, hot ->5. It works, I sequence an Akai Rhythm Wolf with the beatstep (not pro)

Anonymous said...

Do you happen to have the pinout for the TC Nova Drive style of Midi In and Out style of 5pindin Y cable ?

robin said...

It's best to obtain any specific information directly from the company involved. In some cases this might change over time, with different hardware revisions.

Anonymous said...

I'd like to know about the colored wire , which each color is used for.

Post a Comment