]> git.donarmstrong.com Git - lilypond.git/blob - input/bugs/score-dynamics.ly
patch::: 1.3.126.jcn1
[lilypond.git] / input / bugs / score-dynamics.ly
1 % dynamics collide with staff
2
3 \header {
4 texidoc="Template for part-combining orchestral scores";
5 }
6
7
8 End = { \skip 1*6; }
9 violoncello = \notes\relative c'' {
10   c1\ff d e \break
11   c1\ff d e \break
12 }
13
14 contrabasso = \notes\relative c'' {
15   c1\pp d e
16   c2\pp c d1 e
17 }
18
19 flautiStaff =  \notes \context VoiceCombineStaff = flauti <
20  \context VoiceCombineVoice=oneBassi \End
21  \context VoiceCombineVoice=twoBassi \End
22   \context VoiceCombineVoice=Flauti \partcombine VoiceCombineVoice
23     \context VoiceCombineThread=oneFlauti \violoncello
24     \context VoiceCombineThread=twoFlauti \contrabasso
25 >
26
27
28 \score {
29   <
30   \flautiStaff
31
32   \context PianoStaff = bassi_group \notes <
33     \context StaffCombineStaff=oneBassi \End
34     \context StaffCombineStaff=twoBassi \End
35
36     \context StaffCombineStaff=oneBassi \partcombine StaffCombineStaff
37       \context StaffCombineVoice=oneBassi \violoncello
38       \context StaffCombineVoice=twoBassi \contrabasso
39  >
40
41   >
42   \paper{
43     % \paperSixteen
44
45     %textheight = 290.0\mm;
46     %linewidth = 195.0\mm;
47     textheight = 285.0\mm;
48     linewidth = 190.0\mm;
49
50     \translator{ \HaraKiriStaffContext }
51     %
52     % The Voice combine hierarchy
53     %
54     \translator{
55       \ThreadContext
56       \name "VoiceCombineThread";
57       \consists "Rest_engraver";
58     }
59     \translator{
60       \VoiceContext
61       \name "VoiceCombineVoice";
62       soloText = #"I."
63       soloIIText = #"II."
64       \remove "Rest_engraver";
65       \accepts "VoiceCombineThread";
66     }
67     \translator{
68       \HaraKiriStaffContext
69       \consists "Mark_engraver";
70       \name "VoiceCombineStaff";
71       \accepts "VoiceCombineVoice";
72     }
73
74     %
75     % The Staff combine hierarchy
76     %
77     \translator{
78       \ThreadContext
79       \name "StaffCombineThread";
80     }
81     \translator{
82       \VoiceContext
83       \name "StaffCombineVoice";
84       \accepts "StaffCombineThread";
85       \consists "Thread_devnull_engraver";
86     }
87     \translator {
88       \HaraKiriStaffContext
89       \name "StaffCombineStaff";
90       \accepts "StaffCombineVoice";
91
92       soloADue = ##t
93       soloText = #""
94       soloIIText = #""
95       % This is non-conventional, but currently it is
96       % the only way to tell the difference.
97       aDueText = #"\\`a2"
98       splitInterval = #'(1 . 0)
99       changeMoment = #`(,(make-moment 1 1) . ,(make-moment 1 1))
100     }
101     \translator {
102       \StaffGroupContext
103       \accepts "VoiceCombineStaff";
104       \accepts "StaffCombineStaff";
105     }
106     \translator{ \HaraKiriStaffContext }
107
108     \translator {
109       %\ScoreContext
110       \OrchestralScoreContext
111       \accepts "VoiceCombineStaff";
112       \accepts "StaffCombineStaff";
113       TimeSignature \override #'style = #'C
114       skipBars = ##t 
115       BarNumber \override #'padding = #3
116       RestCollision \override #'maximum-rest-count = #1
117     }
118   }
119 }