]> git.donarmstrong.com Git - lilypond.git/blob - ly/engraver-init.ly
Some clean up about grace-settings in music-functions.scm
[lilypond.git] / ly / engraver-init.ly
1 %%%% This file is part of LilyPond, the GNU music typesetter.
2 %%%%
3 %%%% Copyright (C) 1996--2012 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.11"
20
21 \context {
22   \name "Global"
23
24   \accepts "Score"
25
26   \defaultchild "Score"
27   \description "Hard coded entry point for LilyPond.  Cannot be tuned."
28   \grobdescriptions #all-grob-descriptions
29 }
30
31 \context {
32   \type "Engraver_group"
33   \name "FretBoards"
34   \alias "Staff"
35   \description "A context for displaying fret diagrams."
36
37   \consists "Fretboard_engraver"
38   \consists "Output_property_engraver"
39   \consists "Axis_group_engraver"
40   \consists "Separating_line_group_engraver"
41   \consists "Font_size_engraver"
42   \consists "Instrument_name_engraver"
43
44   %% explicitly set instrument, so it is not inherited from the parent
45   instrumentName = #'()
46   shortInstrumentName = #'()
47
48   predefinedDiagramTable = #default-fret-table
49   handleNegativeFrets = #'recalculate
50   restrainOpenStrings = ##f
51 }
52
53 \context {
54   \type "Engraver_group"
55   \name "Staff"
56
57   \consists "Output_property_engraver"
58   \consists "Bar_engraver"
59   \consists "Pure_from_neighbor_engraver"
60   %% Bar_engraver must be first so default bars aren't overwritten
61   %% with empty ones.
62
63   \consists "Font_size_engraver"
64   \consists "Separating_line_group_engraver"
65   \consists "Dot_column_engraver"
66   \consists "Staff_collecting_engraver"
67
68  %% perhaps move to Voice context?
69   \consists "Ottava_spanner_engraver"
70   \consists "Clef_engraver"
71   \consists "Key_engraver"
72   \consists "Time_signature_engraver"
73   \consists "Ledger_line_engraver"
74   \consists "Staff_symbol_engraver"
75   \consists "Collision_engraver"
76   \consists "Grob_pq_engraver"
77   \consists "Rest_collision_engraver"
78   \consists "Accidental_engraver"
79   \consists "Piano_pedal_engraver"
80   \consists "Piano_pedal_align_engraver"
81   \consists "Instrument_name_engraver"
82   \consists "Axis_group_engraver"
83   \consists "Figured_bass_engraver"
84   \consists "Figured_bass_position_engraver"
85   \consists "Script_row_engraver"
86   \consists "Cue_clef_engraver"
87   \consists "Fingering_column_engraver"
88
89   localKeySignature = #'()
90   createSpacing = ##t
91   ignoreFiguredBassRest = ##f
92
93   %% explicitly set instrument, so we don't get
94   %% weird effects when doing instrument names for
95   %% piano staves
96   instrumentName = #'()
97   shortInstrumentName = #'()
98
99   \defaultchild "Voice"
100   \accepts "Voice"
101   \accepts "CueVoice"
102
103   \description "Handles clefs, bar lines, keys, accidentals.  It can contain
104 @code{Voice} contexts."
105
106 }
107
108 \context {
109   \Staff
110   \type "Engraver_group"
111   \name "DrumStaff"
112   \alias "Staff"
113
114   \remove "Accidental_engraver"
115   \remove "Ottava_spanner_engraver"
116   \remove "Key_engraver"
117   \remove "Piano_pedal_engraver"
118
119   \description "Handles typesetting for percussion."
120
121   \denies "Voice"
122   \accepts "DrumVoice"
123   \defaultchild "DrumVoice"
124
125   clefGlyph = #"clefs.percussion"
126   clefPosition = #0
127   \override Script.staff-padding = #0.75
128 }
129
130
131 \context {
132   \type "Engraver_group"
133   \name "ChoirStaff"
134   \consists "Vertical_align_engraver"
135   topLevelAlignment = ##f
136
137   \consists "Instrument_name_engraver"
138   \consists "System_start_delimiter_engraver"
139   systemStartDelimiter = #'SystemStartBracket
140   %% explicitly set instrument, so it is not inherited from the parent
141   instrumentName = #'()
142   shortInstrumentName = #'()
143   vocalName = #'()
144   shortVocalName = #'()
145
146   \accepts "Staff"
147   \accepts "DrumStaff"
148   \accepts "RhythmicStaff"
149   \accepts "GrandStaff"
150   \accepts "PianoStaff"
151   \accepts "Lyrics"
152   \accepts "ChordNames"
153   \accepts "FiguredBass"
154   \accepts "ChoirStaff"
155   \accepts "StaffGroup"
156   \defaultchild "Staff"
157   \description "Identical to @code{StaffGroup} except that the
158 contained staves are not connected vertically."
159 }
160
161 \context{
162   \type "Engraver_group"
163
164   localKeySignature = #'()
165   createSpacing = ##t
166
167   squashedPosition = #0
168   \name RhythmicStaff
169   \alias "Staff"
170
171   \override BarLine.bar-extent = #'(-2 . 2)
172   \override VoltaBracket.staff-padding = #3
173   \override StaffSymbol.line-count = #1
174
175   \override Stem.neutral-direction = #UP
176   \override Beam.neutral-direction = #UP
177
178   \consists "Output_property_engraver"
179   \consists "Font_size_engraver"
180   \consists "Separating_line_group_engraver"
181   \consists "Dot_column_engraver"
182   \consists "Bar_engraver"
183   \consists "Staff_symbol_engraver"
184   \consists "Pitch_squash_engraver"
185   \consists "Time_signature_engraver"
186   \consists "Instrument_name_engraver"
187   \consists "Axis_group_engraver"
188   \consists "Ledger_line_engraver"
189
190   %% explicitly set instrument, so it is not inherited from the parent
191   instrumentName = #'()
192   shortInstrumentName = #'()
193
194   \accepts "Voice"
195   \accepts "CueVoice"
196   \defaultchild "Voice"
197
198   \description "A context like @code{Staff} but for printing rhythms.
199 Pitches are ignored; the notes are printed on one line."
200 }
201
202
203 \context {
204   \type "Engraver_group"
205   \name "Voice"
206
207   \description "Corresponds to a voice on a staff.  This context
208 handles the conversion of dynamic signs, stems, beams, super- and
209 subscripts, slurs, ties, and rests.
210
211 You have to instantiate this explicitly if you want to have
212 multiple voices on the same staff."
213
214   \consists "Font_size_engraver"
215
216   \consists "Pitched_trill_engraver"
217   \consists "Output_property_engraver"
218   \consists "Arpeggio_engraver"
219   \consists "Multi_measure_rest_engraver"
220   \consists "Text_spanner_engraver"
221   \consists "Trill_spanner_engraver"
222   \consists "Grob_pq_engraver"
223   \consists "Forbid_line_break_engraver"
224   \consists "Laissez_vibrer_engraver"
225   \consists "Repeat_tie_engraver"
226   \consists "Note_head_line_engraver"
227   \consists "Glissando_engraver"
228   \consists "Ligature_bracket_engraver"
229   \consists "Breathing_sign_engraver"
230   \consists "Note_heads_engraver"
231   \consists "Dots_engraver"
232   \consists "Rest_engraver"
233
234   %% switch on to make stem directions interpolate for the
235   %% center line.
236   %  \consists "Melody_engraver"
237
238   \consists "Stem_engraver"
239   \consists "Beam_engraver"
240   \consists "Grace_beam_engraver"
241   \consists "Auto_beam_engraver"
242
243   %% must come before Script_column_engraver.
244   \consists "New_fingering_engraver"
245
246   \consists "Chord_tremolo_engraver"
247   \consists "Double_percent_repeat_engraver"
248   \consists "Percent_repeat_engraver"
249   \consists "Slash_repeat_engraver"
250   \consists "Part_combine_engraver"
251
252   \consists "Text_engraver"
253   \consists "New_dynamic_engraver"
254   \consists "Dynamic_align_engraver"
255 %  \consists "Dynamic_engraver"
256   \consists "Fingering_engraver"
257   \consists "Bend_engraver"
258
259   \consists "Script_engraver"
260   \consists "Script_column_engraver"
261   \consists "Rhythmic_column_engraver"
262   \consists "Note_spacing_engraver"
263   \consists "Spanner_break_forbid_engraver"
264   \consists "Phrasing_slur_engraver"
265   \consists "Cluster_spanner_engraver"
266   \consists "Slur_engraver"
267   \consists "Tie_engraver"
268   \consists "Tuplet_engraver"
269   \consists "Grace_engraver"
270   \consists "Instrument_switch_engraver"
271 }
272
273 \context{
274   \Voice
275
276   \name CueVoice
277   \alias Voice
278   fontSize = #-4
279   \override Stem.length-fraction = #(magstep -4)
280   \override Beam.length-fraction = #(magstep -4)
281   \override Beam.beam-thickness = #0.35
282 }
283
284 \context {
285   \Voice
286   \name DrumVoice
287   \alias Voice
288
289   \description "A voice on a percussion staff."
290   \remove "Arpeggio_engraver"
291   \consists "Grob_pq_engraver"
292
293   \remove "Note_head_line_engraver"
294   \remove "Glissando_engraver"
295   \remove "Ligature_bracket_engraver"
296   \remove "Note_heads_engraver"
297   \consists "Drum_notes_engraver"
298   \remove "New_fingering_engraver"
299
300   \remove "Fingering_engraver"
301
302   \remove "Cluster_spanner_engraver"
303 }
304
305 \context{
306   \type "Engraver_group"
307   \name GrandStaff
308   localKeySignature = #'()
309
310   \description "A group of staves, with a brace on the left
311 side, grouping the staves together.  The bar lines of the
312 contained staves are connected vertically."
313
314   \consists "Instrument_name_engraver"
315   \consists "Span_bar_engraver"
316   \consists "Span_bar_stub_engraver"
317   \consists "Span_arpeggio_engraver"
318   \consists "System_start_delimiter_engraver"
319   \consists "Vertical_align_engraver"
320   systemStartDelimiter = #'SystemStartBrace
321   topLevelAlignment = ##f
322   %% explicitly set instrument, so it is not inherited from the parent
323   instrumentName = #'()
324   shortInstrumentName = #'()
325
326   \defaultchild "Staff"
327   \accepts "Staff"
328   \accepts "RhythmicStaff"
329   \accepts "DrumStaff"
330   \accepts "TabStaff"
331   \accepts "Lyrics"
332   \accepts "FiguredBass"
333   \accepts "Dynamics"
334   \accepts "ChordNames"
335 }
336
337 \context{
338   \GrandStaff
339   \name "PianoStaff"
340   \alias "GrandStaff"
341
342   \description "Just like @code{GrandStaff}, but the staves are only removed
343 together, never separately."
344
345   \consists "Vertical_align_engraver"
346   \consists "Keep_alive_together_engraver"
347   topLevelAlignment = ##f
348
349   instrumentName = #'()
350   shortInstrumentName = #'()
351 }
352
353 \context {
354   \type "Engraver_group"
355   \name "StaffGroup"
356
357   \consists "Vertical_align_engraver"
358   topLevelAlignment = ##f
359
360   \consists "Instrument_name_engraver"
361   \consists "Span_bar_engraver"
362   \consists "Span_bar_stub_engraver"
363   \consists "Span_arpeggio_engraver"
364   \consists "Output_property_engraver"
365   systemStartDelimiter = #'SystemStartBracket
366   %% explicitly set instrument, so it is not inherited from the parent
367   instrumentName = #'()
368   shortInstrumentName = #'()
369
370   \consists "System_start_delimiter_engraver"
371
372   \defaultchild "Staff"
373   \accepts "Staff"
374   \accepts "RhythmicStaff"
375   \accepts "DrumStaff"
376   \accepts "GrandStaff"
377   \accepts "PianoStaff"
378   \accepts "TabStaff"
379   \accepts "Lyrics"
380   \accepts "ChordNames"
381   \accepts "FiguredBass"
382   \accepts "ChoirStaff"
383   \accepts "StaffGroup"
384
385   \description "Groups staves while adding a bracket on the left
386 side, grouping the staves together.  The bar lines of the contained
387 staves are connected vertically.  @code{StaffGroup} only consists of
388 a collection of staves, with a bracket in front and spanning bar lines."
389 }
390
391 \context {
392   \type "Engraver_group"
393   \name Dynamics
394   \alias Voice
395   \consists "Output_property_engraver"
396   \consists "Bar_engraver"
397   \consists "Piano_pedal_engraver"
398   \consists "Script_engraver"
399   \consists "New_dynamic_engraver"
400   \consists "Dynamic_align_engraver"
401   \consists "Text_engraver"
402   \consists "Text_spanner_engraver"
403   \consists "Font_size_engraver"
404   \consists "Axis_group_engraver"
405
406   pedalSustainStrings = #'("Ped." "*Ped." "*")
407   pedalUnaCordaStrings = #'("una corda" "" "tre corde")
408   \override VerticalAxisGroup.staff-affinity = #CENTER
409   \override VerticalAxisGroup.nonstaff-relatedstaff-spacing =
410     #'((basic-distance . 5)
411        (padding . 0.5))
412   \override TextScript.font-shape = #'italic
413   \override DynamicLineSpanner.Y-offset = #0
414   \override DynamicLineSpanner.outside-staff-priority = ##f
415   \override DynamicText.outside-staff-priority = ##f
416   \override Hairpin.outside-staff-priority = ##f
417   \override DynamicText.X-offset =
418   #(ly:make-simple-closure
419     `(,+
420       ,(ly:make-simple-closure
421          (list ly:self-alignment-interface::centered-on-note-columns))
422       ,(ly:make-simple-closure
423         (list ly:self-alignment-interface::x-aligned-on-self))))
424
425   \description "Holds a single line of dynamics, which will be
426 centered between the staves surrounding this context."
427 }
428
429
430 \context{
431   \type "Engraver_group"
432
433   \description "Corresponds to a voice with lyrics.  Handles the
434 printing of a single line of lyrics."
435
436   \name "Lyrics"
437   \consists "Lyric_engraver"
438   \consists "Extender_engraver"
439   \consists "Hyphen_engraver"
440   \consists "Stanza_number_engraver"
441   \consists "Instrument_name_engraver"
442   \consists "Font_size_engraver"
443   \consists "Axis_group_engraver"
444   \consists "Pure_from_neighbor_engraver"
445   searchForVoice = ##f
446   %% explicitly set instrument, so it is not inherited from the parent
447   instrumentName = #'()
448   shortInstrumentName = #'()
449
450   \override VerticalAxisGroup.remove-first = ##t
451   \override VerticalAxisGroup.remove-empty = ##t
452   \override VerticalAxisGroup.staff-affinity = #UP
453   \override VerticalAxisGroup.nonstaff-relatedstaff-spacing =
454     #'((basic-distance . 5.5)
455        (padding . 0.5)
456        (stretchability . 1))
457   \override VerticalAxisGroup.nonstaff-nonstaff-spacing =
458      #'((basic-distance . 0)
459         (minimum-distance . 2.8)
460         (padding . 0.2)
461         (stretchability . 0))
462   \override VerticalAxisGroup.nonstaff-unrelatedstaff-spacing.padding = #1.5
463   \override InstrumentName.self-alignment-Y = ##f
464
465   %% sync with define-grobs.scm ;
466   \override InstrumentName.font-size = #1.0
467
468   %% make sure that barlines aren't collapsed, when
469   %% Bar_engraver is there.
470   \override BarLine.bar-extent = #'(-0.05 . 0.05)
471
472 }
473
474 \context {
475   \type "Engraver_group"
476   \name NoteNames
477   \description "A context for printing the names of notes."
478   \consists "Axis_group_engraver"
479
480   \override VerticalAxisGroup.staff-affinity = #UP
481   \override VerticalAxisGroup.nonstaff-nonstaff-spacing =
482     #'((basic-distance . 0)
483        (minimum-distance . 2.8)
484        (padding . 0.2)
485        (stretchability . 0))
486   \override VerticalAxisGroup.nonstaff-relatedstaff-spacing =
487     #'((basic-distance . 5.5)
488        (padding . 0.5)
489        (stretchability . 1))
490   \override VerticalAxisGroup.nonstaff-unrelatedstaff-spacing.padding = 1.5
491
492   \consists "Tie_engraver"
493   \consists "Note_name_engraver"
494   \consists "Separating_line_group_engraver"
495 }
496
497 \context {
498   \type "Engraver_group"
499   \name ChordNames
500   \description "Typesets chord names."
501
502   \consists "Output_property_engraver"
503   \consists "Separating_line_group_engraver"
504   \consists "Chord_name_engraver"
505   \consists "Axis_group_engraver"
506 %  \consists "Note_spacing_engraver"
507
508   \override VerticalAxisGroup.remove-first = ##t
509   \override VerticalAxisGroup.remove-empty = ##t
510   \override VerticalAxisGroup.staff-affinity = #DOWN
511   \override VerticalAxisGroup.nonstaff-relatedstaff-spacing.padding = #0.5
512   \override VerticalAxisGroup.nonstaff-nonstaff-spacing.padding = #0.5
513 }
514
515 \context {
516   \type "Score_engraver"
517   \name "Score"
518
519   \description "This is the top level notation context.  No
520 other context can contain a @code{Score} context.  This context
521 handles the administration of time signatures.  It also makes sure
522 that items such as clefs, time signatures, and key-signatures are
523 aligned across staves.
524
525 You cannot explicitly instantiate a @code{Score} context (since it
526 is not contained in any other context).  It is instantiated
527 automatically when an output definition (a @code{\\score} or
528 @code{\\layout} block) is processed."
529
530   \consists "Paper_column_engraver"
531   \consists "Repeat_acknowledge_engraver"
532   \consists "Staff_collecting_engraver"
533
534   \alias "Timing"
535
536   %% An alias for Timing is established by the Timing_translator in
537   %% whatever context it is initialized, and the timing variables are
538   %% then copied from wherever Timing had been previously established.
539   %% The alias at Score level provides a target for initializing
540   %% Timing variables in layout definitions before any
541   %% Timing_translator has been run.
542
543   % timing translator must come BEFORE bar number engraver
544   \consists "Timing_translator"
545   \consists "Default_bar_line_engraver"
546   \consists "Output_property_engraver"
547   \consists "Tweak_engraver"
548   \consists "System_start_delimiter_engraver"
549   \consists "Mark_engraver"
550   \consists "Volta_engraver"
551   \consists "Metronome_mark_engraver"
552   \consists "Break_align_engraver"
553   \consists "Spacing_engraver"
554   \consists "Grace_spacing_engraver"
555   \consists "Vertical_align_engraver"
556   \consists "Stanza_number_align_engraver"
557   \consists "Bar_number_engraver"
558   \consists "Parenthesis_engraver"
559   \consists "Concurrent_hairpin_engraver"
560   \consists "Beam_collision_engraver"
561   \consists "Footnote_engraver"
562
563   \defaultchild "Staff"
564
565   \accepts "FretBoards"
566   \accepts "Staff"
567   \accepts "RhythmicStaff"
568   \accepts "TabStaff"
569   \accepts "VaticanaStaff"
570   \accepts "GregorianTranscriptionStaff"
571   \accepts "MensuralStaff"
572   \accepts "PetrucciStaff"
573   \accepts "StaffGroup"
574   \accepts "DrumStaff"
575   \accepts "KievanStaff"
576   \accepts "Lyrics"
577   \accepts "ChordNames"
578   \accepts "GrandStaff"
579   \accepts "ChoirStaff"
580   \accepts "PianoStaff"
581   \accepts "Devnull"
582   \accepts "NoteNames"
583   \accepts "FiguredBass"
584
585   noteToFretFunction = #determine-frets
586   predefinedDiagramTable = ##f
587   soloText = #"Solo"
588   soloIIText = #"Solo II"
589   aDueText = #"a2"
590   printPartCombineTexts = ##t
591   partCombineTextsOnNote = ##t
592   systemStartDelimiter =#'SystemStartBar
593
594   drumStyleTable = #drums-style
595
596   melismaBusyProperties = #default-melisma-properties
597   tieWaitForNote = ##f
598   clefGlyph = #"clefs.G"
599   clefPosition = #-2
600   middleCClefPosition = #-6
601   middleCPosition = #-6
602   firstClef = ##t
603
604   crescendoSpanner = #'hairpin
605   decrescendoSpanner = #'hairpin
606
607   defaultBarType = #"|"
608   doubleRepeatType = #":..:"
609   startRepeatType = #".|:"
610   endRepeatType = #":|."
611   barNumberVisibility = #first-bar-number-invisible-and-no-parenthesized-bar-numbers
612   barNumberFormatter = #robust-bar-number-function
613   clefTranspositionFormatter = #clef-transposition-markup
614   cueClefTranspositionFormatter = #clef-transposition-markup
615   automaticBars = ##t
616
617   explicitClefVisibility = #all-visible
618   explicitCueClefVisibility = #end-of-line-invisible
619   explicitKeySignatureVisibility = #all-visible
620   implicitTimeSignatureVisibility = #end-of-line-invisible
621
622   repeatCountVisibility = #all-repeat-counts-visible
623
624 %% Other Timing variables are derived and set by the Timing_translator
625 %% at initialization time by calling the functions in
626 %% scm/time-signature-settings.scm
627
628   timeSignatureSettings = #default-time-signature-settings
629   timeSignatureFraction = 4/4
630
631   beamHalfMeasure = ##t
632
633   autoBeaming = ##t
634   autoBeamCheck = #default-auto-beam-check
635
636   scriptDefinitions = #default-script-alist
637
638   pedalSustainStrings = #'("Ped." "*Ped." "*")
639   pedalSustainStyle = #'text
640   pedalUnaCordaStrings = #'("una corda" "" "tre corde")
641   pedalUnaCordaStyle = #'text
642
643 %% These are in ordinary italic font, including the *,
644 %% but they are unlikely to be used,
645 %% as the default pedal-style for SostenutoPedal is 'mixed':
646 %% i.e.  Sost. Ped_____________________
647   pedalSostenutoStrings = #'("Sost. Ped." "*Sost. Ped." "*")
648   pedalSostenutoStyle = #'mixed
649
650   harmonicAccidentals = ##t
651   fingeringOrientations = #'(up down)
652   stringNumberOrientations = #'(up down)
653   strokeFingerOrientations = #'(right)
654
655   lyricMelismaAlignment = #LEFT
656   markFormatter = #format-mark-letters
657   rehearsalMark = #1
658   subdivideBeams = ##f
659   extraNatural = ##t
660   autoAccidentals = #`(Staff ,(make-accidental-rule 'same-octave 0))
661   autoCautionaries = #'()
662
663   printKeyCancellation = ##t
664   keyAlterationOrder = #`(
665     (6 . ,FLAT) (2  . ,FLAT) (5 . ,FLAT ) (1  . ,FLAT) (4  . ,FLAT) (0  . ,FLAT) (3  . ,FLAT)
666     (3 . ,SHARP) (0 . ,SHARP) (4 . ,SHARP) (1 . ,SHARP) (5 . ,SHARP) (2 . ,SHARP) (6 . ,SHARP)
667     (6 . ,DOUBLE-FLAT) (2 . ,DOUBLE-FLAT) (5 . ,DOUBLE-FLAT ) (1 . ,DOUBLE-FLAT) (4 . ,DOUBLE-FLAT) (0 . ,DOUBLE-FLAT) (3 . ,DOUBLE-FLAT)
668     (3  . ,DOUBLE-SHARP) (0 . ,DOUBLE-SHARP) (4 . ,DOUBLE-SHARP) (1 . ,DOUBLE-SHARP) (5 . ,DOUBLE-SHARP) (2 . ,DOUBLE-SHARP) (6 . ,DOUBLE-SHARP)
669   )
670
671   barCheckSynchronize = ##f
672
673 %% chord names:
674   chordNameFunction = #ignatzek-chord-names
675   minorChordModifier = #(make-simple-markup "m")
676   additionalPitchPrefix = #"" % was "add"
677   majorSevenSymbol = #whiteTriangleMarkup
678   chordNameLowercaseMinor = ##f
679   chordNameSeparator = #(make-hspace-markup 0.5)
680   slashChordSeparator = #(make-simple-markup "/")
681   chordNameExceptions = #ignatzekExceptions
682   chordNoteNamer = #'()
683   chordRootNamer = #note-name->markup
684   chordPrefixSpacer = #0
685   chordNameExceptionsFull = #fullJazzExceptions
686   chordNameExceptionsPartial = #partialJazzExceptions
687   noChordSymbol = #(make-simple-markup "N.C.")
688
689   bassStaffProperties = #'((assign clefGlyph "clefs.F")
690   (assign clefPosition 2)
691   (assign middleCPosition 6)
692   (assign middleCClefPosition 6))
693 %% tablature:
694   stringOneTopmost = ##t
695   highStringOne = ##t
696
697 %% One may change the string tunings as follows :
698 %% The length of the list must be equal to the number of strings
699   stringTunings = #guitar-tuning
700   tablatureFormat = #fret-number-tablature-format
701   tabStaffLineLayoutFunction = #tablature-position-on-lines
702
703 %%
704   figuredBassFormatter = #format-bass-figure
705   metronomeMarkFormatter = #format-metronome-markup
706
707   %% See also make-voice-props-set
708   graceSettings = #score-grace-settings
709
710   keepAliveInterfaces = #'(
711     bass-figure-interface
712     chord-name-interface
713     cluster-beacon-interface
714     fret-diagram-interface
715     lyric-syllable-interface
716     note-head-interface
717     tab-note-head-interface
718     lyric-interface
719     percent-repeat-item-interface
720     percent-repeat-interface
721
722     ;; need this, as stanza numbers are items, and appear only once.
723     stanza-number-interface
724   )
725   % \quoteDuring is supposed to quote everything, cueDuring only the essentials
726   quotedEventTypes = #'(StreamEvent)
727   quotedCueEventTypes = #'(
728     note-event
729     rest-event
730     tie-event
731     beam-event
732     tuplet-span-event)
733   instrumentTransposition = #(ly:make-pitch 0 0 0)
734
735   topLevelAlignment = ##t
736
737   timing = ##t
738 }
739
740
741
742
743 \context {
744   \type "Engraver_group"
745   \name "FiguredBass"
746   \description "A context for printing a figured bass line."
747
748   \consists "Figured_bass_engraver"
749   \consists "Separating_line_group_engraver"
750   \consists "Axis_group_engraver"
751
752   \override VerticalAxisGroup.remove-empty = ##t
753   \override VerticalAxisGroup.remove-first = ##t
754   \override VerticalAxisGroup.staff-affinity = #UP
755   \override VerticalAxisGroup.nonstaff-relatedstaff-spacing.padding = #0.5
756   \override VerticalAxisGroup.nonstaff-nonstaff-spacing.padding = #0.5
757 }
758
759 \context {
760   \name "Devnull"
761   \type "Engraver_group"
762
763 %% don't want to route anything out of here:
764   \alias "Staff"
765   \alias "Voice"
766   \description "Silently discards all musical information given to this
767 context."
768 }
769
770 \context {
771   \Voice
772   \name "TabVoice"
773   \alias "Voice"
774   \consists "Tab_note_heads_engraver"
775   \consists "Tab_tie_follow_engraver"
776
777   \remove "Note_heads_engraver"
778   \remove "Fingering_engraver"
779   \remove "New_fingering_engraver"
780   \remove "Pitched_trill_engraver"
781
782   \description "Context for drawing notes in a Tab staff."
783
784   %% No accidental in tablature !
785   \remove "Accidental_engraver"
786 }
787
788 \context {
789   \Staff
790   \alias "Staff"
791   \name "TabStaff"
792   \denies "Voice"
793   \consists "Tab_staff_symbol_engraver"
794
795   \description "Context for generating tablature. It accepts only @code{TabVoice}
796 contexts and handles the line spacing, the tablature clef etc. properly."
797
798   \accepts "TabVoice"
799   \defaultchild "TabVoice"
800
801   %% 6 strings, bigger spacing
802   \override StaffSymbol.staff-space = #1.5
803
804   %% Don't draw stems over the tablature figures !
805   \override Stem.avoid-note-head = ##t
806
807   %% No accidental in tablature !
808   \remove "Accidental_engraver"
809   \remove "Key_engraver"
810
811   \remove "Ottava_spanner_engraver"
812   %% the clef handler
813   \override Clef.stencil = #clef::print-modern-tab-if-set
814   %% no time signature
815   \override TimeSignature.stencil = ##f
816   %% no arpeggios
817   \override Arpeggio.stencil = ##f
818   %% we ignore collision warnings that may occur due to
819   %% stem overlapping, because we have no stems ;-)
820   \override NoteColumn.ignore-collision = ##t
821   %% Special "TAB" clef
822   clefGlyph = #"clefs.tab"
823   clefPosition = #0
824   %% Change string if note results in negative fret number
825   handleNegativeFrets = #'recalculate
826   %% Allow open strings even if minimumFret is set
827   restrainOpenStrings = ##f
828
829   %% TabStaff increase the staff-space, which in turn
830   %% increases beam thickness and spacing; beams are
831   %% too big. We have to adjust the beam settings:
832   \override Beam.beam-thickness = #0.32
833   \override Beam.length-fraction = #0.62
834   %% the same goes for tremolo beams
835   \override StemTremolo.beam-thickness = #0.32
836   %% NOTE: in lily/stem-tremolo.cc, we have length-fraction = 1,
837   %% and the tablature staff space is scaled (1.5 by default),
838   %% so we use the inversion of the scale factor:
839   \override StemTremolo.length-fraction = #(lambda (grob)
840                                                (/ 1 (ly:staff-symbol-staff-space grob)))
841   \override StemTremolo.beam-width = #stem-tremolo::calc-tab-width
842
843   %% make the Stems as short as possible to minimize their influence
844   %% on the slur::calc-control-points routine
845   \override Stem.no-stem-extend = ##t
846   \override Flag.style = #'no-flag
847   \override Stem.details = #'((lengths 0 0 0 0 0 0)
848                                 (beamed-lengths 0 0 0)
849                                 (beamed-minimum-free-lengths 0 0 0)
850                                 (beamed-extreme-minimum-free-lengths 0 0)
851                                 (stem-shorten 0 0))
852   %% after all, the stubs of the stems may still be visible, so ...
853   \override Stem.stencil = ##f
854   \override Flag.stencil = ##f
855   %% automatic beams should be suppressed for similar reasons ...
856   autoBeaming = ##f
857   %% remove beams, dots and rests ...
858   \override Beam.stencil = ##f
859   \override StemTremolo.stencil = ##f
860   \override Dots.stencil = ##f
861   \override Rest.stencil = ##f
862   \override MultiMeasureRest.stencil = ##f
863   \override MultiMeasureRestNumber.stencil = ##f
864   \override MultiMeasureRestText.stencil = ##f
865   %% ... all kinds of ties/slurs
866   \override Tie.stencil = ##f
867   \override RepeatTie.stencil = ##f
868   \override LaissezVibrerTie.stencil = ##f
869   \override Slur.stencil = #slur::draw-tab-slur
870   \override PhrasingSlur.stencil = ##f
871   %% 'tied to' fret numbers become invisible or parenthesized, respectively)
872   \override Tie.after-line-breaking = #tie::handle-tab-note-head
873   \override RepeatTie.after-line-breaking = #repeat-tie::handle-tab-note-head
874   %% ... and all kinds of markups, spanners etc.
875   \override TupletBracket.stencil = ##f
876   \override TupletNumber.stencil = ##f
877   \override DynamicText.stencil = ##f
878   \override DynamicTextSpanner.stencil = ##f
879   \override TextSpanner.stencil = ##f
880   \override Hairpin.stencil = ##f
881   \override Script.stencil = ##f
882   \override TextScript.stencil = ##f
883   \override Glissando.stencil = #glissando::draw-tab-glissando
884   %% the direction for glissando lines will be automatically corrected
885   \override Glissando.extra-dy = #glissando::calc-tab-extra-dy
886   \override Glissando.bound-details.right = #`((attach-dir . ,LEFT)
887                                                    (padding . 0.3))
888   \override Glissando.bound-details.left = #`((attach-dir . ,RIGHT)
889                                                    (padding . 0.3))
890   %% dead notes
891   \override TabNoteHead.glyph-name = #tab-note-head::calc-glyph-name
892   \override TabNoteHead.stencil = #tab-note-head::whiteout-if-style-set
893 }
894
895 \context {
896   \Voice
897   \name "VaticanaVoice"
898   \alias "Voice"
899   \description "Same as @code{Voice} context, except that it is
900 accommodated for typesetting Gregorian Chant in the notational style
901 of Editio Vaticana."
902
903   \remove "Slur_engraver"
904   \remove "Stem_engraver"
905   \remove "Ligature_bracket_engraver"
906   \consists "Vaticana_ligature_engraver"
907   \remove "Text_spanner_engraver"
908   \consists "Episema_engraver"
909
910   %% Set default head for notes outside of \[ \].
911   \override NoteHead.style = #'vaticana.punctum
912
913   %% Put some space before and after divisiones.
914   %% FIXME: This does not seem to show any effect.
915   \override Script.padding = #0.5
916
917   %% There are no beams in Gregorian Chant notation.
918   autoBeaming = ##f
919 }
920
921 \context {
922   \Staff
923   \name "VaticanaStaff"
924   \alias "Staff"
925   \denies "Voice"
926   \accepts "VaticanaVoice"
927   \defaultchild "VaticanaVoice"
928
929   \description "Same as @code{Staff} context, except that it is
930 accommodated for typesetting Gregorian Chant in the notational style
931 of Editio Vaticana."
932
933   \remove "Time_signature_engraver"
934   \consists "Custos_engraver"
935
936   %% We can not remove Bar_engraver; otherwise clefs and custodes will
937   %% not show up any more among other line breaking issues.
938   %% Instead, we make the grob transparent.
939   \override BarLine.transparent = ##t
940
941   \override StaffSymbol.line-count = #4
942   \override StaffSymbol.thickness = #0.6
943
944   %% FIXME: unit on StaffSymbol's width should be \linewidth.
945   %% \override StaffSymbol.width = #60.0
946
947   %% Choose vaticana do clef on 3rd line as default.
948   clefGlyph = #"clefs.vaticana.do"
949   middleCPosition = #1
950   middleCClefPosition = #1
951   clefPosition = #1
952   clefTransposition = #0
953
954   %% Select vaticana style font.
955   \override KeySignature.glyph-name-alist = #alteration-vaticana-glyph-name-alist
956   \override Accidental.glyph-name-alist = #alteration-vaticana-glyph-name-alist
957   \override Custos.style = #'vaticana
958   \override Custos.neutral-position = #3
959   \override Custos.neutral-direction = #DOWN
960   \override Dots.style = #'vaticana
961 }
962
963 \context {
964   \Voice
965   \name "GregorianTranscriptionVoice"
966   \alias "Voice"
967   \consists "Episema_engraver"
968
969   %% Removing ligature bracket engraver without replacing it by some
970   %% other ligature engraver would cause a "Junking event: `LigatureEvent'"
971   %% warning for every "\[" and "\]".  Therefore, we make the grob
972   %% transparent instead.
973   \override LigatureBracket.transparent = ##t
974
975   %% Put some space before and after divisiones.
976   %% FIXME: This does not seem to show any effect.
977   \override Script.padding = #0.5
978
979   %% There are no beams in Gregorian Chant notation.
980   autoBeaming = ##f
981
982 }
983
984 \context {
985   \Staff
986   \name "GregorianTranscriptionStaff"
987   \alias "Staff"
988   \denies "Voice"
989   \accepts "GregorianTranscriptionVoice"
990   \defaultchild "GregorianTranscriptionVoice"
991
992   %% We can not remove Bar_engraver; otherwise clefs and custodes will
993   %% not show up any more among other line breaking issues.
994   %% Instead, we make the grob transparent.
995   \override BarLine.transparent = ##t
996 }
997
998 \context {
999   \Voice
1000   \name "MensuralVoice"
1001   \alias "Voice"
1002   \description "Same as @code{Voice} context, except that it is
1003 accommodated for typesetting a piece in mensural style."
1004
1005   \remove "Slur_engraver"
1006   \remove "Ligature_bracket_engraver"
1007   \consists "Mensural_ligature_engraver"
1008
1009   %% Set default head for notes outside of \[ \].
1010   \override NoteHead.style = #'mensural
1011   \override Rest.style = #'mensural
1012   \override Flag.style = #'mensural
1013
1014   %% There are no beams in mensural notation.
1015   autoBeaming = ##f
1016 }
1017
1018 \context {
1019   \Staff
1020   \name "MensuralStaff"
1021   \alias "Staff"
1022   \denies "Voice"
1023   \defaultchild "MensuralVoice"
1024   \accepts "MensuralVoice"
1025   \description "Same as @code{Staff} context, except that it is
1026 accommodated for typesetting a piece in mensural style."
1027
1028   \consists "Custos_engraver"
1029
1030   %% We can not remove Bar_engraver; otherwise clefs and custodes will
1031   %% not show up any more among other line breaking issues.
1032   %% Instead, we make the grob transparent.
1033   \override BarLine.transparent = ##t
1034
1035   \override StaffSymbol.thickness = #0.6
1036
1037   %% FIXME: unit on StaffSymbol's width should be \linewidth.
1038   %% \override StaffSymbol.width = #60.0
1039
1040   %% Choose mensural g clef on 2nd line as default.
1041   clefGlyph = #"clefs.mensural.g"
1042   middleCClefPosition = #-6
1043   middleCPosition = #-6
1044   clefPosition = #-2
1045   clefTransposition = #0
1046
1047   %% Select mensural style font.
1048   \override TimeSignature.style = #'mensural
1049   \override KeySignature.glyph-name-alist = #alteration-mensural-glyph-name-alist
1050   \override Accidental.glyph-name-alist = #alteration-mensural-glyph-name-alist
1051   \override Custos.style = #'mensural
1052   \override Custos.neutral-position = #3
1053   \override Custos.neutral-direction = #DOWN
1054
1055   %% Accidentals are valid only once (same as
1056   %% \accidentalStyle forget)
1057   extraNatural = ##f
1058   autoAccidentals = #`(Staff ,(make-accidental-rule 'same-octave -1))
1059   autoCautionaries = #'()
1060   printKeyCancellation = ##f
1061 }
1062
1063 \context {
1064   \Voice
1065   \name "PetrucciVoice"
1066   \alias "Voice"
1067   \description "Same as @code{Voice} context, except that it is
1068 accommodated for typesetting a piece in Petrucci style."
1069
1070   \remove "Ligature_bracket_engraver"
1071   \consists "Mensural_ligature_engraver"
1072
1073   %% Set glyph styles.
1074   \override NoteHead.style = #'petrucci
1075   \override Rest.style = #'mensural
1076
1077   % Thickens and shortens stems.
1078   \override Stem.thickness = #1.7
1079   \override Stem.length = #5
1080
1081   %% There are no beams in Petrucci notation.
1082   autoBeaming = ##f
1083 }
1084
1085 \context {
1086   \Staff
1087   \name "PetrucciStaff"
1088   \alias "Staff"
1089   \denies "Voice"
1090   \defaultchild "PetrucciVoice"
1091   \accepts "PetrucciVoice"
1092   \description "Same as @code{Staff} context, except that it is
1093 accommodated for typesetting a piece in Petrucci style."
1094
1095   \consists "Custos_engraver"
1096
1097   \override StaffSymbol.thickness = #1.3
1098
1099   %% Choose Petrucci g clef on 2nd line as default.
1100   clefGlyph = #"clefs.petrucci.g"
1101   middleCClefPosition = #-6
1102   middleCPosition = #-6
1103   clefPosition = #-2
1104   clefTransposition = #0
1105
1106   \override Custos.style = #'mensural
1107   \override Custos.neutral-position = #3
1108   \override Custos.neutral-direction = #DOWN
1109
1110   %% Accidentals are valid only once (if the following note is different)
1111   extraNatural = ##f
1112   autoAccidentals = #`(Staff ,(make-accidental-rule 'same-octave 0)
1113                              ,neo-modern-accidental-rule)
1114   autoCautionaries = #'()
1115   printKeyCancellation = ##f
1116 }
1117
1118 \context {
1119  \Voice
1120  \name "KievanVoice"
1121  \alias "Voice"
1122  \description "Same as @code{Voice} context, except that it is
1123 accommodated for typesetting a piece in Kievan style."
1124
1125   \remove "Ligature_bracket_engraver"
1126   \consists "Kievan_ligature_engraver"
1127
1128  %% Set glyph styles.
1129  \override NoteHead.style = #'kievan
1130  \override Stem.X-offset = #stem::kievan-offset-callback
1131  \override Stem.stencil = ##f
1132  \override Flag.stencil = ##f
1133  \override Rest.style = #'mensural
1134  \override Accidental.glyph-name-alist = #alteration-kievan-glyph-name-alist
1135  \override Dots.style = #'kievan
1136  \override Slur.stencil = ##f
1137  \override Stem.length = #0.0
1138  \override Beam.positions = #beam::get-kievan-positions
1139  \override Beam.quantized-positions = #beam::get-kievan-quantized-positions
1140  \override NoteHead.duration-log = #note-head::calc-kievan-duration-log
1141
1142  %% There are beams in Kievan notation, but they are invoked manually
1143  autoBeaming = ##f
1144 }
1145
1146 \context {
1147  \Staff
1148  \name "KievanStaff"
1149  \alias "Staff"
1150  \denies "Voice"
1151  \defaultchild "KievanVoice"
1152  \accepts "KievanVoice"
1153  \description "Same as @code{Staff} context, except that it is
1154 accommodated for typesetting a piece in Kievan style."
1155
1156  \remove "Time_signature_engraver"
1157
1158  %% Choose Kievan tsefaut clef
1159  clefGlyph = #"clefs.kievan.do"
1160  middleCClefPosition = #0
1161  middleCPosition = #0
1162  clefPosition = #0
1163  clefTransposition = #0
1164
1165  %% Accidentals are valid only once (if the following note is different)
1166  extraNatural = ##f
1167  autoAccidentals = #`(Staff ,(make-accidental-rule 'same-octave 0)
1168                             ,neo-modern-accidental-rule)
1169  autoCautionaries = #'()
1170  printKeyCancellation = ##f
1171
1172 }
1173
1174 %% Keep the old definitions in here for compatibility (they erase previous
1175 %% settings to the corresponding context!).
1176 %% For new scores, one should simply insert the \RemoveEmptyStaves settings
1177 %% into the desired context. That's just as easy, requires only one line more
1178 %% (the \*Staff), but preserves previous context mods.
1179 %% TODO: DEPRECATED_2.13.17, remove at some point in the future
1180 RemoveEmptyStaffContext = \context {
1181   \Staff
1182   \RemoveEmptyStaves
1183 }
1184
1185 AncientRemoveEmptyStaffContext = \context {
1186   \VaticanaStaff
1187   \RemoveEmptyStaves
1188 }
1189
1190 RemoveEmptyDrumStaffContext = \context {
1191   \DrumStaff
1192   \RemoveEmptyStaves
1193 }
1194
1195 RemoveEmptyRhythmicStaffContext = \context {
1196   \RhythmicStaff
1197   \RemoveEmptyStaves
1198 }
1199
1200 RemoveEmptyTabStaffContext = \context {
1201   \TabStaff
1202   \RemoveEmptyStaves
1203 }