X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Fbroken-crescendo-hairpin.ly;h=82725533312f59d4a3e312ac4613a1f73a86df42;hb=750b714488c5af6eae22d07163bba8b554734ac6;hp=ee3506f1988bf3962fd56f7cfd4526f8eb84a4ea;hpb=790da92c9cd1d58b39843ace365ed81c81fa3ec4;p=lilypond.git diff --git a/Documentation/snippets/broken-crescendo-hairpin.ly b/Documentation/snippets/broken-crescendo-hairpin.ly index ee3506f198..8272553331 100644 --- a/Documentation/snippets/broken-crescendo-hairpin.ly +++ b/Documentation/snippets/broken-crescendo-hairpin.ly @@ -1,36 +1,13 @@ %% DO NOT EDIT this file manually; it is automatically -%% generated from LSR http://lsr.dsi.unimi.it +%% generated from LSR http://lsr.di.unimi.it %% Make any changes in LSR itself, or in Documentation/snippets/new/ , %% and then run scripts/auxiliar/makelsr.py %% %% This file is in the public domain. -\version "2.14.0" +\version "2.18.0" \header { - lsrtags = "expressive-marks" - -%% Translation of GIT committish: 70f5f30161f7b804a681cd080274bfcdc9f4fe8c - 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 = "contemporary-notation, expressive-marks, symbols-and-glyphs" texidoc = " In order to make parts of a crescendo hairpin invisible, the following @@ -38,16 +15,13 @@ method is used: A white rectangle is drawn on top of the respective 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 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. - +The markup command @code{with-dimensions} tells LilyPond to consider +only the bottom edge of the rectangle when spacing it against the +hairpin. The property @code{staff-padding} prevents the rectangle from +fitting between the hairpin and staff. -Make sure to put the hairpin in a lower layer than the text markup to -draw the rectangle over the hairpin. +Make sure the hairpin is in a lower layer than the text markup to draw +the rectangle over the hairpin. " doctitle = "Broken Crescendo Hairpin" @@ -57,28 +31,19 @@ draw the rectangle over the hairpin. << { \dynamicUp - \override DynamicLineSpanner #'staff-padding = #4 r2 r16 c'8.\pp r4 } \\ { - \override DynamicLineSpanner #'layer = #0 + \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 + \override TextScript.layer = #2 + \once\override TextScript.staff-padding = #6 + \once\override TextScript.vertical-skylines = #'() + des16_\markup \with-dimensions #'(2 . 7) #'(0 . 0) + \with-color #white + \filled-box #'(2 . 7) #'(0 . 2) #0 + r8. des4 ~ des16->\sff r8. } >> } -