]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/changing-text-and-spanner-styles-for-text-dynamics.ly
Rerun scripts/auxiliar/update-with-convert-ly.sh
[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.dsi.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.17.6"
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
27 \relative c'' {
28   \set crescendoText = \markup { \italic { cresc. poco } }
29   \set crescendoSpanner = #'text
30   \override DynamicTextSpanner.style = #'dotted-line
31   a2\< a
32   a2 a
33   a2 a
34   a2 a\mf
35 }