]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/dynamics-text-spanner-postfix.ly
Run scripts/auxiliar/update-with-convert-ly.sh
[lilypond.git] / Documentation / snippets / dynamics-text-spanner-postfix.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
5 %%
6 %% This file is in the public domain.
7 \version "2.16.0"
8
9 \header {
10   lsrtags = "expressive-marks, tweaks-and-overrides"
11
12   texidoc = "
13 Custom text spanners can be defined and used with hairpin and text
14 crescendos.  @code{\\<} and @code{\\>} produce hairpins by default,
15 @code{\\cresc} etc. produce text spanners by default.
16
17 "
18   doctitle = "Dynamics text spanner postfix"
19 } % begin verbatim
20
21 % Some sample text dynamic spanners, to be used as postfix operators
22 crpoco =
23 #(make-music 'CrescendoEvent
24              'span-direction START
25              'span-type 'text
26              'span-text "cresc. poco a poco")
27
28 \relative c' {
29   c4\cresc d4 e4 f4 |
30   g4 a4\! b4\crpoco c4 |
31   c4 d4 e4 f4 |
32   g4 a4\! b4\< c4 |
33   g4\dim a4 b4\decresc c4\!
34 }