From: nsceaux Date: Sat, 26 Nov 2005 11:11:50 +0000 (+0000) Subject: (RevertProperty, OverrideProperty): Use grob-property-path property, a X-Git-Tag: release/2.7.20~17 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=a807942b7affd9520bc936e2785acf161b49fdea;p=lilypond.git (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. --- diff --git a/ChangeLog b/ChangeLog index fe7a235bbc..2dd0d0fd8d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2005-11-26 Nicolas Sceaux + + * 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 * lily/figured-bass-engraver.cc (process_music): check diff --git a/scm/define-music-display-methods.scm b/scm/define-music-display-methods.scm index 625e6e933a..72ebbe9445 100644 --- a/scm/define-music-display-methods.scm +++ b/scm/define-music-display-methods.scm @@ -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 @@ -321,7 +321,7 @@ 'ContextSpeccedMusic element (music 'OverrideProperty - grob-property 'stroke-style + grob-property-path '(stroke-style) grob-value "grace" symbol 'Stem))))) #t) @@ -331,7 +331,7 @@ '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") + (cond ((null? fig) "_") + ((markup? fig) (second fig)) ;; fig: ( "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