Morse code in musical notation

Maybe this has been done before, but I haven’t seen it: Morse code in musical notation.

Here’s the Morse code alphabet, one letter per measure; in practice there would be less space between letters [1]. A dash is supposed to be three times as long as a dot, so a dot is a sixteenth note and a dash is a dotted eighth note.

Morse code is often at a frequency between 600 and 800 Hz. I picked the E above middle C (660 Hz) because it’s in that range.

Rhythm

Officially a dash is three times as long as a dot. But there’s also a space equal to the length of a dot between parts of a letter. So the sheet music above would be more accurate if you imagined all the sixteenth notes are staccato and the dotted eighth notes are really eighth notes followed by a sixteenth rest.

This doesn’t make much difference because individual operators have varying “fists,” styles of sending Morse code, and won’t exactly follow the official length and spacing rules.

You could rewrite the music above as follows, but it’s all an approximation.

Tempo

According to Wikipedia, “the dit length at 20 words per minute is 50 milliseconds.” So if a sixteenth note has a duration of 50 milliseconds, this would mean five quarter notes per second, or 300 beats per minute. But according to this video, the shortest duration people can distinguish is about 50 milliseconds.

That would imply that copying Morse code at 20 wpm is pushing the limits of human hearing. But copying at 20 wpm is common. Some people can copy Morse code at more than 50 words per minute or more, but at that speed they’re not hearing individual dits and dahs. An H, for example, four dits in a row, sounds like a single rough sound. In fact, they’re not really hearing letters at all but recognizing the shape of words.

How the image was made

I made the image above with LaTeX and Lilypond.

Adding the letters above each measure was kind of a hack. I used rehearsal markings to label the measures, but there was one problem: the software skips from letter H to letter J. That meant that the labels I and all subsequent letters were one ahead of what they should be, and the final letter Z was labeled AA. I tried several tricks, and Lilypond steadfastly refused to label a measure with ‘I’ even though I’ve seen such a label in the documentation.

My way around this was to make it label two consecutive measures with H, then in image editing software I turned the second H into an I. No doubt there’s a better way, but this worked.

I may play around with this and try to improve it a bit. If you have any suggestions, particularly related to Lilypond, please let me know.

Related posts

[1] You could think of the musical score above as a sort of transcription of the Farnsworth method of teaching Morse code. Students learn the letters at full speed, but with extra space between the letters at first. The faster speed discourages consciously counting the dits and dahs, forcing the student to listen to the overall rhythm of the letters.

6 thoughts on “Morse code in musical notation

  1. As you might expect, this connection has been exploited many times. Probably the most well-known example is the Rush song “YYZ”, which uses it in the opening riff.

  2. Seems in the ballpark. The way I learned, 20wpm means you can send “PARIS” 20 times in a minute. PARIS (.–. .- .-. .. …) is as long as 43 dits, plus another 7 for a word space, so 20wpm is 1000 dit times per minute. 60,000 ms per minute / 1000 = 60ms per dit.

    The magic, of course, is that even when a dit is shorter than the “shortest distinguishable duration”, a trained ear can still hear it as part of something else, and still hear the difference between e.g. …. (H) and ..-. (F), even at speeds up to 50wpm. Skilled operators (of which I’m not one) don’t hear the code elements or even the letters; they recognize the “shapes” of entire words in in much the same way as skilled readers of printed language do.

  3. Another famous example is the Inspector Morse theme by Barrington Pheloung. The opening morses MORSE, and the score often hints at the identity of the murderer.

  4. “…I made the image above with LaTeX and Lilypond…”

    Paging Dr. Knuth, lobby courtesy phone…….

    Wow, what’s next, coding METAFONT in Morse, to generate itself?

Leave a Reply

Your email address will not be published.