summaryrefslogtreecommitdiff
path: root/Documentation/snippets/dynamics-text-spanner-postfix.ly
blob: b7f84a13928beab5ac38443a794bfeee29984bf4 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
%% DO NOT EDIT this file manually; it is automatically
%% generated from LSR http://lsr.di.unimi.it
%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
%% and then run scripts/auxiliar/makelsr.py
%%
%% This file is in the public domain.
\version "2.18.0"

\header {
  lsrtags = "expressive-marks, tweaks-and-overrides"

  texidoc = "
Custom text spanners can be defined and used with hairpin and text
crescendos.  @code{\\<} and @code{\\>} produce hairpins by default,
@code{\\cresc} etc. produce text spanners by default.

"
  doctitle = "Dynamics text spanner postfix"
} % begin verbatim

% Some sample text dynamic spanners, to be used as postfix operators
crpoco =
#(make-music 'CrescendoEvent
             'span-direction START
             'span-type 'text
             'span-text "cresc. poco a poco")

\relative c' {
  c4\cresc d4 e4 f4 |
  g4 a4\! b4\crpoco c4 |
  c4 d4 e4 f4 |
  g4 a4\! b4\< c4 |
  g4\dim a4 b4\decresc c4\!
}