Function: math-midi-to-freq

math-midi-to-freq is a byte-compiled function defined in calc-units.el.gz.

Signature

(math-midi-to-freq MIDI)

Documentation

Return the frequency of the note with midi number MIDI.

Source Code

;; Defined in /usr/src/emacs/lisp/calc/calc-units.el.gz
(defun math-midi-to-freq (midi)
  "Return the frequency of the note with midi number MIDI."
  (list '*
        (math-mul
         440
         (math-pow
          2
          (math-div
           (math-sub
            midi
            69)
           12)))
        '(var Hz var-Hz)))