1 %% Do not edit this file; it is auto-generated from LSR!
2 %% Tags: tweaks-and-overrides
6 The @code{\\applyOutput} command gives you the ability to tune any
7 layout object, in any context. It requires a Scheme function with three
8 arguments; advanced users can write it quite easily, whereas new users
9 may want to use pre-defined functions such as this snippet, or the
10 example in the manual.
13 % ****************************************************************
15 % ****************************************************************
21 #(define (mc-squared gr org cur)
24 (ifs (ly:grob-interfaces gr))
25 (sp (ly:grob-property gr 'staff-position))
27 (if (memq 'note-head-interface ifs)
29 (ly:grob-set-property! gr 'stencil ly:text-interface::print)
30 (ly:grob-set-property! gr 'font-family 'roman)
31 (ly:grob-set-property! gr 'text
32 (make-raise-markup -0.5
34 ((-5) (make-simple-markup "m"))
35 ((-3) (make-simple-markup "c "))
36 ((-2) (make-smaller-markup (make-bold-markup "2")))
37 (else (make-simple-markup "bla"))
41 \context Voice \relative c' {
43 \set autoBeaming = ##f
47 \applyOutput #'Voice #mc-squared
52 % ****************************************************************
54 % ****************************************************************