Nitpick: ly:spanner-bound grob name slur -> spanner.
[lilypond.git] / input / lsr / broken-crescendo-hairpin.ly
blobb3c5643fe3142da482e0900b64b8ffb3c72a8986
1 %% Do not edit this file; it is auto-generated from input/new
2 %% This file is in the public domain.
3 %% Note: this file works from version 2.12.0
4 \version "2.13.1"
6 \header {
7 texidoces = "
8 Para hacer invisibles partes de un regulador de crescendo, se usa
9 el método de dibujar un rectángulo blanco encima de la parte
10 respectiva del regulador, tapándola. El rectángulo se define como
11 código PostScript dentro de un elemento de marcado de texto.
13 Para realizar un ajuste fino de la posición y el tamaño del
14 elemento de marcado, se puede establecer el número que precede a
15 @code{setgray} en la definición de PostScript a un valor menor que
16 la unidad, haciendo que sea de color gris. Los dos números que
17 están antes de @code{scale} en el código PostScript son los
18 responsables del ancho y la altura del rectángulo, y los dos
19 números que están antes de @code{translate} cambian las
20 coordenadas X e Y de origen del rectángulo.
22 Asegúrse de poner el regulador en una capa más baja que el
23 elemento de marcado de texto para trazar el rectángulo encima del
24 regulador.
27 doctitlees = "Regulador interrumpido"
29 lsrtags = "expressive-marks"
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.
36 To fine-tune the position and size of the markup, the number
37 preceding @code{setgray} in the postscript definition can be set to a
38 value less than one, making it grey. The two numbers before @code{scale}
39 in the 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.
43 Make sure to put the hairpin in a lower layer than the text markup to
44 draw the rectangle over the hairpin.
46 doctitle = "Broken crescendo hairpin"
47 } % begin verbatim
50 \relative c' {
51 << {
52 \dynamicUp
53 \override DynamicLineSpanner #'staff-padding = #4
54 r2 r16 c'8.\pp r4
58 \override DynamicLineSpanner #'layer = #0
59 des,2\mf\< ~
60 \override TextScript #'layer = #2
61 des16_\markup {
62 \postscript #"
63 1.9 -8 translate
64 5 4 scale
65 1 setgray
66 0 0 moveto
67 0 1 lineto
68 1 1 lineto
69 1 0 lineto
70 0 0 lineto
71 fill"
73 r8. des4 ~ des16->\sff
74 } >>