4 texidoc
= "The @code{\applyOutput} expression is the most flexible way to
5 tune properties for individual grobs.
7 Here, the layout of a note head is changed depending on its vertical
16 #(define
(mc-squared gr org cur
)
19 (ifs
(ly
:grob-interfaces gr
))
20 (sp
(ly
:grob-property gr
'staff-position
))
22 (if
(memq
'note-head-interface ifs
)
24 (ly
:grob-set-property
! gr
'stencil ly
:text-interface
::print
)
25 (ly
:grob-set-property
! gr
'font-family
'roman
)
26 (ly
:grob-set-property
! gr
'text
27 (make-raise-markup -
0.5
29 ((-
5) (make-simple-markup
"m"))
30 ((-
3) (make-simple-markup
"c "))
31 ((-
2) (make-smaller-markup
(make-bold-markup
"2")))
32 (else
(make-simple-markup
"bla"))
36 \context Voice
\relative c' {
38 \set autoBeaming
= ##f
42 \applyOutput #'Voice
#mc-squared