]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/changing-properties-for-individual-grobs.ly
10e57b8d1ab068488dcb1aa0016295e0f79859ad
[lilypond.git] / input / lsr / changing-properties-for-individual-grobs.ly
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.
3 \version "2.13.1"
4
5 \header {
6   lsrtags = "tweaks-and-overrides"
7
8   texidoc = "
9 The @code{\\applyOutput} command allows the tuning of any layout
10 object, in any context. It requires a Scheme function with three
11 arguments.
12
13 "
14   doctitle = "Changing properties for individual grobs"
15 } % begin verbatim
16
17 #(define (mc-squared grob grob-origin context)
18   (let ((sp (ly:grob-property grob 'staff-position)))
19     (if (grob::has-interface grob 'note-head-interface)
20       (begin
21         (ly:grob-set-property! grob 'stencil
22           (grob-interpret-markup grob
23             (make-lower-markup 0.5
24               (case sp
25                 ((-5) "m")
26                 ((-3) "c ")
27                 ((-2) (make-smaller-markup (make-bold-markup "2")))
28                 (else "bla")))))))))
29
30 \relative c' {
31   <d f g b>2
32   \applyOutput #'Voice #mc-squared
33   <d f g b>2
34 }