]> git.donarmstrong.com Git - lilypond.git/blob - input/test/part-combine-moments.ly
43d0a7f67e6aedcf3c8b54e4f88bd3854c5c716a
[lilypond.git] / input / test / part-combine-moments.ly
1 \version "1.7.19"
2
3 \score{
4         \context PianoStaff <
5                 \context StaffCombineStaff=one \skip 1*2
6                 \context StaffCombineStaff=two \skip 1*2
7                 \context StaffCombineStaff=one \partcombine StaffCombineStaff
8                         \context StaffCombineVoice=one \notes\relative c''
9                                 {
10                                         c4 d e f\break
11                                         c2 e4 f\break
12                                 }
13                         \context StaffCombineVoice=two \notes\relative c''
14                                 {
15                                         c4 d e f
16                                         c2 e2
17                                 }
18                 >
19         \paper {
20
21                 textheight = 295.0\mm
22                 linewidth = 180.0\mm
23
24                 \translator{ \RemoveEmptyStaffContext }
25                 %
26                 % The Voice combine hierarchy
27                 %
28                 \translator{
29                         \ThreadContext
30                         \name "VoiceCombineThread"
31                         \consists "Rest_engraver"
32                 }
33                 \translator{
34                         \VoiceContext
35                         \name "VoiceCombineVoice"
36                         soloText = #"I."
37                         soloIIText = #"II."
38                         \remove "Rest_engraver"
39                         \accepts "VoiceCombineThread"
40                 }
41                 \translator{
42                         \RemoveEmptyStaffContext
43                         \consists "Mark_engraver"
44                         \name "VoiceCombineStaff"
45                         \accepts "VoiceCombineVoice"
46                 }
47
48                 %
49                 % The Staff combine hierarchy
50                 %
51                 \translator{
52                         \ThreadContext
53                         \name "StaffCombineThread"
54                 }
55                 \translator{
56                         \VoiceContext
57                         \name "StaffCombineVoice"
58                         \accepts "StaffCombineThread"
59                         \consists "Thread_devnull_engraver"
60                 }
61                 \translator {
62                         \RemoveEmptyStaffContext
63                         \name "StaffCombineStaff"
64                         \accepts "StaffCombineVoice"
65
66                         soloADue = ##t
67                         soloText = #""
68                         soloIIText = #""
69                         aDueText = #""
70                         splitInterval = #'(1 . 0)
71                         changeMoment = #`(,(ly:make-moment 1 1) . ,(ly:make-moment 1 1))
72
73                 }
74                 \translator {
75                         \StaffGroupContext
76                         \accepts "VoiceCombineStaff"
77                         \accepts "StaffCombineStaff"
78                 }
79                 \translator{ \RemoveEmptyStaffContext }
80
81                 \translator {
82                         \ScoreContext
83                         \accepts "VoiceCombineStaff"
84                         \accepts "StaffCombineStaff"
85                         skipBars = ##t 
86
87                         %%FIXME barScriptPadding = #2.0 % dimension \pt
88                         RehearsalMark \override #'padding = #4
89                         BarNumber \override #'padding = #3
90                         %% URG: this changes dynamics too
91                         %%textStyle = #"italic"
92                         TimeSignature \override #'style = #'C
93                         RestCollision \set #'maximum-rest-count = #1
94                 }
95         }
96 }
97 %% new-chords-done %%