7 \description "Hard coded entry point for LilyPond. Cannot be tuned."
8 \grobdescriptions #all-grob-descriptions
12 \type "Engraver_group_engraver"
15 \consists "Output_property_engraver"
16 \consists "Bar_engraver"
17 %% Bar_engraver must be first so default bars aren't overwritten
20 \consists "Font_size_engraver"
21 \consists "Volta_engraver"
22 \consists "Separating_line_group_engraver"
23 \consists "Dot_column_engraver"
25 %% perhaps move to Voice context?
26 \consists "Ottava_spanner_engraver"
27 \consists "Clef_engraver"
28 \consists "Key_engraver"
29 \consists "Time_signature_engraver"
30 \consists "Ledger_line_engraver"
31 \consists "Staff_symbol_engraver"
32 \consists "Collision_engraver"
33 \consists "Rest_collision_engraver"
34 \consists "Accidental_engraver"
35 \consists "Piano_pedal_engraver"
36 \consists "Instrument_name_engraver"
37 \consists "String_number_engraver"
38 \consists "Axis_group_engraver"
40 minimumVerticalExtent = #'(-4 . 4)
41 extraVerticalExtent = ##f
43 localKeySignature = #'()
46 %% explicitly set instrument, so we don't get
47 %% weird effects when doing instrument names for
56 \description "Handles clefs, bar lines, keys, accidentals. It can contain
57 @code{Voice} contexts."
63 \type "Engraver_group_engraver"
67 \remove "Accidental_engraver"
68 \remove "Ottava_spanner_engraver"
69 \remove "Key_engraver"
70 \remove "Piano_pedal_engraver"
71 \remove "String_number_engraver"
73 \description "Handles typesetting for percussion."
78 clefGlyph = #"clefs.percussion"
80 \override Script #'staff-padding = #0.75
85 \type "Engraver_group_engraver"
87 \consists "System_start_delimiter_engraver"
88 systemStartDelimiter = #'SystemStartBracket
92 \accepts "RhythmicStaff"
103 \accepts "InnerChoirStaff"
104 \accepts "InnerStaffGroup"
105 \description "Identical to @code{StaffGroup} except that the
106 contained staves are not connected vertically."
112 \type "Engraver_group_engraver"
114 \consists "Output_property_engraver"
116 minimumVerticalExtent = ##f
117 extraVerticalExtent = ##f
119 localKeySignature = #'()
121 \consists "Pitch_squash_engraver"
122 squashedPosition = #0
123 \consists "Separating_line_group_engraver"
127 \override BarLine #'bar-size = #4
128 \override VoltaBracket #'minimum-space = #15
129 \override VoltaBracket #'padding = #5
130 \override StaffSymbol #'line-count = #1
132 \override Stem #'neutral-direction = #1
133 \override Beam #'neutral-direction = #1
134 %% \consists "Repeat_engraver"
135 \consists "Dot_column_engraver"
136 \consists "Volta_engraver"
137 \consists "Bar_engraver"
138 \consists "Time_signature_engraver"
139 \consists "Staff_symbol_engraver"
140 \consists "Ledger_line_engraver"
141 \consists "Instrument_name_engraver"
142 \consists "Axis_group_engraver"
146 A context like @code{Staff} but for printing rhythms. Pitches are
147 ignored; the notes are printed on one line.
153 \type "Engraver_group_engraver"
157 Corresponds to a voice on a staff. This context handles the
158 conversion of dynamic signs, stems, beams, super- and subscripts,
159 slurs, ties, and rests.
161 You have to instantiate this explicitly if you want to have
162 multiple voices on the same staff."
164 localKeySignature = #'()
165 \consists "Font_size_engraver"
167 \consists "Output_property_engraver"
168 \consists "Arpeggio_engraver"
169 \consists "Multi_measure_rest_engraver"
170 \consists "Text_spanner_engraver"
171 \consists "Trill_spanner_engraver"
172 \consists "Grob_pq_engraver"
173 \consists "Forbid_line_break_engraver"
175 \consists "Note_head_line_engraver"
176 \consists "Glissando_engraver"
177 \consists "Ligature_bracket_engraver"
178 \consists "Breathing_sign_engraver"
179 %% \consists "Rest_engraver"
180 \consists "Note_heads_engraver"
181 \consists "Rest_engraver"
183 \consists "Stem_engraver"
184 \consists "Beam_engraver"
185 \consists "Grace_beam_engraver"
186 \consists "Auto_beam_engraver"
187 \consists "New_fingering_engraver"
188 \consists "Chord_tremolo_engraver"
189 \consists "Percent_repeat_engraver"
190 \consists "Slash_repeat_engraver"
191 \consists "Melisma_translator"
192 \consists "Part_combine_engraver"
194 \consists "Text_engraver"
195 \consists "Dynamic_engraver"
196 \consists "Fingering_engraver"
198 \consists "Script_engraver"
199 \consists "Script_column_engraver"
200 \consists "Rhythmic_column_engraver"
201 \consists "Phrasing_slur_engraver"
202 \consists "Cluster_spanner_engraver"
203 \consists "Slur_engraver"
204 \consists "Tie_engraver"
205 \consists "Tuplet_engraver"
206 \consists "Grace_engraver"
208 \consists "Skip_event_swallow_translator"
217 \override Stem #'lengths = #'(2.5 2.5 3.0 3.0)
225 \description "A voice on a percussion staff."
226 \remove "Arpeggio_engraver"
227 \consists "Multi_measure_rest_engraver"
228 \consists "Text_spanner_engraver"
229 \consists "Grob_pq_engraver"
231 \remove "Note_head_line_engraver"
232 \remove "Glissando_engraver"
233 \remove "Ligature_bracket_engraver"
234 \remove "Note_heads_engraver"
235 \consists "Rest_engraver"
236 \consists "Drum_notes_engraver"
237 \remove "New_fingering_engraver"
239 \remove "Fingering_engraver"
241 \remove "Cluster_spanner_engraver"
242 \consists "Tuplet_engraver"
244 \consists "Skip_event_swallow_translator"
248 \type "Engraver_group_engraver"
250 localKeySignature = #'()
252 \description " A group of staffs, with a brace on the left
253 side, grouping the staves together. The bar lines of the
254 contained staves are connected vertically. "
256 \consists "Span_bar_engraver"
257 \consists "Span_arpeggio_engraver"
258 \consists "System_start_delimiter_engraver"
259 systemStartDelimiter = #'SystemStartBrace
270 "Just like @code{GrandStaff} but with a forced distance between
271 the staves, so cross staff beaming and slurring can be used."
273 verticalAlignmentChildCallback = #Align_interface::fixed_distance_alignment_callback
274 \override VerticalAlignment #'forced-distance = #12
275 \override VerticalAlignment #'self-alignment-Y = #0
277 \consists "Vertical_align_engraver"
278 \consists "Instrument_name_engraver"
285 \type "Engraver_group_engraver"
286 \name InnerStaffGroup
288 \consists "Span_bar_engraver"
289 \consists "Span_arpeggio_engraver"
290 \consists "Output_property_engraver"
291 systemStartDelimiter = #'SystemStartBracket
293 \consists "System_start_delimiter_engraver"
295 \accepts "RhythmicStaff"
297 \accepts "GrandStaff"
298 \accepts "PianoStaff"
301 \accepts "ChordNames"
310 "Groups staffs while adding a bracket on the left side, grouping
311 the staves together. The bar lines of the contained staves are
312 connected vertically. "
314 \accepts "InnerChoirStaff"
315 \accepts "ChoirStaff"
316 \accepts "InnerStaffGroup"
317 \accepts "FiguredBass"
322 \type "Engraver_group_engraver"
323 minimumVerticalExtent = #'(-1.2 . 2.4)
324 extraVerticalExtent = ##f
327 \description " Corresponds to a voice with lyrics. Handles the
328 printing of a single line of lyrics. "
331 \consists "Separating_line_group_engraver"
332 \consists "Lyric_engraver"
333 \consists "Extender_engraver"
334 \consists "Hyphen_engraver"
335 \consists "Stanza_number_engraver"
336 \consists "Vocal_name_engraver"
337 \consists "Skip_event_swallow_translator"
338 \consists "Font_size_engraver"
339 \consists "Hara_kiri_engraver"
340 \override SeparationItem #'padding = #0.2
344 \type "Engraver_group_engraver"
346 \consists "Axis_group_engraver"
348 minimumVerticalExtent = ##f
349 extraVerticalExtent = ##f
353 \consists "Rest_swallow_translator"
354 \consists "Skip_event_swallow_translator"
355 \consists "Tie_engraver"
356 \consists "Note_name_engraver"
357 \consists "Separating_line_group_engraver"
361 \type "Engraver_group_engraver"
363 \description "Typesets chord names."
365 \consists "Volta_engraver"
367 \consists "Rest_swallow_translator"
368 \consists "Output_property_engraver"
369 \consists "Separating_line_group_engraver"
370 \consists "Chord_name_engraver"
371 \consists "Skip_event_swallow_translator"
372 \consists "Hara_kiri_engraver"
374 voltaOnThisStaff = ##f
375 minimumVerticalExtent = #'(0 . 2.5)
376 extraVerticalExtent = ##f
377 \override SeparatingGroupSpanner #'padding = #0.8
382 RemoveEmptyStaffContext= \context {
384 \remove "Axis_group_engraver"
385 \consists "Hara_kiri_engraver"
386 \override Beam #'auto-knee-gap = #'()
389 AncientRemoveEmptyStaffContext = \context {
390 %% why not add by default?
392 \RemoveEmptyStaffContext
393 \accepts "VaticanaVoice"
394 \accepts "GregorianTranscriptionVoice"
395 \accepts "MensuralVoice"
402 \description "This is the top level notation context. No
403 other context can contain a @code{Score} context. This context
404 handles the administration of time signatures. It also makes sure
405 that items such as clefs, time signatures, and key-signatures are
406 aligned across staves.
408 You cannot explicitly instantiate a Score context (since it is
409 not contained in any other context). It is instantiated
410 automatically when an output definition (a @code{\score} or
411 @code{\layout} block) is processed."
413 \consists "Repeat_acknowledge_engraver"
414 \consists "Staff_collecting_engraver"
416 %% move the alias along with the engraver.
418 \consists "Timing_engraver"
420 \consists "Output_property_engraver"
421 \consists "System_start_delimiter_engraver"
422 \consists "Mark_engraver"
423 \consists "Metronome_mark_engraver"
424 \consists "Break_align_engraver"
425 \consists "Spacing_engraver"
426 \consists "Vertical_align_engraver"
427 \consists "Stanza_number_align_engraver"
428 \consists "Bar_number_engraver"
429 \consists "Span_arpeggio_engraver"
433 \accepts "VaticanaStaff"
434 \accepts "GregorianTranscriptionStaff"
435 \accepts "MensuralStaff"
436 \accepts "StaffGroup"
437 \accepts "RhythmicStaff"
440 \accepts "ChordNames"
441 \accepts "GrandStaff"
442 \accepts "ChoirStaff"
443 \accepts "PianoStaff"
446 \accepts "FiguredBass"
449 soloIIText = #"Solo II"
451 printPartCombineTexts = ##t
452 systemStartDelimiter =#'SystemStartBar
454 drumStyleTable = #drums-style
456 melismaBusyProperties = #default-melisma-properties
458 clefGlyph = #"clefs.G"
460 middleCPosition = #-6
462 defaultBarType = #"|"
463 barNumberVisibility = #default-bar-number-visibility
466 explicitClefVisibility = #all-visible
467 explicitKeySignatureVisibility = #all-visible
468 autoBeamSettings = #default-auto-beam-settings
470 scriptDefinitions = #default-script-alist
472 verticalAlignmentChildCallback = #Align_interface::alignment_callback
474 pedalSustainStrings = #'("Ped." "*Ped." "*")
475 pedalSustainStyle = #'text
476 pedalUnaCordaStrings = #'("una corda" "" "tre corde")
477 pedalUnaCordaStyle = #'text
479 %% These are in ordinary italic font, including the *,
480 %% but they are unlikely to be used,
481 %% as the default pedal-style for SostenutoPedal is 'mixed':
482 %% i.e. Sost. Ped_____________________
483 pedalSostenutoStrings = #'("Sost. Ped." "*Sost. Ped." "*")
484 pedalSostenutoStyle = #'mixed
487 harmonicAccidentals = ##t
488 fingeringOrientations = #'(up down)
489 stringNumberOrientations = #'(up down)
490 tupletNumberFormatFunction = #denominator-tuplet-formatter
491 markFormatter = #format-mark-letters
496 autoAccidentals = #'(Staff (same-octave . 0))
497 autoCautionaries = #'()
499 printKeyCancellation = ##t
500 keyAccidentalOrder = #`(
501 (6 . ,FLAT) (2 . ,FLAT) (5 . ,FLAT ) (1 . ,FLAT) (4 . ,FLAT) (0 . ,FLAT) (3 . ,FLAT)
502 (3 . ,SHARP) (0 . ,SHARP) (4 . ,SHARP) (1 . ,SHARP) (5 . ,SHARP) (2 . ,SHARP) (6 . ,SHARP)
503 (6 . ,DOUBLE-FLAT) (2 . ,DOUBLE-FLAT) (5 . ,DOUBLE-FLAT ) (1 . ,DOUBLE-FLAT) (4 . ,DOUBLE-FLAT) (0 . ,DOUBLE-FLAT) (3 . ,DOUBLE-FLAT)
504 (3 . ,DOUBLE-SHARP) (0 . ,DOUBLE-SHARP) (4 . ,DOUBLE-SHARP) (2 . ,DOUBLE-SHARP) (5 . ,DOUBLE-SHARP) (2 . ,DOUBLE-SHARP) (6 . ,DOUBLE-SHARP)
507 barCheckSynchronize = ##f
510 chordNameFunction = #ignatzek-chord-names
511 majorSevenSymbol = #whiteTriangleMarkup
512 chordNameSeparator = #(make-simple-markup "/")
513 chordNameExceptions = #ignatzekExceptions
514 chordNoteNamer = #'()
515 chordRootNamer = #note-name->markup
516 chordPrefixSpacer = #0
517 chordNameExceptionsFull = #fullJazzExceptions
518 chordNameExceptionsPartial = #partialJazzExceptions
521 bassStaffProperties = #'((assign clefGlyph "clefs.F")
522 (assign clefPosition 2)
523 (assign middleCPosition 6))
525 stringOneTopmost = ##t
528 %% One may change the strings tuning as following :
529 %% The lenght of the list must be equal to the number of string
530 stringTunings = #guitar-tuning
531 tablatureFormat = #fret-number-tablature-format
534 bassFigureFormatFunction = #format-bass-figure
535 metronomeMarkFormatter = #format-metronome-markup
537 (Voice Stem direction 1)
538 ;; TODO: should take from existing definition.
539 ;; c&p from define-grobs.scm
541 (Voice Stem lengths ,(map (lambda (x) (* 0.8 x)) '(3.5 3.5 3.5 4.5 5.0)))
542 (Voice Stem stem-shorten (0.4 0.4))
543 (Voice Stem font-size -3)
544 (Voice NoteHead font-size -3)
545 (Voice Dots font-size -3)
546 (Voice Stem beamed-lengths
547 ,(map (lambda (x) (* 0.8 x)) '(3.3 3.3 4.0)))
548 (Voice Stem beamed-minimum-free-lengths
549 ,(map (lambda (x) (* 0.8 x)) '(2.5 2.0 1.5)))
550 (Voice Stem beamed-extreme-minimum-free-lengths
551 ,(map (lambda (x) (* 0.8 x)) '(1.83 1.5)))
553 (Voice Stem no-stem-extend #t)
554 (Voice Beam thickness 0.384)
555 (Voice Beam space-function ,(lambda (beam mult)
556 (* 0.8 (Beam::space_function
558 (Voice Accidental font-size -4)
559 (Voice Slur direction -1)
562 keepAliveInterfaces = #'(rhythmic-grob-interface lyric-interface percent-repeat-interface)
563 quotedEventTypes = #'(note-event rest-event time-scaled-music tie-event)
564 instrumentTransposition = #(ly:make-pitch 0 0 0)
566 verticallySpacedContexts = #'(Staff)
569 EasyNotation = \context { %% TODO: why \context override?
571 \override NoteHead #'print-function = #Note_head::brew_ez_stencil
572 \override NoteHead #'Y-extent-callback = #'()
573 \override NoteHead #'X-extent-callback = #'()
579 \type "Engraver_group_engraver"
581 \consists "Figured_bass_engraver"
582 \consists "Rest_swallow_translator"
583 \consists "Note_swallow_translator"
584 \consists "Skip_event_swallow_translator"
585 \consists "Separating_line_group_engraver"
587 \consists "Hara_kiri_engraver"
592 \type "Engraver_group_engraver"
594 %% don't want to route anything out of here:
597 \consists "Swallow_engraver"
598 \description "Silently discards all musical information given to this context. "
604 \consists "Tab_note_heads_engraver"
605 \remove "Note_heads_engraver"
606 \remove "Fingering_engraver"
607 \remove "New_fingering_engraver"
609 \description "Context for drawing notes in a Tab staff. "
610 \override Slur #'font-family = #'roman
611 \override Slur #'print-function = #hammer-print-function
612 \override Slur #'direction = #-1
614 %% Draws all stems/beams out of the staff (and not in the middle of the staff !)
615 %% This feature is now disabled because most of the tab does not use it.
616 %%\override Beam #'damping = #100000
617 %%\override Stem #'up-to-staff = ##t
619 %% TabStaff increase the staff-space, which in turn
620 %% increases beam thickness and spacing; beams are
621 %% too big. We have to adjust the beam settings:
622 \override Beam #'thickness = #0.32
623 \override Beam #'space-function =
624 #(lambda (beam mult) (* 0.62 (Beam::space_function beam mult)))
626 %% No accidental in tablature !
627 \remove Accidental_engraver
635 \remove "Staff_symbol_engraver"
636 \consists "Tab_staff_symbol_engraver"
638 \description "Context for generating tablature. [DOCME]"
643 \override StaffSymbol #'staff-space = #1.5
645 %% Don't draw stems over the tablature figures !
646 \override Stem #'avoid-note-head = ##t
648 %% No accidental in tablature !
649 \remove "Accidental_engraver"
650 \remove "Key_engraver"
651 \remove "String_number_engraver"
652 %% Special "TAB" clef
653 clefGlyph = #"clefs.tab"
657 %% TODO: Gregorian Chant contexts should be moved to gregorian-init.ly,
658 %% but this does not work (is this a bug or intended behaviour?):
660 %% If I try to do so, I get "error: unknown escaped string:
661 %% `\VaticanaStaff'" in params-init.ly. If I also move
662 %% "\context { \Vaticana*Context }" from params-init.ly to the end
663 %% of gregorian-init.ly, then I get "error: parse error, unexpected
664 %% TRANSLATOR: \context { \VaticanaStaff }" in
665 %% gregorian-init.ly. --jr
669 \name "VaticanaVoice"
671 \description "Same as @code{Voice} context, except that it is accommodated for tyepsetting Gregorian Chant in the notational style of Editio Vaticana."
673 \remove "Slur_engraver"
674 \remove "Stem_engraver"
675 \remove "Ligature_bracket_engraver"
676 \consists "Vaticana_ligature_engraver"
678 %% Set default head for notes outside of \[ \].
679 \override NoteHead #'style = #'vaticana.punctum
681 %% Put some space before and after divisiones.
682 %% FIXME: This does not seem to show any effect.
683 \override Script #'padding = #0.5
685 %% There are no beams in Gregorian Chant notation.
688 %% Prepare TextSpanner for \episem{Initium|Finis} use.
690 %% N.B.: dash-fraction MUST be unset; otherwise, TextSpanner will
691 %% always produce dashed lines, regardless of the style property.
693 %% FIXME: The line @code{\override TextSpanner #'padding = #-0.1} is
694 %% required to force the articulation signs being placed vertically
695 %% tightly to the correpsonding note heads.
697 \override TextSpanner #'dash-fraction = #'()
698 \override TextSpanner #'style = #'line
699 \override TextSpanner #'edge-height = #'(0 . 0)
700 \override TextSpanner #'padding = #-0.1
701 \override TextSpanner #'enclose-bounds = #1
702 \override TextSpanner #'edge-text = #'("" . "")
705 %% FIXME: need something like
706 %% \remove "Bar_number_engraver" (which lives on score level)
707 %% for vaticana and gregorian transcription staves
711 \name "VaticanaStaff"
714 \accepts "VaticanaVoice"
715 \description "Same as @code{Staff} context, except that it is accommodated for tyepsetting Gregorian Chant in the notational style of Editio Vaticana."
717 \remove "Time_signature_engraver"
718 \consists "Custos_engraver"
720 %% We can not remove Bar_engraver; otherwise clefs and custodes will
721 %% not show up any more among other line breaking issues.
722 %% Instead, we make the grob transparent.
723 \override BarLine #'transparent = ##t
725 \override StaffSymbol #'line-count = #4
726 \override StaffSymbol #'thickness = #0.6
728 %% FIXME: unit on StaffSymbol's width should be \linewidth.
729 %% \override StaffSymbol #'width = #60.0
731 %% Choose vaticana do clef on 3rd line as default.
732 clefGlyph = #"clefs.vaticana.do"
737 %% Select vaticana style font.
738 \override KeySignature #'style = #'vaticana
739 \override Accidental #'style = #'vaticana
740 \override Custos #'style = #'vaticana
741 \override Custos #'neutral-position = #3
742 \override Custos #'neutral-direction = #-1
744 %% Score.timing = ##f
745 %% Score.barAlways = ##t
750 \name "GregorianTranscriptionVoice"
753 %% Removing ligature bracket engraver without replacing it by some
754 %% other ligature engraver would cause a "Junking event: `LigatureEvent'"
755 %% warning for every "\[" and "\]". Therefore, we make the grob
756 %% transparent instead.
757 \override LigatureBracket #'transparent = ##t
759 %% Put some space before and after divisiones.
760 %% FIXME: This does not seem to show any effect.
761 \override Script #'padding = #0.5
763 %% There are no beams in Gregorian Chant notation.
766 %% Prepare TextSpanner for \episem{Initium|Finis} use.
768 %% N.B.: dash-fraction MUST be unset; otherwise, TextSpanner will
769 %% always produce dashed lines, regardless of the style property.
771 %% FIXME: The line @code{\override TextSpanner #'padding = #-0.1} is
772 %% required to force the articulation signs being placed vertically
773 %% tightly to the correpsonding note heads.
775 \override TextSpanner #'dash-fraction = #'()
776 \override TextSpanner #'style = #'line
777 \override TextSpanner #'edge-height = #'(0 . 0)
778 \override TextSpanner #'padding = #-0.1
779 \override TextSpanner #'enclose-bounds = #1
780 \override TextSpanner #'edge-text = #'("" . "")
785 \name "GregorianTranscriptionStaff"
788 \accepts "GregorianTranscriptionVoice"
790 %% We can not remove Bar_engraver; otherwise clefs and custodes will
791 %% not show up any more among other line breaking issues.
792 %% Instead, we make the grob transparent.
793 \override BarLine #'transparent = ##t
798 \name "MensuralVoice"
800 \description "Same as @code{Voice} context, except that it is accommodated for tyepsetting a piece in mensural style."
802 \remove "Slur_engraver"
803 \remove "Ligature_bracket_engraver"
804 \consists "Mensural_ligature_engraver"
806 %% Set default head for notes outside of \[ \].
807 \override NoteHead #'style = #'mensural
809 %% There are no beams in mensural notation.
815 \name "MensuralStaff"
818 \accepts "MensuralVoice"
819 \description "Same as @code{Staff} context, except that it is accommodated for tyepsetting a piece in mensural style."
821 \consists "Custos_engraver"
823 %% We can not remove Bar_engraver; otherwise clefs and custodes will
824 %% not show up any more among other line breaking issues.
825 %% Instead, we make the grob transparent.
826 \override BarLine #'transparent = ##t
828 \override StaffSymbol #'thickness = #0.6
830 %% FIXME: unit on StaffSymbol's width should be \linewidth.
831 %% \override StaffSymbol #'width = #60.0
833 %% Choose petrucci g clef on 2nd line as default.
834 clefGlyph = #"clefs.petrucci.g"
835 middleCPosition = #-6
839 %% Select mensural style font.
840 \override TimeSignature #'style = #'mensural
841 \override KeySignature #'style = #'mensural
842 \override Accidental #'style = #'mensural
843 \override Custos #'style = #'mensural
844 \override Custos #'neutral-position = #3
845 \override Custos #'neutral-direction = #-1
847 %% Score.timing = ##f
848 %% Score.barAlways = ##t
852 RemoveEmptyRhythmicStaffContext= \context {
854 \remove "Axis_group_engraver"
855 \consists "Hara_kiri_engraver"