1 % Do not edit this file; it is automatically
2 % generated from Documentation/snippets/new
3 % This file is in the public domain.
4 %% Note: this file works from version 2.13.4
8 lsrtags
= "expressive-marks, tweaks-and-overrides"
9 texidoc
= "The \cresc, \dim and \decresc spanners can now be redefined as
10 postfix operators and produce one text spanner. Defining custom spanners is
11 also easy. Hairpin and text crescendi can be easily mixed. \< and \> produce
12 hairpins by default, \cresc etc. produce text spanners by default.
14 doctitle
= "Dynamics text spanner postfix"
18 % Some sample text dynamic spanners, to be used as postfix operators
20 #(make-music
'CrescendoEvent
23 'span-text
"cresc. poco a poco")
24 % Redefine the existing \cresc, \dim and \decresc commands to use postfix syntax
26 #(make-music
'CrescendoEvent
31 #(make-music
'DecrescendoEvent
36 #(make-music
'DecrescendoEvent
39 'span-text
"decresc.")
43 g4 a4\! b4\crpoco c4 |
46 g4\dim a4 b4\decresc c4\!