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