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