]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/volta-broken-left-edge.ly
Fix some bugs in the dynamic engraver and PostScript backend
[lilypond.git] / input / regression / volta-broken-left-edge.ly
1 \version "2.7.39"
2
3 \header {
4   texidoc ="Broken volta spanners behave correctly at their left edge in all cases."
5
6 }
7
8 \layout { ragged-right =##t }
9
10 %{
11
12
13 I recently discovered that although the following patch seemed to fix
14 the original complaint that it causes other problems (the following
15 tests were done in 1.3.116.
16
17 I have attached a file which has several break-volta interactions.
18
19 With the test file and unmodified 1.3.116 I see the following:
20
21 Bar 3 - 1st volta spanner centered on first note - prefer it to start
22 closer to key signature (can live with this)
23 Bar 6 - 1st volta continuation - perfect
24 Bar 9 - 2nd volta spanner starts on left edge of key signature - prefer
25 it to start right of key signature
26 Bar 12  1st volta starts between first two slurred notes in measure -
27 this is not acceptable
28 Bar 17  like above with hairpin.
29 Bar 23  like above (I had expected this to be OK)
30 Bar 20  2nd volta continuation perfect
31
32 With the test file and 1.3.116 modified as below I see the following:
33
34 Bar 3   Perfect
35 Bar 6   1st volta continuation starts with staff - oops
36 Bar 9   2nd volta starts on papers left margin - OOPS!
37 Bar 12  Perfect
38 Bar 17  Perfect
39 Bar 20  2nd volta continuation starts with staff - oops
40 Bar 23  Perfect
41
42 %}
43
44 voiceB =  {
45   \clef bass
46   \set Staff.instrument = "Bass"
47   \set Staff.instr = "B"
48   \key f \minor 
49   \time 4/4  
50   f1
51   \repeat  volta 2
52   {
53     f1    \break
54   }
55   \alternative
56   {
57     {   
58       f1 f g \break   
59       f e d  \break   
60     }
61     {   
62       f1      | 
63     }
64   }
65 }
66 voiceC =  {
67   \repeat volta 2
68   {
69     f f 
70     \break
71   }
72   \alternative
73   {
74     f
75     { f f }
76   }
77 }
78
79 voiceD =  {
80   \repeat volta 2
81   {
82     f f 
83     \break
84   }
85   \alternative
86   {
87     {   f
88       }
89     {   f f \break f 
90       }
91   }
92 }
93 voiceE =  {
94   \repeat volta 2
95   {
96     f f\break
97   }
98   \alternative
99   {
100     {   
101       f
102
103     }
104     {   
105       f f 
106     }
107   }
108 }
109
110 <<
111
112
113   \new Staff
114   {
115     \voiceB 
116     \voiceC
117     \break
118     \voiceD
119     \voiceE
120   }
121
122 >>
123
124
125