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