changeset 110:ea542c06c364

implementations/mtp: update to reflect refactoring of diatonic pitch darcs-hash:20070726141940-c0ce4-2c511298f961f5d2c6ca8beb41c11516fb305de9.gz
author Marcus Pearce <m.pearce@gold.ac.uk>
date Thu, 26 Jul 2007 15:19:40 +0100
parents a9a1c7aa86a9
children f49aa290b5c3
files implementations/mtp/methods.lisp
diffstat 1 files changed, 8 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/implementations/mtp/methods.lisp	Thu Jul 26 14:18:34 2007 +0100
+++ b/implementations/mtp/methods.lisp	Thu Jul 26 15:19:40 2007 +0100
@@ -250,19 +250,20 @@
 (defmethod midi-pitch-number ((e mtp-event))
   (%mtp-cpitch e))
 
-(defmethod meredith-morphetic-pitch-number ((e mtp-event))
+(defmethod diatonic-pitch-cp ((e mtp-event))
+  ;; MIPS morphetic pitch is relative to An0 while cpitch is relative to Cn2
+  (- (%mtp-cpitch e) 21))
+
+(defmethod diatonic-pitch-mp ((e mtp-event))
   ;; MIPS morphetic pitch is relative to An0 while mpitch is relative to Cn2
   (- (%mtp-mpitch e) 12))
 
-(defmethod mips-pitch ((e mtp-event))
-  (make-mips-pitch (meredith-chromatic-pitch-number e)
-                   (meredith-morphetic-pitch-number e)))
-
 (defmethod diatonic-pitch ((e mtp-event))
-  (diatonic-pitch (mips-pitch e)))
+  (make-mips-pitch (diatonic-pitch-cp e)
+                   (diatonic-pitch-mp e)))
 
 (defmethod asa-pitch-string ((e mtp-event))
-  (asa-pitch-string (mips-pitch e)))
+  (asa-pitch-string (diatonic-pitch e)))
 
 #.(clsql:locally-enable-sql-reader-syntax)
 (defmethod middle-c ((e mtp-event))