]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/creating-text-spanners.ly
Doc-fr: updates texidocs
[lilypond.git] / Documentation / snippets / creating-text-spanners.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.17.6"
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
23 \paper { ragged-right = ##f }
24
25 \relative c'' {
26   \override TextSpanner.bound-details.left.text = #"bla"
27   \override TextSpanner.bound-details.right.text = #"blu"
28   a4 \startTextSpan
29   b4 c
30   a4 \stopTextSpan
31
32   \override TextSpanner.style = #'line
33   \once \override TextSpanner.bound-details.left.stencil-align-dir-y = #CENTER
34   a4 \startTextSpan
35   b4 c
36   a4 \stopTextSpan
37
38   \override TextSpanner.style = #'dashed-line
39   \override TextSpanner.bound-details.left.text =
40     \markup { \draw-line #'(0 . 1) }
41   \override TextSpanner.bound-details.right.text =
42     \markup { \draw-line #'(0 . -2) }
43   \once \override TextSpanner.bound-details.right.padding = #-2
44
45   a4 \startTextSpan
46   b4 c
47   a4 \stopTextSpan
48
49   \set Staff.middleCPosition = #-13
50   \override TextSpanner.dash-period = #10
51   \override TextSpanner.dash-fraction = #0.5
52   \override TextSpanner.thickness = #10
53   a4 \startTextSpan
54   b4 c
55   a4 \stopTextSpan
56 }