Liking cljdoc? Tell your friends :D
ClojureScript only.

mantra.note.pitch


parse-pitchcljs

(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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close