]> git.donarmstrong.com Git - lilypond.git/commitdiff
* scm/chord-name.scm: Super/raise changes and fixes for Banter.
authorJan Nieuwenhuizen <janneke@gnu.org>
Sat, 4 Jan 2003 15:26:04 +0000 (15:26 +0000)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sat, 4 Jan 2003 15:26:04 +0000 (15:26 +0000)
(step->markup-accidental): Fix: add accidental.
(chord::inner-name-american):
(chord::inner-name-jazz): Ugly fix from inner-name-banter: do not
append stray '/' if last superscript addition was 'o'.

ChangeLog
scm/chord-name.scm

index 633e485f6cb61e0ab03a127d3714e8961e32bc4c..bf5bfc34f3fae920a0ba90e7f2ad444cc15b81d9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,10 @@
 2003-01-04  Jan Nieuwenhuizen  <janneke@gnu.org>
 
        * scm/chord-name.scm: Super/raise changes and fixes for Banter.
+       (step->markup-accidental): Fix: add accidental.
+       (chord::inner-name-american): 
+       (chord::inner-name-jazz): Ugly fix from inner-name-banter: do not
+       append stray '/' if last superscript addition was 'o'.
 
        * scm/new-markup.scm (normal-size-sub-markup) 
        (normal-size-super-markup): New function.
index 41d7f32cf2d76c2ff234185857d7258f91c48f94..88b2b458a6c20022403828fc2250469799cf9ccb 100644 (file)
@@ -392,6 +392,8 @@ dump reinterpret the markup as a molecule.
 "
   (let* ((tonic-markup (pitch->chord-name-markup-banter tonic steps))
         (except-markup (if exception-part exception-part empty-markup))
+        ;; UGR.  How do we know if we should add a separator or not?
+        ;; maybe just add extra column to exception list?
         (sep-markup (if (and exception-part
                              (let ((s (format "~s" except-markup)))
                                (and
@@ -510,13 +512,15 @@ dump reinterpret the markup as a molecule.
   (make-override-markup '(font-family . math) (make-simple-markup "N")))
 
 (define (step->markup-accidental pitch)
+  (make-line-markup
+   (list
     (case (caddr pitch)
       ((-2) (accidental->markup -2))
       ((-1) (accidental->markup -1))
       ((0) empty-markup)
       ((1) (accidental->markup 1))
       ((2) (accidental->markup 2)))
-    (make-simple-markup (number->string (+ (cadr pitch) (if (= (car pitch) 0) 1 8)))))
+    (make-simple-markup (number->string (+ (cadr pitch) (if (= (car pitch) 0) 1 8)))))))
 
 (define-public chord::exception-alist-american 
   `(
@@ -603,7 +607,18 @@ dump reinterpret the markup as a molecule.
                                  bass-and-inversion steps)
   (let* ((tonic-markup (pitch->chord-name-markup-banter tonic steps))
         (except-markup (if exception-part exception-part empty-markup))
-        (sep-markup (if (and (string-match "super" (format "~s" except-markup))
+        ;; UGR.  How do we know if we should add a separator or not?
+        ;; maybe just add extra column to exception list?
+        (sep-markup (if (and exception-part
+                             (let ((s (format "~s" except-markup)))
+                               (and
+                                (string-match "super" s)
+                                ;; ugh ugh
+                                ;; python: `except_markup`[-7:] != '"o"))'
+                                (not (equal?
+                                      "\"o\"))))"
+                                      (substring s
+                                                 (- (string-length s) 7))))))
                              (or (pair? additions)
                                  (pair? subtractions)))
                         (make-super-markup (make-simple-markup "/"))
@@ -775,7 +790,18 @@ dump reinterpret the markup as a molecule.
                                bass-and-inversion steps)
   (let* ((tonic-markup (pitch->chord-name-markup-banter tonic steps))
         (except-markup (if exception-part exception-part empty-markup))
-        (sep-markup (if (and (string-match "super" (format "~s" except-markup))
+        ;; UGR.  How do we know if we should add a separator or not?
+        ;; maybe just add extra column to exception list?
+        (sep-markup (if (and exception-part
+                             (let ((s (format "~s" except-markup)))
+                               (and
+                                (string-match "super" s)
+                                ;; ugh ugh
+                                ;; python: `except_markup`[-7:] != '"o"))'
+                                (not (equal?
+                                      "\"o\"))))"
+                                      (substring s
+                                                 (- (string-length s) 7))))))
                              (or (pair? additions)
                                  (pair? subtractions)))
                         (make-super-markup (make-simple-markup "/"))