]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/broken-crescendo-hairpin.ly
Merge branch 'master' of /home/lilycvs/git/lily/
[lilypond.git] / input / lsr / broken-crescendo-hairpin.ly
1 %% Do not edit this file; it is auto-generated from input/new
2 %% This file is in the public domain.
3 \version "2.11.38"\r
4 \r
5 \header {\r
6   doctitle = "Broken crescendo hairpin"\r
7   lsrtags = "expressive-marks"\r
8   texidoc = "\r
9 In order to make parts of a crescendo hairpin invisible, the following\r
10 method is used: A white rectangle is drawn on top of the respective\r
11 part of the crescendo hairpin, making it invisible. The rectangle is\r
12 defined as postscript code within a text markup.\r
13 \r
14 To fine-tune the position and size of the markup, the number\r
15 preceding @code{setgray} in the postscript definition can be set to a\r
16 value <1 making it grey. The two numbers before @code{scale} in the\r
17 postscript code are responsible for the width and height of the\r
18 rectangle, the two numbers before @code{translate} change the x- and\r
19 y-origin of the rectangle. \r
20 \r
21 Make sure to put the hairpin in a lower layer than the text markup to\r
22 actually draw the rectangle above the hairpin. \r
23 " }\r
24 \r
25 \score {\r
26   \relative c' {\r
27     << {\r
28       \dynamicUp\r
29       \override DynamicLineSpanner #'staff-padding = #4\r
30       r2 r16 c'8.\pp r4\r
31     } \\ {\r
32       \override DynamicLineSpanner #'layer = #0\r
33       des,2\mf\< ~\r
34       \override TextScript #'layer = #2\r
35       des16_\markup {\r
36         \postscript #"1.9 -8 translate 5 4 scale 1 setgray 0 0 moveto 0 1\r
37         lineto 1 1 lineto 1 0 lineto 0 0 lineto fill"\r
38       }\r
39       r8. des4 ~ des16->\sff\r
40     } >>\r
41   }\r
42   \layout { ragged-right = ##t }\r
43 }\r