3 % TODO: this example has a ton of text for very little output.
4 % Is it all needed? -gp
5 % should this go to regression or be delete'd? -gp
6 \header{ texidoc="@cindex Part Combine Moments
7 When you combine two voices with the same notes, you should
12 \context PianoStaff <<
13 \context StaffCombineStaff=one \skip 1*2
14 \context StaffCombineStaff=two \skip 1*2
15 \context StaffCombineStaff=one \partcombine StaffCombineStaff
16 \context StaffCombineVoice=one \notes\relative c''
21 \context StaffCombineVoice=two \notes\relative c''
32 \translator{ \RemoveEmptyStaffContext }
34 % The Voice combine hierarchy
38 \name "VoiceCombineThread"
39 \consists "Rest_engraver"
43 \name "VoiceCombineVoice"
46 \remove "Rest_engraver"
47 \accepts "VoiceCombineThread"
50 \RemoveEmptyStaffContext
51 \consists "Mark_engraver"
52 \name "VoiceCombineStaff"
53 \accepts "VoiceCombineVoice"
57 % The Staff combine hierarchy
61 \name "StaffCombineThread"
65 \name "StaffCombineVoice"
66 \accepts "StaffCombineThread"
67 \consists "Thread_devnull_engraver"
70 \RemoveEmptyStaffContext
71 \name "StaffCombineStaff"
72 \accepts "StaffCombineVoice"
78 splitInterval = #'(1 . 0)
79 changeMoment = #`(,(ly:make-moment 1 1) . ,(ly:make-moment 1 1))
84 \accepts "VoiceCombineStaff"
85 \accepts "StaffCombineStaff"
87 \translator{ \RemoveEmptyStaffContext }
91 \accepts "VoiceCombineStaff"
92 \accepts "StaffCombineStaff"
95 RehearsalMark \override #'padding = #4
96 BarNumber \override #'padding = #3
97 TimeSignature \override #'style = #'C
98 RestCollision \set #'maximum-rest-count = #1