Recreating the THX Deep Note in JavaScript

THX celebrates their 35th anniversary somewhere in this week. Short bit of history THX’s inception in 1983 was to make sure that the soundtrack of StarWars Return Of The Jedi be reproduced and heard the way it should be apart from being scared the shit out in theaters.

Dr. James A. Moorer former employee of Lucas films computer division was tasked with creating the sound for THX. Which now is one of the most iconic sounds that the masses associate THX with. Not just a sound, the sound it self has become a pop culture icon, IE- the famous Simpsons skit.

Recreation time

Enough yapping around, Let’s get to specs on creating the Deep Note. United States Patent and Trademark Office to the rescue as the trademark document contains basic details on the sound but not the note itself.

The THX logo theme consists of 30 voices over seven measures, starting in a narrow range, 200 to 400 Hz, and slowly diverting to preselected pitches encompassing three octaves. The 30 voices begin at pitches between 200 Hz and 400 Hz and arrive at pre-selected pitches spanning three octaves by the fourth measure. The highest pitch is slightly detuned while there are double the number of voices of the lowest two pitches.

“preselected pitches” eh? Today THX Offical Twitter put out a tweet with the score of the piece. I know one can easily do a spectrogram and on the note and determine the pitches, but this image inspired me to recreate the sound with the details give in the score.

THX Deep Note Score
THX Deep Note Score

That’s much clear, I’m terrible at reading sheet music but this seemed fairly simple. With the aid of Tone.js I was easily able to recreate the Deep Note in JavaScript. though it sound like the chord is off but the general feel of it is there.

Go to results tab for preview

Well that turned out okay, the code is a bit hacky and messy but gets the job done. Need to fix those pitches tho.


Posted On: Saturday 26 May 2018
Catagories: projects
Tags: #DSP