diff base/generics.lisp @ 231:7a5618d334e4

DRAFT: kludge for tactus-duration Ignore-this: b5cb875a6d31e7ea35394f335abaddc0 darcs-hash:20091024170612-16a00-3a9ab095515a8510393ac4e61767ddae7a811870.gz committer: Jamie Forth <j.forth@gold.ac.uk>
author j.forth <j.forth@gold.ac.uk>
date Thu, 24 Feb 2011 11:23:18 +0000
parents 32b40c50075e
children eb4d239f5437
line wrap: on
line diff
--- a/base/generics.lisp	Thu Feb 24 11:23:18 2011 +0000
+++ b/base/generics.lisp	Thu Feb 24 11:23:18 2011 +0000
@@ -160,10 +160,14 @@
   (:documentation "Not obviously meaningful for non fraction-like
   time signatures"))
 (defgeneric tactus-duration (time-signature)
-  ;; basic, but should do?
+  ;; basic, but should do? NO! This defines 6/4 as compound. We need
+  ;; proper simplep and compoundp predicates.
   (:method (ts)
+    (warn "FIXME: tactus-duration is broken")
     (cond
-      ((and (not (= (beat-units-per-bar ts) 3))
+      ;; ((and (not (= (beat-units-per-bar ts) 3))
+      ;; 	    (= (rem (beat-units-per-bar ts) 3) 0))
+      ((and (= (beat-units ts) 8)
 	    (= (rem (beat-units-per-bar ts) 3) 0))
        ;; compound time
        (* (/ 4 (beat-units ts))