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