]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/output-property.ly
* input/test/divisiones.ly: added
[lilypond.git] / input / regression / output-property.ly
1 \header { texidoc = "
2
3 @code{\outputproperty} is a clumsy and deprecated way of changing grob
4 definitions.  In this example, the predicate checks the @code{text}
5 object property, to shift only the `m.d.'  text, but not the `two'
6 text.  Since both scripts are @code{TextScript} grobs, using
7 possible to use @code{\override} would shift both texts.
8
9 "
10
11 }
12
13 \version "1.7.16"
14
15 #(define (make-text-checker text)
16    (lambda (grob) (equal? text (ly:get-grob-property grob 'text))))
17
18 \score {    
19   \notes\relative c''' {
20     a^"two"^"m.d."
21     \context Voice
22       \outputproperty #(make-text-checker (make-simple-markup "m.d."))
23         #'extra-offset = #'(-4.0 . -3.5)
24     a^"two"^"m.d."    
25     a^"two"^"m.d."    
26   }
27 }