Skip to content

Commit

Permalink
Name midi->hz's parameter midi.
Browse files Browse the repository at this point in the history
  • Loading branch information
ctford committed Nov 14, 2012
1 parent 51515a3 commit 7f60b79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/goldberg/variations/canone_alla_quarta.clj
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@
;; Equal temperament ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

(defn midi->hz [pitch]
(defn midi->hz [midi]
(*
8.1757989156 ; midi zero
(java.lang.Math/pow 2 (/ pitch 12))))
(java.lang.Math/pow 2 (/ midi 12))))

;(midi->hz 69)

Expand Down

0 comments on commit 7f60b79

Please sign in to comment.