]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/broken-crescendo-hairpin.ly
Docs: run convert-ly for 2.14.0.
[lilypond.git] / Documentation / snippets / broken-crescendo-hairpin.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.0"
8
9 \header {
10   lsrtags = "expressive-marks"
11
12 %% Translation of GIT committish: 59caa3adce63114ca7972d18f95d4aadc528ec3d
13   texidoces = "
14 Para hacer invisibles partes de un regulador de crescendo, se usa
15 el método de dibujar un rectángulo blanco encima de la parte
16 respectiva del regulador, tapándola.  El rectángulo se define como
17 código PostScript dentro de un elemento de marcado de texto.
18
19 Para realizar un ajuste fino de la posición y el tamaño del
20 elemento de marcado, se puede establecer el número que precede a
21 @code{setgray} en la definición de PostScript a un valor menor que
22 la unidad, haciendo que sea de color gris.  Los dos números que
23 están antes de @code{scale} en el código PostScript son los
24 responsables del ancho y la altura del rectángulo, y los dos
25 números que están antes de @code{translate} cambian las
26 coordenadas X e Y de origen del rectángulo.
27
28 Asegúrse de poner el regulador en una capa más baja que el
29 elemento de marcado de texto para trazar el rectángulo encima del
30 regulador.
31
32 "
33   doctitlees = "Regulador interrumpido"
34
35   texidoc = "
36 In order to make parts of a crescendo hairpin invisible, the following
37 method is used: A white rectangle is drawn on top of the respective
38 part of the crescendo hairpin, making it invisible.  The rectangle is
39 defined as postscript code within a text markup.
40
41 To fine-tune the position and size of the markup, the number preceding
42 @code{setgray} in the postscript definition can be set to a value less
43 than one, making it grey.  The two numbers before @code{scale} in the
44 postscript code are responsible for the width and height of the
45 rectangle, the two numbers before @code{translate} change the x- and
46 y-origin of the rectangle.
47
48
49 Make sure to put the hairpin in a lower layer than the text markup to
50 draw the rectangle over the hairpin.
51
52 "
53   doctitle = "Broken Crescendo Hairpin"
54 } % begin verbatim
55
56 \relative c' {
57   <<
58     {
59       \dynamicUp
60       \override DynamicLineSpanner #'staff-padding = #4
61       r2 r16 c'8.\pp r4
62     }
63     \\
64     {
65       \override DynamicLineSpanner #'layer = #0
66       des,2\mf\< ~
67       \override TextScript #'layer = #2
68       des16_\markup {
69         \postscript #"
70           1.9 -8 translate
71           5 4 scale
72           1 setgray
73           0 0 moveto
74           0 1 lineto
75           1 1 lineto
76           1 0 lineto
77           0 0 lineto
78           fill"
79       }
80       r8. des4 ~ des16->\sff
81     }
82   >>
83 }
84