4 lsrtags = "expressive-marks, tweaks-and-overrides"
5 texidoc = "The \cresc, \dim and \decresc spanners can now be redefined as
6 postfix operators and produce one text spanner. Defining custom spanners is
7 also easy. Hairpin and text crescendi can be easily mixed. \< and \> produce
8 hairpins by default, \cresc etc. produce text spanners by default.
10 doctitle = "Dynamics text spanner postfix"
13 % Some sample text dynamic spanners, to be used as postfix operators
14 crpoco = #(make-music 'CrescendoEvent 'span-direction START
15 'span-type 'text 'span-text "cresc. poco a poco")
16 % Redefine the existing \cresc, \dim and \decresc commands to use postfix syntax
17 cresc = #(make-music 'CrescendoEvent 'span-direction START
18 'span-type 'text 'span-text "cresc.")
19 dim = #(make-music 'DecrescendoEvent 'span-direction START
20 'span-type 'text 'span-text "dim.")
21 decresc = #(make-music 'DecrescendoEvent 'span-direction START
22 'span-type 'text 'span-text "decresc.")
26 g4 a4\! b4\crpoco c4 |
29 g4\dim a4 b4\decresc c4\!