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