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