]> git.donarmstrong.com Git - lilypond.git/blob - input/bugs/hara.ly
release: 1.2.9
[lilypond.git] / input / bugs / hara.ly
1
2
3 The following example shows 2 bugs with HaraKiriStaffContext.
4
5 The first bug is that when the second staff disappears, the instr
6 string in the margin "2" is still printed, and surprisingly appears
7 above staff 1.
8
9 The second and more serious bug is that when staff 2 reappears,
10 the bar separators are no longer being printed for that staff.
11
12 Regards,
13 Roy Rankin
14
15 \header {
16         composer = "Music: Trad.";
17         crossRefNumber = "4";
18         title = "HaraKiri Bugs";
19 }
20 voice1 = \notes {
21 \property Staff.instrument = "Part1"
22 \property Staff.instr = "1"
23 \property Staff.timeSignatureStyle="C"
24  \time 4/4; \key c;   
25  e''4.    e''8    e''4    r4   |   e''4    d''4   
26  c''2      |
27  e''4    d''4    c''2 (     |
28  e''2    c''2   ~      |
29  ) c''1    \bar "|."; \break       
30  e''4.    e''8    e''4    r4   |   e''4    d''4   
31  c''2      |
32  e''4    d''4    c''2 (     |
33  e''2    c''2   ~      |
34  ) c''1    \bar "|.";       \break
35  e''4.    e''8    e''4    r4   |   e''4    d''4   
36  c''2      |
37  e''4    d''4    c''2 (     |
38  e''2    c''2   ~      |
39  ) c''1    \bar "|."; \break       
40  e''4.    e''8    e''4    r4   |   e''4    d''4   
41  c''2      |
42  e''4    d''4    c''2 (     |
43  e''2    c''2   ~      |
44  ) c''1    \bar "|.";       
45 }
46 voice2 = \notes {
47 \property Staff.instrument = "Part2"
48 \property Staff.instr = "2"
49 \property Staff.timeSignatureStyle="C"
50  \time 4/4; \key c;   
51  e''4.    e''8    e''4    r4   |   e''4    d''4   
52  c''2     |
53  e''4    d''4    c''2 (     |
54  e''2    c''2   ~      |
55  ) c''1    \bar "|.";       
56 s1 * 10
57  e''4.    e''8    e''4    r4   |   e''4    d''4   
58  c''2      |
59  e''4    d''4    c''2 (     |
60  e''2    c''2   ~      |
61  ) c''1    \bar "|.";       
62 }
63 \score{
64         \notes <
65
66         \context Staff="1"
67         {
68             \$voice1
69         }
70         \context Staff="2"
71         {
72             \$voice2
73         }
74
75     >
76         \paper 
77         {
78                 \translator 
79                 {
80                         \HaraKiriStaffContext
81                         \consists  Staff_margin_engraver;
82                 }
83         }
84         \midi {}
85 }
86
87
88