Thursday, 30 January 2020

MIDI Clock Sync Labels

One of the things that was lurking at the back of my mind whilst I was looking at connecting the Novation Circuit to the Novation Circuit Mono Station was some way of highlighting the way that the 3.5mm TRS sockets are wired up. I have other equipment that also uses 3.5mm TRS-to-MIDI adapters, and not all of them are the same - there are two different ways of connecting that little socket in common usage (and more if you try hard, but please just don't!).

Which got me thinking - and here's the result:



Yep, two different sticky vinyl labels that can be stuck to the underside of equipment, or stuck to a luggage tag and attached to the piece of equipment (now that's an interesting tip). Of course, you will need to check the way that the sockets are wired up - I couldn't find any way to make a sticky vinyl label that is that smart!

To save you some of the hassle of finding sticky paper (or better, vinyl), printing onto it and then cutting out the labels, I have used one of those on-line drop-ship companies to do most of that for you! Unfortunately, the die-cutting only cuts out part of the sticky vinyl labels, so you will need to do some work with a pair of scissors. Unlike most other things from this blog (but like everything on my store), I'm afraid that you have to buy these labels.

My store is here: https://teespring.com/en-GB/stores/synthesizerwriters-store

The store also has some 'statement' T-shirts, plus another die-cut vinyl sticker for labelling those sockets that are hidden away on the back of equipment. More cutting is required - sorry. I'm hoping that eventually the people who do the die-cut stickers will find a way of improving the cutting out...

In use...

Echoing back to a previous post, here are the labels in use on my 'non-RP54' Novation Circuit and Mono Station:



These are prototypes, and I will do some photos of the real things very soon.


If you find my writing helpful, informative or entertaining, then please consider visiting this link:


Monday, 20 January 2020

Phishing...

It was a strange email. Not from a name that I recognised. But it praised this blog, used an obscure link from a two year old blog post, and then used this as the hook to entice me into clicking on a link.

So I checked the actual email address, and yep, the name wasn't the same, plus it was a gmail address, so it was already starting to score quite highly on my 'possible phishing' suspicion counter. The link it so desperately wanted me to click on wasn't quite as ordinary as it appeared, and, like the name at the end of the email, was in a different font size. At this point the suspicion counter was too high and I deleted the email.

Not that long ago, phishing emails tended to routinely use urgency (only 24 hours left, do this now, urgent...) as one of the main ways that they tried to get you to click on the link payload. This email was different, because it was attempting to appeal to my vanity by praising this blog, in the hope that I would then click on the poisoned link payload. Normally this would probably raise it closer in my mind to what is called 'spear-phishing', which is where the email is targeted to an individual, but it didn't seem to be that specific. So my suspicion is that this was just what passes for ordinary phishing nowadays, and is consigned to the same virtual waste bin as all of those emails with names of people I know that say that I must open this link because I will love it, or I must see it, etc., and where again the name and the email address don't match...

I apologise for hijacking this blog post away from the usual music content, but the occasional reminder about

not clicking on links in emails that are even slightly suspicious

is always good, imho. It could save you from all sorts of bad stuff. Just delete suspicious emails.


If you find my writing helpful, informative or entertaining, then please consider visiting this link:







Sunday, 19 January 2020

Quick and easy MIDI clock sync between Novation Circuit and Circuit Mono Station

One interesting trend that I have watched recently is the loss of 5-pin DIN sockets for MIDI, and their replacement by one of two different ways of wiring up stereo 'TRS' 3.5mm jack sockets. I feel sorry for the IMA/MMA at having to choose one of the two ways as the approved standard going forward (Recommended Practice RP#54), much as I'm intrigued that MIDI 2.0 isn't as OSC-friendly as I expected, but the world can be a challenging and complicated place. Now smaller sockets do mean that hardware rear panels and front panels can be smaller, and in these Eurorack-ascendent days, this is probably a good thing.

As a side effect of smaller MIDI sockets, a lot of hardware that I have bought recently has come with adapters, and I have carefully labelled each adapter with the piece of equipment for which it is intended to be used, so that I avoid the troubleshooting nightmare of one or more 'Wrong MIDI adapters'. I expect that several stands in the quieter backwaters of this year's Winter NAMM exhibition featured testing gadgets that show which type of little MIDI socket you have, or which 'way' of adapter you have, because I can see a growing market for these things over the next few years.

Two pieces of my equipment that have little MIDI sockets are from Novation: the astonishingly versatile, feature-rich and often-firmware-updated Circuit, and the broad, deep and flexible Mono Station. Given their price to feature ratio, I find it very hard to criticise them in any way, and I use them a lot. Plus, their customer support has been helpful, responsive, informed and overall excellent to me, so that's a strong combination: brilliant products, and amazing customer support.

MIDI Clock Sync

The Novation Circuit and the Novation Mono Station are two very different pieces of equipment, despite looking like two pretty close siblings. Circuit is a 'jack-of-all-trades' two part (6 note poly, and 6 note articulation, spread across the two parts) synth and (drum or anything else) sample playback groovebox for knocking out ideas. Mono Station is a sophisticated 'everything major can be automated' synth-and-sequencer deeply-incestuous combination that has two note 'polyphony' and one note articulation - something which is often abbreviated to 'paraphonic' in some quarters. Between them, you can make some interesting stuff with just two boxes.

Of course, one thing that you might want to do with two pieces of hardware is sync them together so that they use the same clock. Asynchronous beats have always struggled to get people onto dance floors, and so routing the MIDI Clock from one to the other is a pretty standard part of setting them up for 'synced' operation. To do this, you use one of them as the MIDI Clock source, and the other as the sink for the clock - the default configuration of both units means that if you connect the MIDI Out of one box to the MIDI In of the other box, then they should run in sync with the Master (the box with the MIDI Out) Run/Stop button controlling both boxes.

In order to do this, you need two adapters, plus a MIDI cable and a cable wrap to keep it tidy:


Now this is quite an assembly! And it got me thinking: it converts from little MIDI sockets to big MIDI sockets, just so that a conventional MIDI cable can connect the two boxes together. Why can't you just connect the two little sockets together?

It turns out that you can. Here's my experimental setup to see if it works:


All I did was borrow a stereo 3.5 TRS jack to jack cable from one of those headphone-sharing iPod/iPhone accessories and connected the MIDI Out of the Circuit to the MIDI In of the Mono Station. Pressing the Run/Stop' button on the Circuit then controlled start and stop for both boxes. Now in reality, this is a cheap and nasty cable and my advice would be to make a more robust cable than use part of a headphone sharing gadget, and there are a number of important things to bear in mind:

'Only connect a MIDI In to a Thru or an Out.' (The first rule of MIDI)

'Use cables with stereo TRS 3.5mm connectors - NOT Eurorack patch cables' 
(Yes, once plugged in they look the same!)

'Use shielded twisted pair cable! (as used for microphones)'

So the Frankenstein 'Two adapters plus MIDI cable plus cable tidy wrap' assembly can be replaced by a single cable. Simples, as the adverts say.


 So that you don't have to turn your computer monitor upside down, here's that 'rear-panel' view the other way up so that the socket legends are readable:


Here's a graphics-software-edited reminder that the connectors have to be STEREO...


A simple diagram with reminders about stereo plugs!

Use the right sort of cable!

As a quick experiment to check out that you don't need the two converters and the MIDI cable in between, then this test worked for me. But for professional use, then MIDI should be done properly with the right cables, not part of a cheap headphone gadget!

The MMA Recommended Practice #54 states that:

"Direct connection between two TRS-equipped devices using cables designed for use with audio equipment is not acceptable because the wires are not twisted pair and are typically individually shielded."

Now after quite a lot of searching, I am quite confident that you are not going to easily locate any off-the-shelf non-stereo, screened twisted pair cables terminated with decent quality 3.5mm TRS jacks. Which is why I am recommending that you make your own special-purpose cable. You will need two stereo TRS 3.5mm plugs, plus a short length of shielded twisted pair cable (as sold for microphone cables, NOT twin screened as you use for stereo interconnections) - and some skill at soldering. I will have a go and include a photo of my finished cable in an update to this post...

My thinking here is that if you have a distinctive cable with plugs that don't look like Eurorack patch cabling, then you will know that it is a special purpose 'Special cable for doing MIDI Clock Sync between two boxes with little MIDI sockets'. Hey, you could even add a label to the cable that reminds you!

You do all of this at your own risk, of course.

Do not do this with ANY other pieces of equipment until you have checked that they use the same 'way' of converting from little MIDI sockets to big MIDI sockets!

Enjoy the syncing, of course.

Making the cable...

When I recommended that the best course of action (in the absence of any suitable commercial cables) was to 'make your own' then I made some assumptions. In these days of easy online mail order of all sorts of electronic bits and pieces, it seemed obvious that procuring the necessary bits would be quick and easy. The reality was a little different. Metal-bodies 3.5mm TRS jacks with strain relief seem to be hard to locate, and the examples without strain relief are small and fiddly to wire up, particularly with the large diameter microphone cable that is required. Just about every plug I could find was either on very long delivery (shipped from China), or else was very expensive and designed for very thin cable. So it looks like a simple 'do it yourself' recommendation has turned into a 'hey, this is pretty tricky - can you show me it is possible?' exercise. Okay, here goes.


Here's what my nice postman delivered. A pair of very expensive metal 3.5mm TRTS Jack plugs (from a 'middle' supplier on Amazon, rather than waiting a month to get them send in a container directly from China), plus some medium quality £2/metre screened twisted pair microphone cable (from a standard pro-audio supplier that you will have heard of...). Note that it is very easy to print 'Professional Low Noise Microphone Cable' onto just about any cable - so buying cheap cable with no provenance is not a good idea.

I have stripped the deliberately bright (part of the design specification, remember?) nicely flexible sheath to expose the insides - always check that the cable is what you ordered! In this case the twisting isn't as tight as I would like, but for a short distance it should not be too bad. If I was specifying this for a real cable, then I would be looking for a tighter twist...


Here's the jack plug opened up, and the cable prepped for length. Don't forget to put the cover onto the cable, then the transparent insulating sheath, before you do any soldering. Your local MakerSpace is probably a good starting point to contact if you aren't confident in your soldering...


The screen and the two data wires have now been cut to the right length and tinned with solder, ready for attaching to the plug. I tend to do the screen first, then the two data wires...



And here are the two ends of the cable. so that you get two different perspectives of my soldering. Soldering is easiest when you are young and have sharp eyesight... So what next? Replace the insulating sheath and the cover? Nope. This is where you get your multimeter and check for shorts between screen and wires, between wires, and continuity between the ends. Only when everything checks out should you move on.


Here the transparent insulating sheath has been pushed back over the soldering, and the metal cover is about to be screwed back on.


The finished ends. Always check continuity and check for shorts again when you have put the final covers on. You would be surprised what can go wrong if you are in a hurry to finish.


The finished cable. OK, so I can wire up a cable, not perfectly (I'm out of practice), and I would have preferred more strain relief (but there's no room in the plugs with cable this thick!), but this will suffice for now and is much better than the cheap and nasty stereo cable that I borrowed from that headphone sharing gadget.


This is the new cable in use. I have labelled the Circuit's MIDI Out and the Mono's MIDI In sockets with stickers from my online store ( My store is here: https://teespring.com/en-GB/stores/synthesizerwriters-store ), but there are other ways to do the same thing.




Finally, just a couple of close-ups to see the Circuit MIDI Out and the Mono Station MIDI In in more detail. Notice that the spacing of the 3.5mm jack sockets is quite tight in comparison with the diameter of the metal 3.5mm jack socket - if it was much wider then you would not be able to get three of them side by side (so don't buy overly-chunky plugs!).

Twisted pair?

In case you are wondering what all this 'stereo / individually screened' versus 'screened twisted pair' means, then here's a quick guide to what happens inside a cable, even when the plugs on the end look the same...


Let's start with what is happening inside a 'stereo' 3.5mm TRS cable - the sort of thing that you get between a tower computer and a woofer, or between a laptop or mobile phone and a multi-headphone sharing gadget. Each of the two wires carrying audio (T and R) has its own metal screen (the dotted lines), and the screens are connected to the 'Ground' (S). Having separate screens around each audio signal is deliberate - it keeps the two audio signals separate!


In contrast, a 3.5mm TRS cable intended for carrying MIDI is very different inside. The two wires that carry the MIDI data (T and R) are twisted together, and then that twisted 'pair' is put inside a single metal screen, which is again connected to 'Ground' (S). The twisting inside the screen has a big effect on the speed and reliability of transferring the MIDI data - the physical arrangement of the wires and screens really does matter!

Note that from the outside, the plugs on the ends of this cable look exactly the same. Also, unless the cable is actually made as two separate screened cables joined together in a figure-of-8 shape, then the cable probably looks exactly the same as well. (Lots of cables have an outer 'sheath' that hides what is going on inside with a 'round' exterior.

If we now go back to that 'Adapters at either end of a MIDI cable':


Then we can now represent what is actually happening much more accurately:


So there are twisted pairs (screened, but I haven't over-complicated the diagram with them) inside the two adapters, plus the same screened twisted pair inside the MIDI cable. As the diagram says, Novation don't use the MMA recommended mapping of TRS-to-MIDI pins, but in this case, because the two adapters are identical, the MIDI cable effectively 'disappears' and the end result is the same as in a purpose made cable:


And, yes, this is not quite 'Quick and Easy', but hopefully you are now better informed about MIDI cables...

Final thoughts - ongoing investigation, plus 2.5mm?

I'm now curious about the cables that are found in the TRS-MIDI adapters that you get with TRS-equipped devices. I'm wondering if they use screened/shielded twisted pair cable (as you would use with a microphone), or if they use the 'stereo' twin screened cable that is normally used with TRS 3.5 mm stereo. This seems like the sort of specification that could easily be misinterpreted, or one where assumptions could be made... So I'm going to do some investigations, and will report back here...

One final concern that I have is in the MMA Recommended Practice #54 where is says that the recommended connector for MIDI other than the 5-pin DIN socket is a 2.5mm TRS 'stereo' jack plug/socket. Given that 3.5mm 'mono' TRS jacks are used widely for patching n Eurorack modulars, as well as the 'stereo' versions in headphones and earphones, then a different connector makes sense. But the 2.5mm TRS jack plug is not the most robust of connectors, and if you compare and contrast it with a 5-pin DIN, then I know which connector I would prefer to be using when making music on stage, in the studio and on tour. The 3.5mm TRS jack is much more robust, imho, and I can see why equipment designers/engineers use it in their designs. I can also understand why they don't use the 2.5mm TRS jack...


If you find my writing helpful, informative or entertaining, then please consider visiting this link:



Saturday, 18 January 2020

Importing, Editing and Exporting MIDI Files - Revisited

About ten years ago, I looked at importing, editing and exporting MIDI Files. I have just updated it, and there have been quite a few changes in the intervening years... Overall, though, things seem to have improved!

To take a look at the new version, then just click here. Whilst you are there, take look at some of the other nearby posts and see what a blog from ten years ago looked like...

Here's a hard link: http://blog.synthesizerwriter.com/2010/02/editing-midi-files.html

MIDIKit 4.3.2 from Mixage Software
What is interesting is how some things have changed, and how some things appear to have changed, but actually are much the same except with different names. Apple's 64-bit Catalina Operating System is in focus at the moment, but ongoing change has been a constant theme of the last ten years, and before that too. So there was System 7, which was a huge change when Macs were tiny little desktop boxes (It is very easy to forget just how incredibly small a Mac Plus was!), and OSX, and in and out of skeumorphism (and maybe back in again - there are one or two little hints appearing in operating systems again, I notice!).

A couple of fascinating examples of ongoing compatibility are example apps in the blog post, both of which have been around for many, many years, and are thoroughly recommended:

- MIDIKit, a MIDI File utility that makes detailed editing of MIDI Files very straight-forward, is 64-bit compatible, and it is shareware from a specialist developer in Italy. Web-site.

- Hex Fiend, a hex file viewer, is also 64-bit compatible, notarised, and is a project on GitHub. Web-site.

I'm sure there are many other equally worthy examples, and from huge corporate names too. I just like to promote alternatives sometimes.



One frequently recurring question that I get asked is about setting the top option and the default for Apps when you try to Open a File in macOS. Here's a quick guide:

VLC (setting 'top' and default Apps for MIDI Files...)


One 'alternative' that deserves mention, imho, is VLC. This is a free, open source media player that plays MIDI Files just by dropping the MIDI File onto it, which is very useful for auditioning purposes. Setting VLC as the 'top' app for .mid files makes it even easier for quick auditioning.

Setting the 'top' App:


Here's the usual situation - the default App (in this case MIDIKit 4.3.2) isn't what you want unless you are doing detailed analysis/editing of MIDI Files!).


So just go down to the 'Other...' menu option, right a the bottom of that pop-up menu on the right...


...and choose the App you want. VLC is a good choice for playing back MIDI Files - you know, like QuickTime Player used to be...


 And so now VLC is the top option in the pop-up menu!

Setting the default App:

To change the default App, then the procedure is slightly different.


So the starting position is where the default App isn't what we want. So let's change the default App from MIDIKit to VLC...


The first step is to right-click the MIDI File and choose the 'Get Info...' pop-up menu option.


Then open up the little triangle for 'Open with:' by clicking on the little triangle...


Select the App that you want as the default in the menu. VLC in this case...


Now the bit that lots of people forget to do - the 'Change All...' button. Click on it!


 ...and you get this dialogue box. Note that it tells you that:

"This change will apply to all documents with extension '.mid'"

This is exactly what we want to happen, so click on 'Continue' and you will then see:


 ...VLC is now the default App for MIDI Files.

If you try the 'Open with...' option again, you will now see this:


 and VLC is now the default App that will open MIDI Files.

Note that if you select an App in that 'Open with...' menu, but don't confirm it with the 'Change All..' button and dialogue, then the default will NOT change! 

For Windows users

I know there are steps that produce the same end results in Windows, but with the recent ending of support for Windows 7, then I don't have a current instance of Windows that I trust at the moment, and so I can't test or screenshot anything. But here are some links that might help you...

https://www.lifewire.com/how-to-change-file-associations-in-windows-2624477

https://support.microsoft.com/en-us/help/4028161/windows-10-change-default-programs

https://www.digitaltrends.com/computing/how-to-change-file-associations/

Hope these are useful...



If you find my writing helpful, informative or entertaining, then please consider visiting this link: