]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/dynamics-text-spanner-postfix.ly
Docs: run convert-ly for 2.14.0.
[lilypond.git] / input / regression / dynamics-text-spanner-postfix.ly
1 \version "2.14.0"
2
3 \header {
4 texidoc = "The \cresc, \dim and \decresc spanners are now postfix operators
5 and produce one text spanner.  Defining custom spanners is also easy.
6 Hairpin and text crescendi can be easily mixed. \< and \> produce
7 hairpins by default, \cresc etc. produce text spanners by default."
8 }
9
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
14 \relative c' {
15   c4\cresc d4 e4 f4 |
16   g4 a4\! b4\crpoco c4 |
17   c4 d4 e4 f4 |
18   g4 a4\! b4\< c4 |
19   g4\dim a4 b4\decresc c4\!
20 }