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 %% Tags: tweaks-and-overrides
7 The @code{\\applyOutput} command gives you the ability to tune any
8 layout object, in any context. It requires a Scheme function with three
9 arguments; advanced users can write it quite easily, whereas new users
10 may want to use pre-defined functions such as this snippet, or the
11 example in the manual.
14 % ****************************************************************
16 % ****************************************************************
22 #(define (mc-squared gr org cur)
25 (ifs (ly:grob-interfaces gr))
26 (sp (ly:grob-property gr 'staff-position))
28 (if (memq 'note-head-interface ifs)
30 (ly:grob-set-property! gr 'stencil ly:text-interface::print)
31 (ly:grob-set-property! gr 'font-family 'roman)
32 (ly:grob-set-property! gr 'text
33 (make-raise-markup -0.5
35 ((-5) (make-simple-markup "m"))
36 ((-3) (make-simple-markup "c "))
37 ((-2) (make-smaller-markup (make-bold-markup "2")))
38 (else (make-simple-markup "bla"))
42 \context Voice \relative c' {
44 \set autoBeaming = ##f
48 \applyOutput #'Voice #mc-squared
53 % ****************************************************************
55 % ****************************************************************