(parse-pitch x)
If given a number (e.g. 440), returns the number, which will be interpreted as a frequency in Hz.
If given something else (e.g. a string or keyword like "C#5" or :C#5),
returns the result of calling music-theory.pitch/note->hz
on it to get the
frequency in Hz.
If given a number (e.g. 440), returns the number, which will be interpreted as a frequency in Hz. If given something else (e.g. a string or keyword like "C#5" or :C#5), returns the result of calling `music-theory.pitch/note->hz` on it to get the frequency in Hz.
cljdoc builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |