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