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