]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/new/dynamics-text-spanner-postfix.ly
fff0e7170a6738a17525653ab05e20b170422e2b
[lilypond.git] / Documentation / snippets / new / dynamics-text-spanner-postfix.ly
1 \version "2.13.36"
2
3 \header {
4   lsrtags = "expressive-marks, tweaks-and-overrides"
5   texidoc = "Custom text spanners can be defined and used with hairpin
6   and text crescendos.  @code{\<} and @code{\>} produce hairpins by
7   default, @code{\cresc} etc. produce text spanners by default."
8   doctitle = "Dynamics text spanner postfix"
9 }
10
11 % Some sample text dynamic spanners, to be used as postfix operators
12 crpoco =
13 #(make-music 'CrescendoEvent
14              'span-direction START
15              'span-type 'text
16              'span-text "cresc. poco a poco")
17
18 \relative c' {
19   c4\cresc d4 e4 f4 |
20   g4 a4\! b4\crpoco c4 |
21   c4 d4 e4 f4 |
22   g4 a4\! b4\< c4 |
23   g4\dim a4 b4\decresc c4\!
24 }
25