Get the frequency of a musical note

Here’s a little bit of JavaScript that’s used within Qwerty Hancock that you may find useful for your own audio project. It’s a simple little function that takes the name of a musical note along with its octave, and gives you back the audio frequency of said note. Be amazed as a note is turned into a funny big number before your eyes!