X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=input%2Flsr%2Fbroken-crescendo-hairpin.ly;h=b3c5643fe3142da482e0900b64b8ffb3c72a8986;hb=cfc4cbf34569db6a6c8968694f86e36b206a9d05;hp=dba88832427ce7a430bc92a8f11def15580c4d21;hpb=0cd61a3be7ca856b584973217944eea1b9cbedac;p=lilypond.git diff --git a/input/lsr/broken-crescendo-hairpin.ly b/input/lsr/broken-crescendo-hairpin.ly index dba8883242..b3c5643fe3 100644 --- a/input/lsr/broken-crescendo-hairpin.ly +++ b/input/lsr/broken-crescendo-hairpin.ly @@ -1,43 +1,75 @@ %% Do not edit this file; it is auto-generated from input/new %% This file is in the public domain. -\version "2.11.38" +%% Note: this file works from version 2.12.0 +\version "2.13.1" \header { - doctitle = "Broken crescendo hairpin" + texidoces = " +Para hacer invisibles partes de un regulador de crescendo, se usa +el método de dibujar un rectángulo blanco encima de la parte +respectiva del regulador, tapándola. El rectángulo se define como +código PostScript dentro de un elemento de marcado de texto. + +Para realizar un ajuste fino de la posición y el tamaño del +elemento de marcado, se puede establecer el número que precede a +@code{setgray} en la definición de PostScript a un valor menor que +la unidad, haciendo que sea de color gris. Los dos números que +están antes de @code{scale} en el código PostScript son los +responsables del ancho y la altura del rectángulo, y los dos +números que están antes de @code{translate} cambian las +coordenadas X e Y de origen del rectángulo. + +Asegúrse de poner el regulador en una capa más baja que el +elemento de marcado de texto para trazar el rectángulo encima del +regulador. + +" + doctitlees = "Regulador interrumpido" + lsrtags = "expressive-marks" texidoc = " In order to make parts of a crescendo hairpin invisible, the following method is used: A white rectangle is drawn on top of the respective -part of the crescendo hairpin, making it invisible. The rectangle is +part of the crescendo hairpin, making it invisible. The rectangle is defined as postscript code within a text markup. To fine-tune the position and size of the markup, the number preceding @code{setgray} in the postscript definition can be set to a -value <1 making it grey. The two numbers before @code{scale} in the -postscript code are responsible for the width and height of the +value less than one, making it grey. The two numbers before @code{scale} +in the postscript code are responsible for the width and height of the rectangle, the two numbers before @code{translate} change the x- and -y-origin of the rectangle. +y-origin of the rectangle. Make sure to put the hairpin in a lower layer than the text markup to -actually draw the rectangle above the hairpin. -" } % begin verbatim - -\score { - \relative c' { - << { - \dynamicUp - \override DynamicLineSpanner #'staff-padding = #4 - r2 r16 c'8.\pp r4 - } \\ { - \override DynamicLineSpanner #'layer = #0 - des,2\mf\< ~ - \override TextScript #'layer = #2 - des16_\markup { - \postscript #"1.9 -8 translate 5 4 scale 1 setgray 0 0 moveto 0 1 - lineto 1 1 lineto 1 0 lineto 0 0 lineto fill" - } - r8. des4 ~ des16->\sff - } >> +draw the rectangle over the hairpin. +" + doctitle = "Broken crescendo hairpin" +} % begin verbatim + + +\relative c' { + << { + \dynamicUp + \override DynamicLineSpanner #'staff-padding = #4 + r2 r16 c'8.\pp r4 } - \layout { ragged-right = ##t } + \\ + { + \override DynamicLineSpanner #'layer = #0 + des,2\mf\< ~ + \override TextScript #'layer = #2 + des16_\markup { + \postscript #" + 1.9 -8 translate + 5 4 scale + 1 setgray + 0 0 moveto + 0 1 lineto + 1 1 lineto + 1 0 lineto + 0 0 lineto + fill" + } + r8. des4 ~ des16->\sff + } >> }