]> git.donarmstrong.com Git - lilypond.git/blob - input/new/changing-text-and-spanner-styles-for-text-dynamics.ly
2e905d94fc3ddf1199054e63c19389626c31e9df
[lilypond.git] / input / new / changing-text-and-spanner-styles-for-text-dynamics.ly
1 \version "2.11.47"
2 \header {
3   lsrtags = "rhythms,tweaks-and-overrides"
4   texidoc = "
5 The text used for crescendos and decrescendos can be
6 changed by modifying the context properties @code{crescendoText}
7 and @code{decrescendoText}.  The style of the spanner line can
8 be changed by modifying the @code{'style} property of
9 @code{DynamicTextSpanner}.  The default value is
10 @code{'hairpin}, and other possible values include
11 @code{'line}, @code{'dashed-line}, and
12 @code{'dotted-line}:
13 "
14   doctitle = "Changing text and spanner styles for text dynamics"
15 }
16
17 \relative c'' {
18   \set crescendoText = \markup { \italic { cresc. poco } }
19   \set crescendoSpanner = #'text
20   \override DynamicTextSpanner #'style = #'dotted-line
21   a2\< a
22   a2 a
23   a2 a
24   a2 a\mf
25 }