]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/broken-crescendo-hairpin.ly
LSR updates from tarball
[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.2"
8
9 \header {
10   lsrtags = "expressive-marks, contemporary-notation, symbols-and-glyphs"
11
12 %% Translation of GIT committish: b482c3e5b56c3841a88d957e0ca12964bd3e64fa
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 %% Translation of GIT committish: f5cfaf8ef4ac347702f554af0944ef0d8396e73a
36   texidocfr = "
37 Une portion d'un soufflet de crescendo peut être rendue invisible.
38 Il suffit pour cela de dessiner un rectangle par dessus cette partie, ce
39 qui aura pour effet de la rendre invisible.  Le rectangle est défini par
40 un @emph{markup} contenant du code PostScript.
41
42 La taille et le positionnement de ce @emph{markup} sont ajustables grâce
43 à certaiins composants du code PostScript@tie{}: le nombre précédant
44 @code{setgray} donnera du gris s'il est inérieur à@tie{}1@tie{}; les
45 deux nombres précédant @code{scale} définissent la largeur et la hauteur
46 du rectangle@tie{}; les deux nombres précédant @code{translate}
47 modifient le point d'ancrage (en abscisse et en ordonnée) du rectangle.
48
49 Le soufflet doit se trouver à un niveau inférieur à celui du @emph{markup}
50 afin que le dessin du rectangle puisse effectivement le recouvrir.
51
52 "
53   doctitlefr = "Soufflet de crescendo partiellement interrompu"
54
55   texidoc = "
56 In order to make parts of a crescendo hairpin invisible, the following
57 method is used: A white rectangle is drawn on top of the respective
58 part of the crescendo hairpin, making it invisible.  The rectangle is
59 defined as postscript code within a text markup.
60
61 To fine-tune the position and size of the markup, the number preceding
62 @code{setgray} in the postscript definition can be set to a value less
63 than one, making it grey.  The two numbers before @code{scale} in the
64 postscript code are responsible for the width and height of the
65 rectangle, the two numbers before @code{translate} change the x- and
66 y-origin of the rectangle.
67
68
69 Make sure to put the hairpin in a lower layer than the text markup to
70 draw the rectangle over the hairpin.
71
72 "
73   doctitle = "Broken Crescendo Hairpin"
74 } % begin verbatim
75
76
77 \relative c' {
78   <<
79     {
80       \dynamicUp
81       \override DynamicLineSpanner #'staff-padding = #4
82       r2 r16 c'8.\pp r4
83     }
84     \\
85     {
86       \override DynamicLineSpanner #'layer = #0
87       des,2\mf\< ~
88       \override TextScript #'layer = #2
89       des16_\markup {
90         \postscript #"
91           1.9 -8 translate
92           5 4 scale
93           1 setgray
94           0 0 moveto
95           0 1 lineto
96           1 1 lineto
97           1 0 lineto
98           0 0 lineto
99           fill"
100       }
101       r8. des4 ~ des16->\sff
102     }
103   >>
104 }
105