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