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