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