+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
(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
(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
(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"
""
(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