1 %% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
2 %% This file is in the public domain.
6 lsrtags
= "tweaks-and-overrides"
9 The @code{\\applyOutput} command allows the tuning of any layout
10 object, in any context. It requires a Scheme function with three
14 doctitle
= "Changing properties for individual grobs"
20 #(define
(mc-squared grob grob-origin context
)
23 (ifs
(ly
:grob-interfaces grob
))
24 (sp
(ly
:grob-property grob
'staff-position
))
26 (if
(memq
'note-head-interface ifs
)
28 (ly
:grob-set-property
! grob
'stencil ly
:text-interface
::print
)
29 (ly
:grob-set-property
! grob
'font-family
'roman
)
30 (ly
:grob-set-property
! grob
'text
31 (make-raise-markup -
0.5
33 ((-
5) (make-simple-markup
"m"))
34 ((-
3) (make-simple-markup
"c "))
35 ((-
2) (make-smaller-markup
(make-bold-markup
"2")))
36 (else
(make-simple-markup
"bla"))
42 \applyOutput #'Voice
#mc-squared