]> git.donarmstrong.com Git - lilypond.git/blob - ly/performer-init.ly
Merge branch 'master' of /home/jcharles/GIT/Lily/. into translation
[lilypond.git] / ly / performer-init.ly
1 %%%% This file is part of LilyPond, the GNU music typesetter.
2 %%%%
3 %%%% Copyright (C) 1996--2014 Han-Wen Nienhuys <hanwen@xs4all.nl>
4 %%%%                          Jan Nieuwenhuizen <janneke@gnu.org>
5 %%%%
6 %%%% LilyPond is free software: you can redistribute it and/or modify
7 %%%% it under the terms of the GNU General Public License as published by
8 %%%% the Free Software Foundation, either version 3 of the License, or
9 %%%% (at your option) any later version.
10 %%%%
11 %%%% LilyPond is distributed in the hope that it will be useful,
12 %%%% but WITHOUT ANY WARRANTY; without even the implied warranty of
13 %%%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 %%%% GNU General Public License for more details.
15 %%%%
16 %%%% You should have received a copy of the GNU General Public License
17 %%%% along with LilyPond.  If not, see <http://www.gnu.org/licenses/>.
18
19 \version "2.17.14"
20
21 %%
22 %% setup for Request->Element conversion.
23 %%
24 \context {
25   \type "Performer_group"
26   \name Staff
27   \accepts Voice
28   \accepts CueVoice
29   \defaultchild Voice
30
31   \consists "Staff_performer"
32   \consists "Key_performer"
33   \consists "Midi_control_function_performer"
34 }
35
36 \context {
37   \name Global
38   \accepts Score
39   \defaultchild Score
40   \description "Hard coded entry point for LilyPond.  Cannot be tuned."
41 }
42
43 \context {
44   \type "Performer_group"
45   \name KievanStaff
46   \denies Voice
47   \accepts KievanVoice
48   \defaultchild KievanVoice
49   \alias Staff
50   \consists "Staff_performer"
51   \consists "Key_performer"
52   \consists "Midi_control_function_performer"
53 }
54
55 \context {
56   \type "Performer_group"
57   \name VaticanaStaff
58   \alias Staff
59   \denies Voice
60   \accepts VaticanaVoice
61   \defaultchild VaticanaVoice
62   \consists "Staff_performer"
63   \consists "Key_performer"
64   \consists "Midi_control_function_performer"
65 }
66
67 \context {
68   \type "Performer_group"
69   \name MensuralStaff
70   \denies Voice
71   \accepts MensuralVoice
72   \defaultchild MensuralVoice
73   \alias Staff
74   \consists "Staff_performer"
75   \consists "Key_performer"
76   \consists "Midi_control_function_performer"
77 }
78
79 \context {
80   \Staff
81   \name DrumStaff
82   midiInstrument = #"drums"
83   \accepts DrumVoice
84   \defaultchild DrumVoice
85 }
86
87 \context {
88   \type "Performer_group"
89   \name Voice
90   \consists "Dynamic_performer"
91   \consists "Tie_performer"
92   \consists "Piano_pedal_performer"
93   \consists "Note_performer"
94   \consists "Beam_performer"
95   \consists "Slur_performer"
96 }
97
98 \context {
99   \Voice
100   \name CueVoice
101   \alias Voice
102 }
103
104 \context {
105   \type "Performer_group"
106   \name VaticanaVoice
107   \alias Voice
108   \consists "Dynamic_performer"
109   \consists "Tie_performer"
110   \consists "Note_performer"
111   \consists "Beam_performer"
112   autoBeaming = ##f  % needed for consistent melismata with engravers
113   \consists "Slur_performer"
114 }
115
116 \context {
117   \type "Performer_group"
118   \name KievanVoice
119   \alias Voice
120   \consists "Dynamic_performer"
121   \consists "Tie_performer"
122   \consists "Note_performer"
123   \consists "Beam_performer"
124   autoBeaming = ##f  % needed for consistent melismata with engravers
125   \consists "Slur_performer"
126 }
127
128 \context {
129   \type "Performer_group"
130   \name MensuralVoice
131   \alias Voice
132   \consists "Dynamic_performer"
133   \consists "Tie_performer"
134   \consists "Note_performer"
135   \consists "Beam_performer"
136   autoBeaming = ##f  % needed for consistent melismata with engravers
137   \consists "Slur_performer"
138 }
139
140 \context {
141   \Voice
142   \remove "Note_performer"
143   \consists "Drum_note_performer"
144   \name DrumVoice
145 }
146
147 \context {
148   \type "Performer_group"
149   \name FiguredBass
150 }
151
152 \context {
153   \type "Performer_group"
154   \name FretBoards
155 }
156
157 \context {
158   \type "Performer_group"
159   \name GrandStaff
160   \accepts RhythmicStaff
161   \accepts Staff
162   \accepts Dynamics
163   \defaultchild Staff
164 }
165
166 \context {
167   \type "Performer_group"
168   \name "PianoStaff"
169   \accepts Staff
170   \accepts DrumStaff
171   \defaultchild Staff
172 }
173
174 \context {
175   \Voice
176   \name TabVoice
177 }
178
179 \context {
180   \type "Performer_group"
181   \name "Devnull"
182 }
183
184 \context {
185   \type "Performer_group"
186   \name NullVoice
187   \alias Staff
188   \alias Voice
189   %% needed for melismata
190   \consists "Tie_performer"
191   \consists "Beam_performer"
192   \consists "Slur_performer"
193 }
194
195 \context {
196   \Staff
197   \name TabStaff
198   midiInstrument = #"acoustic guitar (nylon)"
199   \alias Staff
200   \accepts TabVoice
201   \defaultchild TabVoice
202   autoBeaming = ##f  % needed for consistent melismata with engravers
203 }
204
205 \context {
206   \type "Score_performer"
207
208   \name Score
209
210   melismaBusyProperties = #default-melisma-properties
211   instrumentName = #"bright acoustic"
212   midiChannelMapping = #'staff
213
214   %% quarter = 60
215   tempoWholesPerMinute = #(ly:make-moment 15/1)
216
217   \accepts Staff
218   \accepts DrumStaff
219   \accepts GrandStaff
220   \accepts PianoStaff
221   \accepts TabStaff
222   \accepts StaffGroup
223   \accepts Devnull
224   \accepts NullVoice
225   \accepts ChoirStaff
226   \accepts RhythmicStaff
227   \accepts ChordNames
228   \accepts FiguredBass
229   \accepts FretBoards
230   \accepts Lyrics
231   \accepts VaticanaStaff
232   \accepts KievanStaff
233   \accepts MensuralStaff
234
235   \consists "Time_signature_performer"
236   \consists "Control_track_performer"
237   \consists "Tempo_performer"
238
239   \alias "Timing"
240
241   %% An alias for Timing is established by the Timing_translator in
242   %% whatever context it is initialized, and the timing variables are
243   %% then copied from wherever Timing had been previously established.
244   %% The alias at Score level provides a target for initializing
245   %% Timing variables in layout definitions before any
246   %% Timing_translator has been run.
247
248   timeSignatureSettings = #default-time-signature-settings
249   timeSignatureFraction = 4/4
250   autoBeaming = ##t  % needed for consistent melismata with engravers
251
252   %% Other beaming variables are not important as autobeams don't affect
253   %% the Midi.  Melismata are only affected by beams when autobeaming
254   %% is switched off.
255
256   \consists "Timing_translator"
257
258   \defaultchild "Staff"
259
260   dynamicAbsoluteVolumeFunction = #default-dynamic-absolute-volume
261   instrumentEqualizer = #default-instrument-equalizer
262   drumPitchTable = #(alist->hash-table midiDrumPitches)
263   timing = ##t
264 }
265
266
267 \context {
268   \type "Performer_group"
269   \consists "Staff_performer" % Performer_group ?
270   \consists "Lyric_performer"
271   \name Lyrics
272 }
273
274 \context{
275   \type "Performer_group"
276   \name ChoirStaff
277   \accepts Staff
278   \accepts DrumStaff
279   \defaultchild Staff
280 }
281
282 \context {
283   \type "Performer_group"
284   \consists "Staff_performer"
285   \accepts ChordNameVoice
286   \defaultchild ChordNameVoice
287   \name ChordNames
288 }
289
290 \context {
291   \Voice
292   \name ChordNameVoice
293 }
294
295 \context {
296   \type "Performer_group"
297   \name StaffGroup
298   \accepts Staff
299   \accepts DrumStaff
300   \accepts TabStaff
301   \accepts RhythmicStaff
302   \accepts GrandStaff
303   \accepts PianoStaff
304   \accepts Lyrics
305   \accepts ChordNames
306   \accepts FiguredBass
307   \accepts FretBoards
308   \defaultchild Staff
309 }
310
311 \context {
312   \Staff
313   \name RhythmicStaff
314 }
315
316 \context {
317   \type "Performer_group"
318   \name Dynamics
319   \consists "Piano_pedal_performer"
320 }