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