]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/creating-text-spanners.ly
Merge master into nested-bookparts
[lilypond.git] / input / lsr / creating-text-spanners.ly
1 %% Do not edit this file; it is auto-generated from input/new
2 %% This file is in the public domain.
3 \version "2.11.62"
4
5 \header {
6   texidoces = "
7 Las instrucciones @code{\\startTextSpan} y @code{\\stopTextSpan}
8 permiten la creación de elementos de extensión textuales tan
9 fácilmente como indicaciones de pedal u
10 octavaciones. Sobreescribimos ciertas propiedades del objeto
11 @code{TextSpanner} para modificar su salida.
12
13 "
14   doctitlees = "Crear elementos de extensión textuales"
15
16   lsrtags = "expressive-marks, text, tweaks-and-overrides"
17   texidoc = "The @code{\\startTextSpan} and @code{\\stopTextSpan}
18 commands allow the creation of text spanners as easily as pedal
19 indications or octavations.  Override some properties of the
20 @code{TextSpanner} object to modify its output."
21
22   doctitle = "Creating text spanners"
23 } % begin verbatim
24
25 \paper { ragged-right = ##f }
26
27 \relative c'' {
28   \override TextSpanner #'bound-details #'left #'text = #"bla"
29   \override TextSpanner #'bound-details #'right #'text = #"blu"
30   a4 \startTextSpan
31   b4 c
32   a4 \stopTextSpan
33   
34   \override TextSpanner #'style = #'line
35   \once \override TextSpanner #'bound-details
36     #'left #'stencil-align-dir-y = #CENTER
37   a4 \startTextSpan
38   b4 c
39   a4 \stopTextSpan
40   
41   \override TextSpanner #'style = #'dashed-line
42   \override TextSpanner #'bound-details #'left #'text =
43     \markup { \draw-line #'(0 . 1) }
44   \override TextSpanner #'bound-details #'right #'text =
45     \markup { \draw-line #'(0 . -2) }
46   \once \override TextSpanner #'bound-details #'right #'padding = #-2
47
48   a4 \startTextSpan
49   b4 c
50   a4 \stopTextSpan
51   
52   \set Staff.middleCPosition = #-13
53   \override TextSpanner #'dash-period = #10
54   \override TextSpanner #'dash-fraction = #0.5
55   \override TextSpanner #'thickness = #10
56   a4 \startTextSpan
57   b4 c
58   a4 \stopTextSpan
59 }