]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/changing-text-and-spanner-styles-for-text-dynamics.ly
Merge remote-tracking branch 'origin/master' into translation
[lilypond.git] / Documentation / snippets / changing-text-and-spanner-styles-for-text-dynamics.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.di.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
5 %%
6 %% This file is in the public domain.
7 \version "2.18.0"
8
9 \header {
10   lsrtags = "expressive-marks, tweaks-and-overrides"
11
12   texidoc = "
13 The text used for crescendos and decrescendos can be changed by
14 modifying the context properties @code{crescendoText} and
15 @code{decrescendoText}.
16
17 The style of the spanner line can be changed by modifying the
18 @code{'style} property of @code{DynamicTextSpanner}.  The default value
19 is @code{'dashed-line}, and other possible values include @code{'line},
20 @code{'dotted-line} and @code{'none}.
21
22 "
23   doctitle = "Changing text and spanner styles for text dynamics"
24 } % begin verbatim
25
26 \relative c'' {
27   \set crescendoText = \markup { \italic { cresc. poco } }
28   \set crescendoSpanner = #'text
29   \override DynamicTextSpanner.style = #'dotted-line
30   a2\< a
31   a2 a
32   a2 a
33   a2 a\mf
34 }