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