Function
(hertzfreq {keyword value}*)
Returns the Hertz value of freq, which can be a note name, key number, Hertz value or list of the same.
hertz supports the following keyword arguments:
:hz boolean:in tuning*scale*.
:through { tuning | mode};; Converting notes and key numbers to Hertz. (hertz 'c4) ⇒ 261.625 (hertz '(a4 c5 e)) ⇒ (440.0 523.2511 659.2552) (hertz 0) ⇒ 8.175 (hertz '(69 69.5 70)) ⇒ (440.0 452.892 466.163) ;; Tunings and Hertz. ;;; define a scale whose steps are harmonics 8-16. (define harms (new tuning :ratios (loop for i from 8 to 16 collect (/ i 8)) :lowest (hertz 'c0))) ;; middle c octave (hertz (loop for k from 32 to 40 collect k) :in harms) ⇒ (261.625 294.328 327.031 359.735 392.438 425.14 457.844 490.54 523.25)
invert [Function]keynum [Function]note [Function]note-accidental [Function]note-name [Function]octave-number [Function]pitch-class [Function]prime-form [Function]scale-max [Function]scale-min [Function]scale-mod [Function]scale-order [Function]scale< [Function]scale<= [Function]scale= [Function]scale> [Function]scale>= [Function]transpose [Function]