blob: 59946daa7244e11d437a5eb9101a67727e811053 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
|
%
% setup for Request->Element conversion. Guru-only
%
StaffContext=\translator {
\type "Line_group_engraver_group";
\name Staff ;
barAuto = "1";
voltaVisibility = "1";
%{
The Hara_kiri_line_group_engraver is a Line_group_engraver
that will not typeset an empty line of staff, i.e., a line
of staff with only rests in it. This is needed for orchestral
scores. Comment-out Line_group_engraver_group, and uncomment
Hara_kiri_line_group_engraver.
%}
% \type "Hara_kiri_line_group_engraver";
\consists "Multi_measure_rest_engraver";
\consists "Repeat_engraver";
\consists "Bar_engraver";
\consists "Clef_engraver";
\consists "Key_engraver";
\consists "Local_key_engraver";
\consists "Time_signature_engraver";
\consists "Staff_symbol_engraver";
\consists "Collision_engraver";
\consists "Rest_collision_engraver";
%{
Uncomment to get bar numbers on single staff systems:
The Bar_number_engraver puts a number over a staff created
at the same level of hierarchy. This why you have to add it
here separately if you want to have numbers on single staff
systems: The Bar_number_engraver in Score_engraver will only
put numbers on bars that are Score ("system") wide. Such
bars are only created when the toplevel system has multiple
children-staffs.
%}
%{
\consists "Bar_number_engraver";
%}
%{
The Staff_margin_engraver puts the name of the instrument
(\property Staff.instrument; Staff.instr for subsequent lines)
to the left of a staff.
%}
defaultClef = treble;
marginBreakPriority = "-5";
%{
\consists "Staff_margin_engraver";
%}
\consists "Separating_line_group_engraver";
\accepts "Voice";
dynamicStyle = "dynamic";
};
\translator{\StaffContext }
\translator {
\type "Line_group_engraver_group";
\name ChoirStaff;
\consists "Vertical_align_engraver";
\consists "Staff_group_bar_engraver";
\accepts "Staff";
\accepts "RhythmicStaff";
\accepts "GrandStaff";
\accepts "PianoStaff";
\accepts "Lyrics";
\accepts "ChordNames";
}
RhythmicStaffContext=\translator{
\type "Line_group_engraver_group";
numberOfStaffLines = "1";
\consists "Pitch_squash_engraver";
\consists "Separating_line_group_engraver";
\name RhythmicStaff;
\consists "Repeat_engraver";
\consists "Bar_engraver";
\consists "Time_signature_engraver";
\consists "Staff_symbol_engraver";
\accepts "Voice";
};
\translator{\RhythmicStaffContext}
VoiceContext = \translator {
\type "Engraver_group_engraver";
\consists "Dynamic_engraver";
\name Voice ;
beamAuto = "1";
\consists "Rest_engraver";
\consists "Dot_column_engraver";
\consists "Stem_engraver";
\consists "Beam_engraver";
\consists "Auto_beam_engraver";
\include "auto-beam-settings.ly";
\consists "Abbreviation_beam_engraver";
% \consists "Multi_measure_rest_engraver";
% ugh. Order matters here.
\consists "Text_engraver";
\consists "Script_engraver";
\consists "Rhythmic_column_engraver";
\consists "Font_size_engraver";
\consists "Slur_engraver";
\consists "Tie_engraver";
\consists "Tuplet_engraver";
\consists "Note_heads_engraver" ;
\consists "Skip_req_swallow_translator";
};
\translator {\VoiceContext}
GrandStaffContext=\translator{
\type "Line_group_engraver_group";
\name GrandStaff;
\consists "Span_bar_engraver";
\consists "Vertical_align_engraver";
\consists "Piano_bar_engraver";
minVerticalAlign = 1.5*\staffheight;
\accepts "Staff";
};
\translator{\GrandStaffContext}
\translator{\GrandStaffContext
minVerticalAlign = 3.0*\staffheight;
maxVerticalAlign = 3.0*\staffheight;
\name "PianoStaff";
}
\translator {
\type "Hara_kiri_line_group_engraver";
% \type "Line_group_engraver_group";
\consists "Span_bar_engraver";
\consists "Vertical_align_engraver";
\consists "Staff_group_bar_engraver";
\name StaffGroup;
\accepts "Staff";
\accepts "RhythmicStaff";
\accepts "GrandStaff";
\accepts "PianoStaff";
\accepts "Lyrics";
\accepts "ChordNames";
}
\translator{
\type "Line_group_engraver_group";
\name LyricVoice ;
\consists "Separating_line_group_engraver";
\consists "Lyric_engraver";
\consists "Extender_engraver";
\consists "Beam_req_swallow_translator";
}
\translator {
\type "Line_group_engraver_group";
\name Lyrics;
\consists "Vertical_align_engraver";
\accepts "LyricVoice";
}
\translator{
\type "Line_group_engraver_group";
\name ChordNameVoice ;
\consists "Separating_line_group_engraver";
\consists "Chord_name_engraver";
}
ChordNameContext = \translator {
\type "Line_group_engraver_group";
\name ChordNames;
\consists "Vertical_align_engraver";
\accepts "ChordNameVoice";
};
\translator { \ChordNameContext }
ScoreContext = \translator {
\type Score_engraver;
\name Score;
\consists "Timing_engraver";
\consists "Span_score_bar_engraver";
\consists "Score_priority_engraver";
\consists "Priority_horizontal_align_engraver";
\consists "Vertical_align_engraver";
\accepts "StaffGroup";
\accepts "Staff";
\accepts "RhythmicStaff";
\accepts "Lyrics";
\accepts "ChordNames";
\accepts "GrandStaff";
\accepts "ChoirStaff";
\accepts "PianoStaff";
};
\translator { \ScoreContext }
ScoreWithNumbers = \translator {
\type "Score_engraver";
% uncomment to bar numbers on a whole system.
\consists "Bar_number_engraver";
};
StupidScore = \translator {
\type "Score_engraver";
\name Score;
\consists "Note_heads_engraver";
};
BarNumberingStaffContext = \translator {
\StaffContext
barColumnPriority = "0";
marginBreakPriority = "-4";
\consists "Mark_engraver";
\consists "Bar_number_engraver";
};
HaraKiriStaffContext = \translator {
\type "Hara_kiri_line_group_engraver";
\name Staff;
barColumnPriority = "0";
marginBreakPriority = "-4";
\consists "Repeat_engraver";
\consists "Bar_engraver";
\consists "Clef_engraver";
\consists "Key_engraver";
\consists "Time_signature_engraver";
\consists "Local_key_engraver";
\consists "Staff_symbol_engraver";
\consists "Collision_engraver";
\consists "Rest_collision_engraver";
\consists "Staff_margin_engraver";
\consists "Separating_line_group_engraver";
\accepts "Voice";
};
OrchestralPartStaffContext = \translator {
\StaffContext
barColumnPriority = "0";
marginBreakPriority = "-4";
\consists "Mark_engraver";
\consists "Bar_number_engraver";
};
OrchestralScoreContext= \translator {
\type Score_engraver;
\name Score;
barScriptPadding = "2.0"; % dimension \pt
markScriptPadding = "4.0";
barColumnPriority = "-4";
markBreakPriority = "-4";
defaultClef = treble;
\consists "Timing_engraver";
\consists "Bar_number_engraver";
\consists "Mark_engraver";
\consists "Span_score_bar_engraver";
\consists "Score_priority_engraver";
\consists "Priority_horizontal_align_engraver";
\consists "Vertical_align_engraver";
\accepts "ChoirStaff";
\accepts "StaffGroup";
\accepts "HaraKiriStaff";
\accepts "RhythmicStaff";
\accepts "Lyrics";
\accepts "ChordNames";
\accepts "GrandStaff";
\accepts "PianoStaff";
};
|