]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/creating-text-spanners.ly
Merge remote-tracking branch 'origin/master' into translation
[lilypond.git] / Documentation / snippets / creating-text-spanners.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.di.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.18.0"
8
9 \header {
10   lsrtags = "expressive-marks, text, tweaks-and-overrides"
11
12   texidoc = "
13 The @code{\\startTextSpan} and @code{\\stopTextSpan} commands allow the
14 creation of text spanners as easily as pedal indications or
15 octavations. Override some properties of the @code{TextSpanner} object
16 to modify its output.
17
18 "
19   doctitle = "Creating text spanners"
20 } % begin verbatim
21
22 \paper { ragged-right = ##f }
23
24 \relative c'' {
25   \override TextSpanner.bound-details.left.text = #"bla"
26   \override TextSpanner.bound-details.right.text = #"blu"
27   a4 \startTextSpan
28   b4 c
29   a4 \stopTextSpan
30
31   \override TextSpanner.style = #'line
32   \once \override TextSpanner.bound-details.left.stencil-align-dir-y = #CENTER
33   a4 \startTextSpan
34   b4 c
35   a4 \stopTextSpan
36
37   \override TextSpanner.style = #'dashed-line
38   \override TextSpanner.bound-details.left.text =
39     \markup { \draw-line #'(0 . 1) }
40   \override TextSpanner.bound-details.right.text =
41     \markup { \draw-line #'(0 . -2) }
42   \once \override TextSpanner.bound-details.right.padding = #-2
43
44   a4 \startTextSpan
45   b4 c
46   a4 \stopTextSpan
47
48   \set Staff.middleCPosition = #-13
49   \override TextSpanner.dash-period = #10
50   \override TextSpanner.dash-fraction = #0.5
51   \override TextSpanner.thickness = #10
52   a4 \startTextSpan
53   b4 c
54   a4 \stopTextSpan
55 }