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