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 gives you the ability to tune any
10 layout object, in any context. It requires a Scheme function with three
11 arguments; advanced users can write it quite easily, whereas new users
12 may want to use pre-defined functions such as this snippet, or the
13 example in the manual.
16 doctitle = "Changing properties for individual grobs"
18 % ****************************************************************
20 % ****************************************************************
26 #(define (mc-squared gr org cur)
29 (ifs (ly:grob-interfaces gr))
30 (sp (ly:grob-property gr 'staff-position))
32 (if (memq 'note-head-interface ifs)
34 (ly:grob-set-property! gr 'stencil ly:text-interface::print)
35 (ly:grob-set-property! gr 'font-family 'roman)
36 (ly:grob-set-property! gr 'text
37 (make-raise-markup -0.5
39 ((-5) (make-simple-markup "m"))
40 ((-3) (make-simple-markup "c "))
41 ((-2) (make-smaller-markup (make-bold-markup "2")))
42 (else (make-simple-markup "bla"))
46 \context Voice \relative c' {
48 \set autoBeaming = ##f
52 \applyOutput #'Voice #mc-squared
57 % ****************************************************************
59 % ****************************************************************