]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/volta-broken-left-edge.ly
6515426ad69025da7504956aeb022556d6aab747
[lilypond.git] / input / regression / volta-broken-left-edge.ly
1 \version "1.3.146"
2
3 \header {
4 texidoc ="Broken volta spanners behave correctly at 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      \property Staff.instrument = "Bass"
45      \property Staff.instr = "B"
46      \key f \minor 
47      \time 4/4  
48     f,2 (   ) f,8    r8   f8    e8    
49     \repeat  volta 2
50     {
51          d8.    d16    e8.    f16    f8    c8    c16    c8.    \break
52     }
53     \alternative
54     {
55         {       
56             f,2 (   ) f,8    r8   f8    e8 
57             f,2 (   ) f,8    r8   f8    e8 
58             g1 \break   
59             f,2 (   ) f,8    r8   f8    e8 
60             f,2 (   ) f,8    r8   f8    e8 
61             g1 \break   
62         }
63         {   
64             f,2.    r8   c16    c16      | 
65         }
66     }
67 }
68 voiceC = \notes {
69     \repeat volta 2
70     {
71      bes8    bes8    c'8    c'8    a4    r8   g16    f16      |
72      d'8.    c'16    c'8.    d'16    c'8    c'8    f16    g8.    |
73      \break
74     }
75     \alternative
76     {
77         {       a2 (   ) a8    r8   a8    bes8    }
78         {       a2.    r8   g16    f16      |
79         d'8.   c'16   c'8.   d'16   c'8   c'8   c'16    c'8.    |
80         }
81     }
82 }
83 voiceD = \notes {
84     \repeat volta 2
85     {
86      bes8    bes8    c'8    c'8    a4    r8   g16    f16      |
87      d'8.    c'16    c'8.    d'16    c'8    c'8    f16    g8.    |
88      \break
89     }
90     \alternative
91     {
92         {       a2 \> a8    r8   a8  \!  bes8    
93         }
94         {       a2.    r8   g16    f16      |
95             d'8.   c'16   c'8.   d'16   c'8   c'8   c'16    c'8.    | \break
96             d'8.   c'16   c'8.   d'16   c'8   c'8   c'16    c'8.    |
97         }
98     }
99 }
100 voiceE = \notes {
101     \repeat volta 2
102     {
103      bes8    bes8    c'8    c'8    a4    r8   g16    f16      |
104      d'8.    c'16    c'8.    d'16    c'8    c'8    f16    g8.    | \break
105     }
106     \alternative
107     {
108         {       
109             a2  a8    r8   a8    bes8    
110
111         }
112         {       
113             a2.    r8   g16    f16      |
114             d'8.   c'16   c'8.   d'16   c'8   c'8   c'16    c'8.    | 
115         }
116     }
117 }
118 \score{
119         \notes <
120
121
122         \context Staff="4"
123         {
124             \voiceB 
125             \voiceC
126             \break
127             \voiceD
128             \voiceE
129         }
130
131     >
132         \paper {
133             font_normal = 12.
134             \translator {
135                  \StaffContext 
136                  \consists Instrument_name_engraver
137             }
138         }
139 }