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