We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 440ed59 + 7fc42f4 commit a3ee4b3Copy full SHA for a3ee4b3
src/helpers.js
@@ -82,6 +82,16 @@ function midiToFreq(m) {
82
}
83
84
// This method converts ANSI notes specified as a string "C4", "Eb3" to a frequency
85
+
86
+/**
87
+ * Returns the frequency value of a note. This
88
+ * the method converts ANSI notes specified as a
89
+ * string "C4", "Eb3" etc to a frequency.
90
+ *
91
+ * @method noteToFreq
92
+ * @param {String} ansiNote The string of a ANSI note
93
+ * @return {Number} Frequency value of the given ANSI note
94
+ */
95
function noteToFreq(note) {
96
if (typeof note !== 'string') {
97
return note;
0 commit comments