9 \description "Hard coded entry point for LilyPond. Cannot be tuned."
10 \grobdescriptions #all-grob-descriptions
14 \type "Engraver_group"
17 \consists "Output_property_engraver"
18 \consists "Bar_engraver"
19 %% Bar_engraver must be first so default bars aren't overwritten
22 \consists "Font_size_engraver"
23 \consists "Volta_engraver"
24 \consists "Separating_line_group_engraver"
25 \consists "Dot_column_engraver"
27 %% perhaps move to Voice context?
28 \consists "Ottava_spanner_engraver"
29 \consists "Clef_engraver"
30 \consists "Key_engraver"
31 \consists "Time_signature_engraver"
32 \consists "Ledger_line_engraver"
33 \consists "Staff_symbol_engraver"
34 \consists "Collision_engraver"
35 \consists "Rest_collision_engraver"
36 \consists "Accidental_engraver"
37 \consists "Piano_pedal_engraver"
38 \consists "Instrument_name_engraver"
39 \consists "String_number_engraver"
40 \consists "Axis_group_engraver"
42 minimumVerticalExtent = #'(-4 . 4)
43 extraVerticalExtent = ##f
45 localKeySignature = #'()
48 %% explicitly set instrument, so we don't get
49 %% weird effects when doing instrument names for
59 \description "Handles clefs, bar lines, keys, accidentals. It can contain
60 @code{Voice} contexts."
66 \type "Engraver_group"
69 \remove "Accidental_engraver"
70 \remove "Ottava_spanner_engraver"
71 \remove "Key_engraver"
72 \remove "Piano_pedal_engraver"
73 \remove "String_number_engraver"
75 \description "Handles typesetting for percussion."
79 \defaultchild DrumVoice
81 clefGlyph = #"clefs.percussion"
83 \override Script #'staff-padding = #0.75
88 \type "Engraver_group"
90 \consists "System_start_delimiter_engraver"
91 systemStartDelimiter = #'SystemStartBracket
95 \accepts "RhythmicStaff"
100 \defaultchild "Staff"
107 \defaultchild "Staff"
108 \accepts "InnerChoirStaff"
109 \accepts "InnerStaffGroup"
110 \description "Identical to @code{StaffGroup} except that the
111 contained staves are not connected vertically."
117 \type "Engraver_group"
119 minimumVerticalExtent = ##f
120 extraVerticalExtent = ##f
122 localKeySignature = #'()
125 squashedPosition = #0
129 \override BarLine #'bar-size = #4
130 \override VoltaBracket #'staff-padding = #3
131 \override StaffSymbol #'line-count = #1
133 \override Stem #'neutral-direction = #UP
134 \override Beam #'neutral-direction = #UP
136 \consists "Output_property_engraver"
137 \consists "Font_size_engraver"
138 \consists "Volta_engraver"
139 \consists "Separating_line_group_engraver"
140 \consists "Dot_column_engraver"
141 \consists "Bar_engraver"
142 \consists "Ledger_line_engraver"
143 \consists "Staff_symbol_engraver"
144 \consists "Pitch_squash_engraver"
145 \consists "Time_signature_engraver"
146 \consists "Instrument_name_engraver"
147 \consists "Axis_group_engraver"
151 \defaultchild "Voice"
154 A context like @code{Staff} but for printing rhythms. Pitches are
155 ignored; the notes are printed on one line.
161 \type "Engraver_group"
165 Corresponds to a voice on a staff. This context handles the
166 conversion of dynamic signs, stems, beams, super- and subscripts,
167 slurs, ties, and rests.
169 You have to instantiate this explicitly if you want to have
170 multiple voices on the same staff."
172 localKeySignature = #'()
173 \consists "Font_size_engraver"
175 \consists "Pitched_trill_engraver"
176 \consists "Output_property_engraver"
177 \consists "Arpeggio_engraver"
178 \consists "Multi_measure_rest_engraver"
179 \consists "Text_spanner_engraver"
180 \consists "Trill_spanner_engraver"
181 \consists "Grob_pq_engraver"
182 \consists "Forbid_line_break_engraver"
183 \consists "Laissez_vibrer_engraver"
184 \consists "Note_head_line_engraver"
185 \consists "Glissando_engraver"
186 \consists "Ligature_bracket_engraver"
187 \consists "Breathing_sign_engraver"
188 %% \consists "Rest_engraver"
189 \consists "Note_heads_engraver"
190 \consists "Rest_engraver"
192 \consists "Stem_engraver"
193 \consists "Beam_engraver"
194 \consists "Grace_beam_engraver"
195 \consists "Auto_beam_engraver"
196 \consists "New_fingering_engraver"
197 \consists "Chord_tremolo_engraver"
198 \consists "Percent_repeat_engraver"
199 \consists "Slash_repeat_engraver"
200 \consists "Melisma_translator"
201 \consists "Part_combine_engraver"
203 \consists "Text_engraver"
204 \consists "Dynamic_engraver"
205 \consists "Fingering_engraver"
207 \consists "Script_engraver"
208 \consists "Script_column_engraver"
209 \consists "Rhythmic_column_engraver"
210 \consists "Phrasing_slur_engraver"
211 \consists "Cluster_spanner_engraver"
212 \consists "Slur_engraver"
213 \consists "Tie_engraver"
214 \consists "Tuplet_engraver"
215 \consists "Grace_engraver"
217 \consists "Skip_event_swallow_translator"
226 \override Stem #'length-fraction = #(magstep -4)
227 \override Beam #'length-fraction = #(magstep -4)
235 \description "A voice on a percussion staff."
236 \remove "Arpeggio_engraver"
237 \consists "Multi_measure_rest_engraver"
238 \consists "Text_spanner_engraver"
239 \consists "Grob_pq_engraver"
241 \remove "Note_head_line_engraver"
242 \remove "Glissando_engraver"
243 \remove "Ligature_bracket_engraver"
244 \remove "Note_heads_engraver"
245 \consists "Drum_notes_engraver"
246 \remove "New_fingering_engraver"
248 \remove "Fingering_engraver"
250 \remove "Cluster_spanner_engraver"
251 \consists "Tuplet_engraver"
253 \consists "Skip_event_swallow_translator"
257 \type "Engraver_group"
259 localKeySignature = #'()
261 \description " A group of staffs, with a brace on the left
262 side, grouping the staves together. The bar lines of the
263 contained staves are connected vertically. "
265 \consists "Span_bar_engraver"
266 \consists "Span_arpeggio_engraver"
267 \consists "System_start_delimiter_engraver"
268 systemStartDelimiter = #'SystemStartBrace
279 "Just like @code{GrandStaff} but with a forced distance between
280 the staves, so cross staff beaming and slurring can be used."
282 \override VerticalAlignment #'forced-distance = #12
283 \override VerticalAlignment #'self-alignment-Y = #0
285 \consists "Vertical_align_engraver"
286 \consists "Instrument_name_engraver"
293 \type "Engraver_group"
294 \name InnerStaffGroup
296 \consists "Span_bar_engraver"
297 \consists "Span_arpeggio_engraver"
298 \consists "Output_property_engraver"
299 systemStartDelimiter = #'SystemStartBracket
301 \consists "System_start_delimiter_engraver"
303 \defaultchild "Staff"
305 \accepts "RhythmicStaff"
307 \accepts "GrandStaff"
308 \accepts "PianoStaff"
311 \accepts "ChordNames"
320 "Groups staffs while adding a bracket on the left side, grouping
321 the staves together. The bar lines of the contained staves are
322 connected vertically. "
324 \accepts "InnerChoirStaff"
325 \accepts "ChoirStaff"
326 \accepts "InnerStaffGroup"
327 \accepts "FiguredBass"
332 \type "Engraver_group"
333 minimumVerticalExtent = #'(-1.2 . 2.4)
334 extraVerticalExtent = ##f
337 \description " Corresponds to a voice with lyrics. Handles the
338 printing of a single line of lyrics. "
341 \consists "Separating_line_group_engraver"
342 \consists "Lyric_engraver"
343 \consists "Extender_engraver"
344 \consists "Hyphen_engraver"
345 \consists "Stanza_number_engraver"
346 \consists "Vocal_name_engraver"
347 \consists "Skip_event_swallow_translator"
348 \consists "Font_size_engraver"
349 \consists "Hara_kiri_engraver"
350 \override RemoveEmptyVerticalGroup #'remove-first = ##t
351 \override SeparationItem #'padding = #0.2
355 \type "Engraver_group"
357 \consists "Axis_group_engraver"
359 minimumVerticalExtent = ##f
360 extraVerticalExtent = ##f
364 \consists "Rest_swallow_translator"
365 \consists "Skip_event_swallow_translator"
366 \consists "Tie_engraver"
367 \consists "Note_name_engraver"
368 \consists "Separating_line_group_engraver"
372 \type "Engraver_group"
374 \description "Typesets chord names."
376 \consists "Volta_engraver"
378 \consists "Rest_swallow_translator"
379 \consists "Output_property_engraver"
380 \consists "Separating_line_group_engraver"
381 \consists "Chord_name_engraver"
382 \consists "Skip_event_swallow_translator"
383 \consists "Hara_kiri_engraver"
385 voltaOnThisStaff = ##f
386 minimumVerticalExtent = #'(0 . 2.5)
387 extraVerticalExtent = ##f
388 \override SeparatingGroupSpanner #'padding = #0.8
389 \override RemoveEmptyVerticalGroup #'remove-first = ##t
394 RemoveEmptyStaffContext= \context {
396 \remove "Axis_group_engraver"
397 \consists "Hara_kiri_engraver"
398 \override Beam #'auto-knee-gap = #'()
401 AncientRemoveEmptyStaffContext = \context {
402 %% why not add by default?
404 \RemoveEmptyStaffContext
405 \accepts "VaticanaVoice"
406 \accepts "GregorianTranscriptionVoice"
407 \accepts "MensuralVoice"
414 \description "This is the top level notation context. No
415 other context can contain a @code{Score} context. This context
416 handles the administration of time signatures. It also makes sure
417 that items such as clefs, time signatures, and key-signatures are
418 aligned across staves.
420 You cannot explicitly instantiate a Score context (since it is
421 not contained in any other context). It is instantiated
422 automatically when an output definition (a @code{\score} or
423 @code{\layout} block) is processed."
426 \consists "Paper_column_engraver"
427 \consists "Vertically_spaced_contexts_engraver"
428 \consists "Repeat_acknowledge_engraver"
429 \consists "Staff_collecting_engraver"
431 %% move the alias along with the engraver.
433 \consists "Timing_translator"
434 \consists "Default_bar_line_engraver"
435 \consists "Output_property_engraver"
436 \consists "System_start_delimiter_engraver"
437 \consists "Mark_engraver"
438 \consists "Metronome_mark_engraver"
439 \consists "Break_align_engraver"
440 \consists "Spacing_engraver"
441 \consists "Vertical_align_engraver"
442 \consists "Stanza_number_align_engraver"
443 \consists "Bar_number_engraver"
444 \consists "Span_arpeggio_engraver"
446 \defaultchild "Staff"
448 \accepts "RhythmicStaff"
450 \accepts "VaticanaStaff"
451 \accepts "GregorianTranscriptionStaff"
452 \accepts "MensuralStaff"
453 \accepts "StaffGroup"
456 \accepts "ChordNames"
457 \accepts "GrandStaff"
458 \accepts "ChoirStaff"
459 \accepts "PianoStaff"
462 \accepts "FiguredBass"
465 soloIIText = #"Solo II"
467 printPartCombineTexts = ##t
468 systemStartDelimiter =#'SystemStartBar
470 drumStyleTable = #drums-style
472 melismaBusyProperties = #default-melisma-properties
474 clefGlyph = #"clefs.G"
476 middleCPosition = #-6
479 defaultBarType = #"|"
480 barNumberVisibility = #first-bar-number-invisible
483 explicitClefVisibility = #all-visible
484 explicitKeySignatureVisibility = #all-visible
485 autoBeamSettings = #default-auto-beam-settings
487 autoBeamCheck = #default-auto-beam-check
488 scriptDefinitions = #default-script-alist
490 pedalSustainStrings = #'("Ped." "*Ped." "*")
491 pedalSustainStyle = #'text
492 pedalUnaCordaStrings = #'("una corda" "" "tre corde")
493 pedalUnaCordaStyle = #'text
495 %% These are in ordinary italic font, including the *,
496 %% but they are unlikely to be used,
497 %% as the default pedal-style for SostenutoPedal is 'mixed':
498 %% i.e. Sost. Ped_____________________
499 pedalSostenutoStrings = #'("Sost. Ped." "*Sost. Ped." "*")
500 pedalSostenutoStyle = #'mixed
503 harmonicAccidentals = ##t
504 fingeringOrientations = #'(up down)
505 stringNumberOrientations = #'(up down)
506 tupletNumberFormatFunction = #denominator-tuplet-formatter
507 markFormatter = #format-mark-letters
512 autoAccidentals = #'(Staff (same-octave . 0))
513 autoCautionaries = #'()
515 printKeyCancellation = ##t
516 keyAlterationOrder = #`(
517 (6 . ,FLAT) (2 . ,FLAT) (5 . ,FLAT ) (1 . ,FLAT) (4 . ,FLAT) (0 . ,FLAT) (3 . ,FLAT)
518 (3 . ,SHARP) (0 . ,SHARP) (4 . ,SHARP) (1 . ,SHARP) (5 . ,SHARP) (2 . ,SHARP) (6 . ,SHARP)
519 (6 . ,DOUBLE-FLAT) (2 . ,DOUBLE-FLAT) (5 . ,DOUBLE-FLAT ) (1 . ,DOUBLE-FLAT) (4 . ,DOUBLE-FLAT) (0 . ,DOUBLE-FLAT) (3 . ,DOUBLE-FLAT)
520 (3 . ,DOUBLE-SHARP) (0 . ,DOUBLE-SHARP) (4 . ,DOUBLE-SHARP) (2 . ,DOUBLE-SHARP) (5 . ,DOUBLE-SHARP) (2 . ,DOUBLE-SHARP) (6 . ,DOUBLE-SHARP)
523 barCheckSynchronize = ##f
526 chordNameFunction = #ignatzek-chord-names
527 majorSevenSymbol = #whiteTriangleMarkup
528 chordNameSeparator = #(make-simple-markup "/")
529 chordNameExceptions = #ignatzekExceptions
530 chordNoteNamer = #'()
531 chordRootNamer = #note-name->markup
532 chordPrefixSpacer = #0
533 chordNameExceptionsFull = #fullJazzExceptions
534 chordNameExceptionsPartial = #partialJazzExceptions
537 bassStaffProperties = #'((assign clefGlyph "clefs.F")
538 (assign clefPosition 2)
539 (assign middleCPosition 6))
541 stringOneTopmost = ##t
544 %% One may change the strings tuning as following :
545 %% The lenght of the list must be equal to the number of string
546 stringTunings = #guitar-tuning
547 tablatureFormat = #fret-number-tablature-format
550 newFiguredBassFormatter = #format-new-bass-figure
551 metronomeMarkFormatter = #format-metronome-markup
553 (Voice Stem direction 1)
554 (Voice Stem font-size -3)
555 (Voice NoteHead font-size -3)
556 (Voice Dots font-size -3)
557 (Voice Stem length-fraction 0.8)
558 (Voice Stem no-stem-extend #t)
559 (Voice Beam thickness 0.384)
560 (Voice Beam length-fraction 0.8)
561 (Voice Accidental font-size -4)
562 (Voice Slur direction -1)
565 keepAliveInterfaces = #'(rhythmic-grob-interface lyric-interface percent-repeat-interface)
566 quotedEventTypes = #'(note-event rest-event time-scaled-music tie-event)
567 instrumentTransposition = #(ly:make-pitch 0 0 0)
569 verticallySpacedContexts = #'(Staff)
578 \type "Engraver_group"
581 %% \consists "Figured_bass_engraver"
582 \consists "New_figured_bass_engraver"
583 \consists "Note_swallow_translator"
584 \consists "Skip_event_swallow_translator"
585 \consists "Separating_line_group_engraver"
586 \consists "Hara_kiri_engraver"
587 \override RemoveEmptyVerticalGroup #'remove-first = ##t
588 minimumVerticalExtent = #'(-0.5 . 2.5)
593 \type "Engraver_group"
595 %% don't want to route anything out of here:
598 \consists "Swallow_engraver"
599 \description "Silently discards all musical information given to this context. "
606 \consists "Tab_note_heads_engraver"
607 \remove "Note_heads_engraver"
608 \remove "Fingering_engraver"
609 \remove "New_fingering_engraver"
611 \description "Context for drawing notes in a Tab staff. "
613 %% Draws all stems/beams out of the staff (and not in the middle of the staff !)
614 %% This feature is now disabled because most of the tab does not use it.
615 %%\override Beam #'damping = #100000
616 %%\override Stem #'up-to-staff = ##t
618 %% TabStaff increase the staff-space, which in turn
619 %% increases beam thickness and spacing; beams are
620 %% too big. We have to adjust the beam settings:
621 \override Beam #'thickness = #0.32
622 \override Beam #'length-fraction = #0.62
624 %% No accidental in tablature !
625 \remove Accidental_engraver
633 \remove "Staff_symbol_engraver"
634 \consists "Tab_staff_symbol_engraver"
636 \description "Context for generating tablature. [DOCME]"
639 \defaultchild "TabVoice"
642 \override StaffSymbol #'staff-space = #1.5
644 %% Don't draw stems over the tablature figures !
645 \override Stem #'avoid-note-head = ##t
647 %% No accidental in tablature !
648 \remove "Accidental_engraver"
649 \remove "Key_engraver"
650 \remove "String_number_engraver"
651 %% Special "TAB" clef
652 clefGlyph = #"clefs.tab"
656 %% TODO: Gregorian Chant contexts should be moved to gregorian-init.ly,
657 %% but this does not work (is this a bug or intended behaviour?):
659 %% If I try to do so, I get "error: unknown escaped string:
660 %% `\VaticanaStaff'" in params-init.ly. If I also move
661 %% "\context { \Vaticana*Context }" from params-init.ly to the end
662 %% of gregorian-init.ly, then I get "error: parse error, unexpected
663 %% TRANSLATOR: \context { \VaticanaStaff }" in
664 %% gregorian-init.ly. --jr
668 \name "VaticanaVoice"
670 \description "Same as @code{Voice} context, except that it is accommodated for tyepsetting Gregorian Chant in the notational style of Editio Vaticana."
672 \remove "Slur_engraver"
673 \remove "Stem_engraver"
674 \remove "Ligature_bracket_engraver"
675 \consists "Vaticana_ligature_engraver"
677 %% Set default head for notes outside of \[ \].
678 \override NoteHead #'style = #'vaticana.punctum
680 %% Put some space before and after divisiones.
681 %% FIXME: This does not seem to show any effect.
682 \override Script #'padding = #0.5
684 %% There are no beams in Gregorian Chant notation.
687 %% Prepare TextSpanner for \episem{Initium|Finis} use.
689 %% N.B.: dash-fraction MUST be unset; otherwise, TextSpanner will
690 %% always produce dashed lines, regardless of the style property.
692 %% FIXME: The line @code{\override TextSpanner #'padding = #-0.1} is
693 %% required to force the articulation signs being placed vertically
694 %% tightly to the correpsonding note heads.
696 \override TextSpanner #'dash-fraction = #'()
697 \override TextSpanner #'style = #'line
698 \override TextSpanner #'edge-height = #'(0 . 0)
699 \override TextSpanner #'padding = #-0.1
700 \override TextSpanner #'enclose-bounds = #1
701 \override TextSpanner #'edge-text = #'("" . "")
704 %% FIXME: need something like
705 %% \remove "Bar_number_engraver" (which lives on score level)
706 %% for vaticana and gregorian transcription staves
710 \name "VaticanaStaff"
713 \accepts "VaticanaVoice"
714 \defaultchild "VaticanaVoice"
716 \description "Same as @code{Staff} context, except that it is accommodated for tyepsetting Gregorian Chant in the notational style of Editio Vaticana."
718 \remove "Time_signature_engraver"
719 \consists "Custos_engraver"
721 %% We can not remove Bar_engraver; otherwise clefs and custodes will
722 %% not show up any more among other line breaking issues.
723 %% Instead, we make the grob transparent.
724 \override BarLine #'transparent = ##t
726 \override StaffSymbol #'line-count = #4
727 \override StaffSymbol #'thickness = #0.6
729 %% FIXME: unit on StaffSymbol's width should be \linewidth.
730 %% \override StaffSymbol #'width = #60.0
732 %% Choose vaticana do clef on 3rd line as default.
733 clefGlyph = #"clefs.vaticana.do"
738 %% Select vaticana style font.
739 \override KeySignature #'style = #'vaticana
740 \override Accidental #'style = #'vaticana
741 \override Custos #'style = #'vaticana
742 \override Custos #'neutral-position = #3
743 \override Custos #'neutral-direction = #DOWN
745 %% Score.timing = ##f
746 %% Score.barAlways = ##t
751 \name "GregorianTranscriptionVoice"
754 %% Removing ligature bracket engraver without replacing it by some
755 %% other ligature engraver would cause a "Junking event: `LigatureEvent'"
756 %% warning for every "\[" and "\]". Therefore, we make the grob
757 %% transparent instead.
758 \override LigatureBracket #'transparent = ##t
760 %% Put some space before and after divisiones.
761 %% FIXME: This does not seem to show any effect.
762 \override Script #'padding = #0.5
764 %% There are no beams in Gregorian Chant notation.
767 %% Prepare TextSpanner for \episem{Initium|Finis} use.
769 %% N.B.: dash-fraction MUST be unset; otherwise, TextSpanner will
770 %% always produce dashed lines, regardless of the style property.
772 %% FIXME: The line @code{\override TextSpanner #'padding = #-0.1} is
773 %% required to force the articulation signs being placed vertically
774 %% tightly to the correpsonding note heads.
776 \override TextSpanner #'dash-fraction = #'()
777 \override TextSpanner #'style = #'line
778 \override TextSpanner #'edge-height = #'(0 . 0)
779 \override TextSpanner #'padding = #-0.1
780 \override TextSpanner #'enclose-bounds = #1
781 \override TextSpanner #'edge-text = #'("" . "")
786 \name "GregorianTranscriptionStaff"
789 \accepts "GregorianTranscriptionVoice"
790 \defaultchild "GregorianTranscriptionVoice"
792 %% We can not remove Bar_engraver; otherwise clefs and custodes will
793 %% not show up any more among other line breaking issues.
794 %% Instead, we make the grob transparent.
795 \override BarLine #'transparent = ##t
800 \name "MensuralVoice"
802 \description "Same as @code{Voice} context, except that it is accommodated for tyepsetting a piece in mensural style."
804 \remove "Slur_engraver"
805 \remove "Ligature_bracket_engraver"
806 \consists "Mensural_ligature_engraver"
808 %% Set default head for notes outside of \[ \].
809 \override NoteHead #'style = #'petrucci
811 %% There are no beams in mensural notation.
817 \name "MensuralStaff"
820 \defaultchild "MensuralVoice"
821 \accepts "MensuralVoice"
822 \description "Same as @code{Staff} context, except that it is accommodated for tyepsetting a piece in mensural style."
824 \consists "Custos_engraver"
826 %% We can not remove Bar_engraver; otherwise clefs and custodes will
827 %% not show up any more among other line breaking issues.
828 %% Instead, we make the grob transparent.
829 \override BarLine #'transparent = ##t
831 \override StaffSymbol #'thickness = #0.6
833 %% FIXME: unit on StaffSymbol's width should be \linewidth.
834 %% \override StaffSymbol #'width = #60.0
836 %% Choose petrucci g clef on 2nd line as default.
837 clefGlyph = #"clefs.petrucci.g"
838 middleCPosition = #-6
842 %% Select mensural style font.
843 \override TimeSignature #'style = #'mensural
844 \override KeySignature #'style = #'mensural
845 \override Accidental #'style = #'mensural
846 \override Custos #'style = #'mensural
847 \override Custos #'neutral-position = #3
848 \override Custos #'neutral-direction = #DOWN
850 %% Score.timing = ##f
851 %% Score.barAlways = ##t
855 RemoveEmptyRhythmicStaffContext= \context {
857 \remove "Axis_group_engraver"
858 \consists "Hara_kiri_engraver"