]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/new/dynamics-text-spanner-postfix.ly
Docs: run convert-ly for 2.14.0.
[lilypond.git] / Documentation / snippets / new / dynamics-text-spanner-postfix.ly
index 8f6a852833bc1724fcd8abd5147850512d3c15cb..5f1187ec188434cd43e56fe12de6e2076e94333d 100644 (file)
@@ -1,25 +1,19 @@
-\version "2.13.4"
+\version "2.14.0"
 
 \header {
   lsrtags = "expressive-marks, tweaks-and-overrides"
-  texidoc = "The \cresc, \dim and \decresc spanners can now be redefined as
-postfix operators and produce one text spanner.  Defining custom spanners is
-also easy.  Hairpin and text crescendi can be easily mixed. \< and \> produce
-hairpins by default, \cresc etc. produce text spanners by default.
-"
+  texidoc = "Custom text spanners can be defined and used with hairpin
+  and text crescendos.  @code{\<} and @code{\>} produce hairpins by
+  default, @code{\cresc} etc. produce text spanners by default."
   doctitle = "Dynamics text spanner postfix"
 }
 
 % Some sample text dynamic spanners, to be used as postfix operators
-crpoco = #(make-music 'CrescendoEvent 'span-direction START
-                      'span-type 'text 'span-text "cresc. poco a poco")
-% Redefine the existing \cresc, \dim and \decresc commands to use postfix syntax
-cresc = #(make-music 'CrescendoEvent 'span-direction START
-                     'span-type 'text 'span-text "cresc.")
-dim = #(make-music 'DecrescendoEvent 'span-direction START
-                   'span-type 'text 'span-text "dim.")
-decresc = #(make-music 'DecrescendoEvent 'span-direction START
-                       'span-type 'text 'span-text "decresc.")
+crpoco =
+#(make-music 'CrescendoEvent
+             'span-direction START
+             'span-type 'text
+             'span-text "cresc. poco a poco")
 
 \relative c' {
   c4\cresc d4 e4 f4 |
@@ -28,3 +22,4 @@ decresc = #(make-music 'DecrescendoEvent 'span-direction START
   g4 a4\! b4\< c4 |
   g4\dim a4 b4\decresc c4\!
 }
+