blob: 7005946043b7c65d236a4dbe4e8a9f4ce56a4a79 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
%% DO NOT EDIT this file manually; it is automatically
%% generated from LSR http://lsr.dsi.unimi.it
%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
%% and then run scripts/auxiliar/makelsr.py
%%
%% This file is in the public domain.
\version "2.16.0"
\header {
= "really-cool, scheme-language, tweaks-and-overrides"
= "
The @code{\\applyOutput} command allows the tuning of any layout
object, in any context. It requires a Scheme function with three
arguments.
"
= "Changing properties for individual grobs"
} % begin verbatim
#(define (mc-squared grob grob-origin context)
(let ((sp (ly:grob-property grob 'staff-position)))
(if (grob::has-interface grob 'note-head-interface)
(begin
(ly:grob-set-property! grob 'stencil
(grob-interpret-markup grob
(make-lower-markup 0.5
(case sp
((-5) "m")
((-3) "c ")
((-2) (make-smaller-markup (make-bold-markup "2")))
(else "bla")))))))))
\relative c' {
<d f g b>2
\applyOutput #'Voice #mc-squared
<d f g b>2
}
|