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