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