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