]> git.donarmstrong.com Git - lilypond.git/commitdiff
New snippet from Patrick
authorValentin Villenave <valentin@villenave.net>
Tue, 3 Jun 2008 16:58:48 +0000 (18:58 +0200)
committerValentin Villenave <valentin@villenave.net>
Tue, 3 Jun 2008 16:58:48 +0000 (18:58 +0200)
input/new/changing-text-and-spanner-styles-for-text-dynamics.ly [new file with mode: 0644]

diff --git a/input/new/changing-text-and-spanner-styles-for-text-dynamics.ly b/input/new/changing-text-and-spanner-styles-for-text-dynamics.ly
new file mode 100644 (file)
index 0000000..e7b91b3
--- /dev/null
@@ -0,0 +1,26 @@
+\version "2.11.47"
+\layout { ragged-right = ##t }
+\header {
+  lsrtags = "rhythms,tweaks-and-overrides"
+  texidoc = "
+The text used for crescendos and decrescendos can be
+changed by modifying the context properties @code{crescendoText}
+and @code{decrescendoText}.  The style of the spanner line can
+be changed by modifying the @code{'style} property of
+@code{DynamicTextSpanner}.  The default value is
+@code{'hairpin}, and other possible values include
+@code{'line}, @code{'dashed-line}, and
+@code{'dotted-line}:
+"
+  doctitle = "Changing text and spanner styles for text dynamics"
+}
+
+\relative c'' {
+ \set crescendoText = \markup { \italic { cresc. poco } }
+ \set crescendoSpanner = #'text
+ \override DynamicTextSpanner #'style = #'dotted-line
+ a2\< a
+ a2 a
+ a2 a
+ a2 a\mf
+}