{"id":11269,"date":"2023-05-21T10:33:36","date_gmt":"2023-05-21T14:33:36","guid":{"rendered":"https:\/\/audioapartment.com\/?page_id=11269"},"modified":"2023-10-23T23:17:47","modified_gmt":"2023-10-24T03:17:47","slug":"note-to-frequency-calculator","status":"publish","type":"page","link":"https:\/\/audioapartment.com\/tools\/note-to-frequency-calculator\/","title":{"rendered":"Note-to-frequency Calculator"},"content":{"rendered":"\n

This online tool turns musical notes into frequencies. Users input a note (A to G, with ‘#’ for sharp notes) and an octave (0-8). After clicking “Convert,” the tool shows the note’s frequency. It finds the MIDI note number for the input and uses a formula based on the A4 note’s 440Hz frequency. The resulting frequency then appears on the screen.<\/p>\n\n\n\n\n Note to Frequency Converter<\/title>\n <style>\n .freq-conv-body {\n font-family: Arial, sans-serif;\n text-align: center;\n height: 100vh;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .freq-conv-container {\n display: inline-block;\n padding: 30px;\n background-color: #FFF;\n border-radius: 12px;\n width: 100%;\n box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.1);\n box-sizing: border-box;\n margin-bottom: 40px;\n }\n\n .freq-conv-container h2 {\n margin-bottom: 20px;\n }\n\n .freq-conv-result {\n margin-top: 20px;\n font-size: 1.2em;\n color: #2F80ED;\n margin-top: 30px;\n text-align: center;\n }\n\n .freq-conv-button {\n background-color: #2F80ED;\n color: #FFFFFF;\n border: none;\n padding: 10px 20px;\n border-radius: 5px;\n font-size: 1em;\n cursor: pointer;\n margin-top: 20px;\n }\n\n .freq-conv-button:hover {\n background-color: #2364B0;\n }\n\n .freq-conv-input {\n width: 100%;\n padding: 10px;\n border-radius: 5px;\n border: 1px solid #CCC;\n box-sizing: border-box;\n background-color: #fff !important;\n }\n <\/style>\n<\/head>\n<body class=\"freq-conv-body\">\n <div class=\"freq-conv-container\">\n <label for=\"note\">Note (A – G, include ‘#’ for sharps):<\/label>\n <input class=\"freq-conv-input\" id=\"note\" type=\"text\" pattern=\"[A-G#]+\" maxlength=\"2\" placeholder=\"Example: A#\">\n <label for=\"octave\">Octave (0 – 8):<\/label>\n <input class=\"freq-conv-input\" id=\"octave\" type=\"number\" min=\"0\" max=\"8\">\n <button class=\"freq-conv-button\" onclick=\"convertNoteToFrequency()\">Convert<\/button>\n <p class=\"freq-conv-result\" id=\"result\"><\/p>\n <\/div>\n\n <script>\n const noteNames = ['C', 'C#', 'D', 'D#', 'E', 'F', 'F#', 'G', 'G#', 'A', 'A#', 'B'];\n const noteA4 = 440;\n const octave = 12;\n\n function convertNoteToFrequency() {\n let note = document.getElementById(\"note\").value.toUpperCase();\n let octaveNum = document.getElementById(\"octave\").value;\n let noteNum = noteNames.indexOf(note) + (octaveNum - 4) * octave;\n let freq = noteA4 * Math.pow(2, noteNum \/ octave);\n document.getElementById(\"result\").innerHTML = `The note ${note}${octaveNum} corresponds to: ${freq.toFixed(2)} Hz`;\n }\n <\/script>\n<\/body>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How to use<\/strong><\/h2>\n\n\n\n<ol>\n<li><strong>Open the Tool:<\/strong> Launch the music tool in your web browser.<\/li>\n\n\n\n<li><strong>Input the Note:<\/strong> Type a letter from A to G in the “Note” box. Add a ‘#’ for sharp notes if needed.<\/li>\n\n\n\n<li><strong>Specify the Octave:<\/strong> Enter a number between 0 and 8 in the “Octave” box.<\/li>\n\n\n\n<li><strong>Click “Convert”:<\/strong> Initiate the conversion process.<\/li>\n\n\n\n<li><strong>View the Frequency:<\/strong> The tool will show the corresponding note frequency in Hz.<\/li>\n<\/ol>\n\n\n\n<p><strong>Note:<\/strong> This tool uses equal temperament where A4 is tuned to 440Hz, and each note is separated by a constant frequency ratio. This is a standard in Western music but might not align with every musical tradition or tuning system. Furthermore, due to the nature of the conversion process, there might be minor inaccuracies.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This online tool turns musical notes into frequencies. Users input a note (A to G, with ‘#’ for sharp notes) and an … <a title=\"Note-to-frequency Calculator\" class=\"read-more\" href=\"https:\/\/audioapartment.com\/tools\/note-to-frequency-calculator\/\" aria-label=\"Read more about Note-to-frequency Calculator\">Read more<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"parent":11299,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"_links":{"self":[{"href":"https:\/\/audioapartment.com\/wp-json\/wp\/v2\/pages\/11269"}],"collection":[{"href":"https:\/\/audioapartment.com\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/audioapartment.com\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/audioapartment.com\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/audioapartment.com\/wp-json\/wp\/v2\/comments?post=11269"}],"version-history":[{"count":7,"href":"https:\/\/audioapartment.com\/wp-json\/wp\/v2\/pages\/11269\/revisions"}],"predecessor-version":[{"id":19371,"href":"https:\/\/audioapartment.com\/wp-json\/wp\/v2\/pages\/11269\/revisions\/19371"}],"up":[{"embeddable":true,"href":"https:\/\/audioapartment.com\/wp-json\/wp\/v2\/pages\/11299"}],"wp:attachment":[{"href":"https:\/\/audioapartment.com\/wp-json\/wp\/v2\/media?parent=11269"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}