{"id":2700,"date":"2012-02-16T10:23:21","date_gmt":"2012-02-16T09:23:21","guid":{"rendered":"https:\/\/blogs.mentor.com\/colinwalls\/?p=2700"},"modified":"2026-03-26T16:36:57","modified_gmt":"2026-03-26T20:36:57","slug":"the-first-12-notes-of-a-song","status":"publish","type":"post","link":"https:\/\/blogs.sw.siemens.com\/embedded-software\/2012\/02\/16\/the-first-12-notes-of-a-song\/","title":{"rendered":"The first 12 notes of a song"},"content":{"rendered":"<p>If you are reading and come across a word that you do not understand, and you feel suitably motivated, it is straightforward to look it up in a dictionary. This is something that I do a lot, as part of my motivation for reading is to improve my own communication skills. Yet another reason why my Kindle is my friend. It is less easy if you just hear a word, as, in English, it can be challenging to find the right spelling, particularly when the speaker is lazy about pronunciation.<\/p>\n<p>The problem gets more interesting when, instead of a word, it is a piece of music that you want to identify &#8230;<!--more--><\/p>\n<p>Nowadays, technology gives us some interesting ways to identify music. If the song you hear has words, then all you need to do is Google a suitably long sequence and you will most likely find yourself directed to one of the numerous song lyric sites. On one occasion, I mis-heard the words and Googled what I thought that I had heard. The lyrics site to which I was taken was so smartly designed that it cataloged mis-heard variants of songs as well as the accurate words.<\/p>\n<p>If you have a smart phone, you just need the right app. I use Shazam, but I am sure there are others. All you do is let the app &#8220;listen&#8221; to the music for a few moments, then it accesses some remote database and comes back with the answer. I am constantly amazed at its precision. It seems to be able to identify quite obscure music, from only a short sample and seems impervious to quite high levels of background noise. I guess this is a high tech implementation of <a href=\"https:\/\/blogs.mentor.com\/colinwalls\/blog\/2011\/06\/16\/ogwt\/\" target=\"_blank\" rel=\"noopener noreferrer\">The Old Greys Whistle Test<\/a>.<\/p>\n<p>Many years ago, I heard about a much lower technology approach. A dictionary was published, which listed many thousands of pieces of music. The authors claimed that, if you could hum the first few [I think it may have been 12] notes of a song, you could look it up in this dictionary. All you needed to do was right down these notes in the following way:<\/p>\n<ul>\n<li>The first note is written as &#8220;X&#8221;.<\/li>\n<li>Each subsequent note is written thus:<\/li>\n<ul>\n<li>&#8220;S&#8221; means that it is the same as the previous note.<\/li>\n<li>&#8220;H&#8221; means that it is a higher pitch than the previous note.<\/li>\n<li>&#8220;L&#8221; means that it is a lower pitch than the previous note.<\/li>\n<\/ul>\n<\/ul>\n<p>So you end up with a string that looks like this: <strong>XSSLLSSLHSS&#8230;<\/strong><\/p>\n<p>Then you look through the dictionary where songs are listed as strings like this in alphabetical order.<\/p>\n<p>I was very taken with the elegance of this idea and have often wondered whether that dictionary was successful and whether it still exists.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are reading and come across a word that you do not understand, and you feel suitably motivated, it&#8230;<\/p>\n","protected":false},"author":71677,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spanish_translation":"","french_translation":"","german_translation":"","italian_translation":"","polish_translation":"","japanese_translation":"","chinese_translation":"","footnotes":""},"categories":[1],"tags":[302],"industry":[],"product":[],"coauthors":[],"class_list":["post-2700","post","type-post","status-publish","format-standard","hentry","category-news","tag-off-topic"],"_links":{"self":[{"href":"https:\/\/blogs.sw.siemens.com\/embedded-software\/wp-json\/wp\/v2\/posts\/2700","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.sw.siemens.com\/embedded-software\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.sw.siemens.com\/embedded-software\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/embedded-software\/wp-json\/wp\/v2\/users\/71677"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/embedded-software\/wp-json\/wp\/v2\/comments?post=2700"}],"version-history":[{"count":1,"href":"https:\/\/blogs.sw.siemens.com\/embedded-software\/wp-json\/wp\/v2\/posts\/2700\/revisions"}],"predecessor-version":[{"id":10040,"href":"https:\/\/blogs.sw.siemens.com\/embedded-software\/wp-json\/wp\/v2\/posts\/2700\/revisions\/10040"}],"wp:attachment":[{"href":"https:\/\/blogs.sw.siemens.com\/embedded-software\/wp-json\/wp\/v2\/media?parent=2700"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/embedded-software\/wp-json\/wp\/v2\/categories?post=2700"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/embedded-software\/wp-json\/wp\/v2\/tags?post=2700"},{"taxonomy":"industry","embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/embedded-software\/wp-json\/wp\/v2\/industry?post=2700"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/embedded-software\/wp-json\/wp\/v2\/product?post=2700"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/blogs.sw.siemens.com\/embedded-software\/wp-json\/wp\/v2\/coauthors?post=2700"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}