lilypond-1.3.118
[lilypond.git] / input / test / hara-kiri-switch.ly
blob080882b201448d02eedc8e8a90f1883c732d1c7a
1 \version "1.3.117";
3 voiceOne = \notes \relative c'' {
4 a1 a a
5 a2 a2
6 a2 a8 a a a
9 staffOne = \context Staff = one <
10 \notes \context Voice=one <
11 \voiceOne
15 voiceTwo = \notes \relative c' {
16 % we must have a Thread context before we can switch staffs
17 % in this case, the notes before the switching will do that
18 % implicitely
19 \context Thread
21 R1*3
22 c2 c2
23 \translator Staff=one
24 \translator Voice=one
26 c8 c c c
29 staffTwo = \context Staff = two <
30 % notes must go to Staff context: we want to switch Staff translators
31 %\notes \context Voice=one <
32 \voiceTwo
36 grandstaff = \context GrandStaff = one <
37 \staffOne
38 \staffTwo
41 \score{
42 \grandstaff
43 \paper{
44 linewidth=80.0\mm;
46 \translator { \VoiceContext noAutoBeaming = ##t; }
47 \translator { \HaraKiriStaffContext }
48 \translator { \OrchestralScoreContext skipBars = 1; }