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