]> git.donarmstrong.com Git - lilypond.git/commitdiff
(RevertProperty, OverrideProperty): Use grob-property-path property, a
authorNicolas Sceaux <nicolas.sceaux@free.fr>
Sat, 26 Nov 2005 11:11:50 +0000 (11:11 +0000)
committerNicolas Sceaux <nicolas.sceaux@free.fr>
Sat, 26 Nov 2005 11:11:50 +0000 (11:11 +0000)
list of symbols, instead of grob-property, which used to be a single
symbol.
(BassFigureEvent): a figure can be a plain number, not
necessarily a markup.

ChangeLog
scm/define-music-display-methods.scm

index fe7a235bbcaa6ad4bb9c5e5a588da2a46c4119ce..2dd0d0fd8d3bedcc4cdd0c5a0a5aad0b72f96bb9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2005-11-26  Nicolas Sceaux  <nicolas.sceaux@free.fr>
+
+       * scm/define-music-display-methods.scm (RevertProperty):
+       (OverrideProperty): Use grob-property-path property, a list of
+       symbols, instead of grob-property, which used to be a single
+       symbol.
+       (BassFigureEvent): a figure can be a plain number, not necessarily a
+       markup.
+
 2005-11-25  Han-Wen Nienhuys  <hanwen@xs4all.nl>
 
        * lily/figured-bass-engraver.cc (process_music): check
index 625e6e933a64d16cd7a6e364771b94030f15fb60..72ebbe9445ec4c80e9729ec02da1499e99b1e0c4 100644 (file)
@@ -85,7 +85,7 @@
        (result #f result))
       ((or result (null? alist)) result)
     (if (and (car alist) (test item (cdar alist)))
-        (set! result (car alist)))))
+       (set! result (car alist)))))
 
 (define (note-name->lily-string ly-pitch)
   ;; here we define a custom pitch= function, since we do not want to
                                               'ContextSpeccedMusic
                                               element (music
                                                        'OverrideProperty
-                                                       grob-property 'stroke-style
+                                                       grob-property-path '(stroke-style)
                                                        grob-value "grace"
                                                        symbol 'Stem)))))
                           #t)
                                              'ContextSpeccedMusic
                                              element (music
                                                       'RevertProperty
-                                                      grob-property 'stroke-style
+                                                      grob-property-path '(stroke-style)
                                                       symbol 'Stem))
                                             (music
                                              'EventChord
@@ -598,9 +598,9 @@ Otherwise, return #f."
        (bracket-stop (ly:music-property figure 'bracket-stop)))
     (format #f "~a~a~a~a"
            (if (null? bracket-start) "" "[")
-           (if (null? fig) 
-               "_"
-               (second fig)) ;; fig: (<number-markup> "number")
+           (cond ((null? fig) "_")
+                 ((markup? fig) (second fig)) ;; fig: (<number-markup> "number")
+                 (else fig))
            (if (null? alteration)
                ""
                (case alteration
@@ -827,7 +827,7 @@ Otherwise, return #f."
 
 (define-display-method OverrideProperty (expr)
   (let ((symbol          (ly:music-property expr 'symbol))
-       (property (ly:music-property expr 'grob-property))
+       (properties (ly:music-property expr 'grob-property-path))
        (value    (ly:music-property expr 'grob-value))
        (once     (ly:music-property expr 'once)))
     (format #f "~a\\override ~a~a #'~a = ~a~a"
@@ -839,19 +839,23 @@ Otherwise, return #f."
                "" 
                (format #f "~a . " (*current-context*)))
            symbol
-           property
+           (if (null? (cdr properties))
+               (car properties)
+               properties)
            (property-value->lily-string value)
            (new-line->lily-string))))
            
 (define-display-method RevertProperty (expr)
   (let ((symbol (ly:music-property expr 'symbol))
-       (property (ly:music-property expr 'grob-property)))
+       (properties (ly:music-property expr 'grob-property-path)))
     (format #f "\\revert ~a~a #'~a~a"
            (if (eqv? (*current-context*) 'Bottom) 
                "" 
                (format #f "~a . " (*current-context*)))
            symbol
-           property
+           (if (null? (cdr properties))
+               (car properties)
+               properties)
            (new-line->lily-string))))
 
 ;;; \clef