diff options
author | Jay Belanger <jay.p.belanger@gmail.com> | 2011-03-05 22:28:39 -0600 |
---|---|---|
committer | Jay Belanger <jay.p.belanger@gmail.com> | 2011-03-05 22:28:39 -0600 |
commit | 05a29101b26339dd1964938c47a3dc1eb916468c (patch) | |
tree | 63f2dee712bf6550ccdd50d64434e47cfc0a5bed /lisp/calc/calc.el | |
parent | 479a2c9bfe1ff61dd1bec6773d3533eb213a369f (diff) | |
download | emacs-05a29101b26339dd1964938c47a3dc1eb916468c.tar.gz emacs-05a29101b26339dd1964938c47a3dc1eb916468c.tar.bz2 emacs-05a29101b26339dd1964938c47a3dc1eb916468c.zip |
* calc/calc-units.el (math-midi-round, math-freqp, math-midip)
(math-spnp, math-spn-to-midi, math-midi-to-spn, math-freq-to-spn)
(math-midi-to-freq, math-spn-to-freq, calcFunc-spn, calcFunc-midi)
(calcFunc-freq, calc-freq, calc-midi, calc-spn): New functions.
(math-notes): New variable.
* calc/calc.el (calc-note-threshold): New variable.
* calc/calc-ext.el (calc-init-extensions): Add keybindings for
calc-spn, calc-midi, calc-freq. Add autoloads for calcFunc-spn,
calcFunc-midi, calcFunc-freq, calc-spn, calc-midi and calc-freq.
* doc/misc/calc.tex (Musical Notes): New section.
(Customizing Calc): Mention calc-note-threshold.
Diffstat (limited to 'lisp/calc/calc.el')
-rw-r--r-- | lisp/calc/calc.el | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/calc/calc.el b/lisp/calc/calc.el index 72ddddeb32d..f4d8983eb88 100644 --- a/lisp/calc/calc.el +++ b/lisp/calc/calc.el @@ -446,6 +446,11 @@ by displaying the sub-formula in `calc-selected-face'." :group 'calc :type '(string)) +(defcustom calc-note-threshold "1" + "The number of cents that a frequency should be near a note +to be identified as that note." + :type 'string + :group 'calc) (defface calc-nonselected-face '((t :inherit shadow |