7 \description "Hard coded entry point for LilyPond. Cannot be tuned."
8 \grobdescriptions #all-grob-descriptions
13 % setup for Request->Element conversion. Guru-only
17 \type "Engraver_group_engraver"
21 \consists "Output_property_engraver"
23 \consists "Bar_engraver"
24 % Bar_engraver must be first so default bars aren't overwritten
27 \consists "Font_size_engraver"
29 \consists "Volta_engraver"
30 \consists "Separating_line_group_engraver"
31 \consists "Dot_column_engraver"
33 % perhaps move to Voice context?
34 \consists "Ottava_spanner_engraver"
35 \consists "Clef_engraver"
36 \consists "Key_engraver"
37 \consists "Time_signature_engraver"
38 \consists "Staff_symbol_engraver"
39 \consists "Collision_engraver"
40 \consists "Rest_collision_engraver"
41 \consists "Accidental_engraver"
42 \consists "Piano_pedal_engraver"
43 \consists "Instrument_name_engraver"
44 \consists "String_number_engraver"
45 \consistsend "Axis_group_engraver"
47 minimumVerticalExtent = #'(-6 . 6)
48 extraVerticalExtent = ##f
50 localKeySignature = #'()
52 % explicitly set instrument, so we don't get
53 % weird effects when doing instrument names for
60 \description "Handles clefs, bar lines, keys, accidentals. It can contain
61 @code{Voice} contexts."
67 \type "Engraver_group_engraver"
71 \remove "Accidental_engraver"
72 \remove "Ottava_spanner_engraver"
73 \remove "Key_engraver"
74 \remove "Piano_pedal_engraver"
75 \remove "String_number_engraver"
77 \description "Handles typesetting for percussion."
82 clefGlyph = #"clefs-percussion"
84 \override Script #'staff-padding = #0.75
89 \type "Engraver_group_engraver"
91 \consists "System_start_delimiter_engraver"
92 systemStartDelimiter = #'SystemStartBracket
93 localKeySignature = #'()
97 \accepts "RhythmicStaff"
101 \accepts "ChordNames"
105 \InnerChoirStaffContext
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_engraver"
119 \consists "Output_property_engraver"
121 minimumVerticalExtent = ##f
122 extraVerticalExtent = ##f
124 localKeySignature = #'()
126 \consists "Pitch_squash_engraver"
127 squashedPosition = #0
128 \consists "Separating_line_group_engraver"
132 \override BarLine #'bar-size = #4
133 \override VoltaBracket #'minimum-space = #15
134 \override VoltaBracket #'padding = #5
135 \override StaffSymbol #'line-count = #1
137 \override Stem #'neutral-direction = #1
138 \override Beam #'neutral-direction = #1
139 % \consists "Repeat_engraver"
140 \consists "Dot_column_engraver"
141 \consists "Volta_engraver"
142 \consists "Bar_engraver"
143 \consists "Time_signature_engraver"
144 \consists "Staff_symbol_engraver"
145 \consists "Instrument_name_engraver"
146 \consistsend "Axis_group_engraver"
149 A context like @code{Staff} but for printing rhythms. Pitches are
150 ignored; the notes are printed on one line.
156 \type "Engraver_group_engraver"
160 Corresponds to a voice on a staff. This context handles the
161 conversion of dynamic signs, stems, beams, super- and subscripts,
162 slurs, ties, and rests.
164 You have to instantiate this explicitly if you want to have
165 multiple voices on the same staff."
167 localKeySignature = #'()
168 \consists "Font_size_engraver"
170 \consists "Output_property_engraver"
171 \consists "Arpeggio_engraver"
172 \consists "Multi_measure_rest_engraver"
173 \consists "Text_spanner_engraver"
174 \consists "Grob_pq_engraver"
175 \consists "Forbid_line_break_engraver"
177 \consists "Note_head_line_engraver"
178 \consists "Glissando_engraver"
179 \consists "Ligature_bracket_engraver"
180 \consists "Breathing_sign_engraver"
181 % \consists "Rest_engraver"
182 \consists "Note_heads_engraver"
183 \consists "Rest_engraver"
185 \consists "Stem_engraver"
186 \consists "Beam_engraver"
187 \consists "Grace_beam_engraver"
188 \consists "Auto_beam_engraver"
189 \consists "New_fingering_engraver"
190 \consists "Chord_tremolo_engraver"
191 \consists "Percent_repeat_engraver"
192 \consists "Slash_repeat_engraver"
193 \consists "Melisma_translator"
194 \consists "Part_combine_engraver"
197 Must come before text_engraver, but after note_column engraver.
200 \consists "Text_engraver"
201 \consists "Dynamic_engraver"
202 \consists "Fingering_engraver"
204 \consists "Script_engraver"
205 \consists "Script_column_engraver"
206 \consists "Rhythmic_column_engraver"
207 \consists "Phrasing_slur_engraver"
208 \consists "Cluster_spanner_engraver"
209 \consists "Slur_engraver"
210 \consists "Tie_engraver"
211 \consists "Tuplet_engraver"
213 \consists "Skip_event_swallow_translator"
221 \description "A voice on a percussion staff."
222 \remove "Arpeggio_engraver"
223 \consists "Multi_measure_rest_engraver"
224 \consists "Text_spanner_engraver"
225 \consists "Grob_pq_engraver"
227 \remove "Note_head_line_engraver"
228 \remove "Glissando_engraver"
229 \remove "Ligature_bracket_engraver"
230 \remove "Note_heads_engraver"
231 \consists "Rest_engraver"
232 \consists "Drum_notes_engraver"
233 \remove "New_fingering_engraver"
235 \remove "Fingering_engraver"
237 \remove "Phrasing_slur_engraver"
238 \remove "Cluster_spanner_engraver"
239 \remove "Slur_engraver"
240 \consists "Tuplet_engraver"
242 \consists "Skip_event_swallow_translator"
246 \type "Engraver_group_engraver"
248 localKeySignature = #'()
250 \description " A group of staffs, with a brace on the left
251 side, grouping the staves together. The bar lines of the
252 contained staves are connected vertically. "
254 \consists "Span_bar_engraver"
255 \consists "Span_arpeggio_engraver"
256 \consists "System_start_delimiter_engraver"
257 systemStartDelimiter = #'SystemStartBrace
268 "Just like @code{GrandStaff} but with a forced distance between
269 the staves, so cross staff beaming and slurring can be used."
271 verticalAlignmentChildCallback = #Align_interface::fixed_distance_alignment_callback
272 \override VerticalAlignment #'forced-distance = #12
273 \override VerticalAlignment #'self-alignment-Y = #0
275 \consists "Vertical_align_engraver"
276 \consists "Instrument_name_engraver"
283 \type "Engraver_group_engraver"
284 \name InnerStaffGroup
285 localKeySignature = #'()
287 \consists "Span_bar_engraver"
288 \consists "Span_arpeggio_engraver"
289 \consists "Output_property_engraver"
290 systemStartDelimiter = #'SystemStartBracket
292 \consists "System_start_delimiter_engraver"
294 \accepts "RhythmicStaff"
296 \accepts "GrandStaff"
297 \accepts "PianoStaff"
300 \accepts "ChordNames"
304 \InnerStaffGroupContext
309 "Groups staffs while adding a bracket on the left side, grouping
310 the staves together. The bar lines of the contained staves are
311 connected vertically. "
313 \accepts "InnerChoirStaff"
314 \accepts "ChoirStaff"
315 \accepts "InnerStaffGroup"
316 \accepts "FiguredBass"
321 \type "Engraver_group_engraver"
322 \consistsend "Hara_kiri_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 \override SeparationItem #'padding = #0.2
343 \type "Engraver_group_engraver"
345 \consistsend "Axis_group_engraver"
347 minimumVerticalExtent = ##f
348 extraVerticalExtent = ##f
352 \consists "Rest_swallow_translator"
353 \consists "Skip_event_swallow_translator"
354 \consists "Tie_engraver"
355 \consists "Note_name_engraver"
356 \consists "Separating_line_group_engraver"
360 \type "Engraver_group_engraver"
362 \description "Typesets chord names."
364 \consists "Rest_swallow_translator"
365 \consists "Output_property_engraver"
366 \consists "Separating_line_group_engraver"
367 \consists "Chord_name_engraver"
368 \consists "Skip_event_swallow_translator"
369 \consistsend "Hara_kiri_engraver"
371 minimumVerticalExtent = #'(0 . 2.5)
372 extraVerticalExtent = ##f
373 \override SeparatingGroupSpanner #'padding = #0.8
378 RemoveEmptyStaffContext= \translator {
380 \remove "Axis_group_engraver"
381 \consistsend "Hara_kiri_engraver"
382 \override Beam #'auto-knee-gap = #'()
385 AncientRemoveEmptyStaffContext = \translator {
386 %% why not add by default?
388 \RemoveEmptyStaffContext
389 \accepts "VaticanaVoice"
390 \accepts "GregorianTranscriptionVoice"
396 localKeySignature = #'()
398 \description "This is the top level notation context. No
399 other context can contain a @code{Score} context. This context
400 handles the administration of time signatures. It also makes sure
401 that items such as clefs, time signatures, and key-signatures are
402 aligned across staves.
404 You cannot explicitly instantiate a Score context (since it is
405 not contained in any other context). It is instantiated
406 automatically when an output definition (a @code{\score} or
407 @code{\paper} block) is processed."
409 \consists "Repeat_acknowledge_engraver"
410 \consists "Staff_collecting_engraver"
412 % move the alias along with the engraver.
414 %% TODO? add this alias from Timing_engraver::initialize() ?
415 \consists "Timing_engraver"
418 \consists "Output_property_engraver"
419 \consists "System_start_delimiter_engraver"
420 \consists "Mark_engraver"
421 \consists "Metronome_mark_engraver"
422 \consists "Break_align_engraver"
423 \consists "Spacing_engraver"
424 \consists "Vertical_align_engraver"
425 \consists "Stanza_number_align_engraver"
426 \consists "Bar_number_engraver"
427 \consists "Span_arpeggio_engraver"
431 \accepts "VaticanaStaff"
432 \accepts "GregorianTranscriptionStaff"
433 \accepts "StaffGroup"
434 \accepts "RhythmicStaff"
437 \accepts "ChordNames"
438 \accepts "GrandStaff"
439 \accepts "ChoirStaff"
440 \accepts "PianoStaff"
443 \accepts "FiguredBass"
446 soloIIText = #"Solo II"
449 systemStartDelimiter =#'SystemStartBar
451 drumStyleTable = #drums-style
453 melismaBusyProperties = #default-melisma-properties
455 clefGlyph = #"clefs-G"
457 centralCPosition = #-6
459 defaultBarType = #"|"
460 barNumberVisibility = #default-bar-number-visibility
463 explicitClefVisibility = #all-visible
464 explicitKeySignatureVisibility = #all-visible
465 autoBeamSettings = #default-auto-beam-settings
467 scriptDefinitions = #default-script-alist
469 verticalAlignmentChildCallback = #Align_interface::alignment_callback
471 pedalSustainStrings = #'("Ped." "*Ped." "*")
472 pedalSustainStyle = #'text
473 pedalUnaCordaStrings = #'("una corda" "" "tre corde")
474 pedalUnaCordaStyle = #'text
476 %% These are in ordinary italic font, including the *,
477 %% but they are unlikely to be used,
478 %% as the default pedal-style for SostenutoPedal is 'mixed':
479 %% i.e. Sost. Ped_____________________
480 pedalSostenutoStrings = #'("Sost. Ped." "*Sost. Ped." "*")
481 pedalSostenutoStyle = #'mixed
483 fingeringOrientations = #'(up down)
484 tupletNumberFormatFunction = #denominator-tuplet-formatter
485 markFormatter = #format-mark-letters
490 autoAccidentals = #'(Staff (same-octave . 0))
491 autoCautionaries = #'()
493 keyAccidentalOrder = #`(
494 (6 . ,FLAT) (2 . ,FLAT) (5 . ,FLAT ) (1 . ,FLAT) (4 . ,FLAT) (0 . ,FLAT) (3 . ,FLAT)
495 (3 . ,SHARP) (0 . ,SHARP) (4 . ,SHARP) (1 . ,SHARP) (5 . ,SHARP) (2 . ,SHARP) (6 . ,SHARP)
496 (6 . ,DOUBLE-FLAT) (2 . ,DOUBLE-FLAT) (5 . ,DOUBLE-FLAT ) (1 . ,DOUBLE-FLAT) (4 . ,DOUBLE-FLAT) (0 . ,DOUBLE-FLAT) (3 . ,DOUBLE-FLAT)
497 (3 . ,DOUBLE-SHARP) (0 . ,DOUBLE-SHARP) (4 . ,DOUBLE-SHARP) (2 . ,DOUBLE-SHARP) (5 . ,DOUBLE-SHARP) (2 . ,DOUBLE-SHARP) (6 . ,DOUBLE-SHARP)
499 breakAlignOrder = #'(
511 barCheckSynchronize = ##f
514 chordNameFunction = #ignatzek-chord-names
515 majorSevenSymbol = #whiteTriangleMarkup
516 chordNameSeparator = #(make-simple-markup "/")
517 chordNameExceptions = #ignatzekExceptions
518 chordNoteNamer = #'()
519 chordRootNamer = #note-name->markup
520 chordNameExceptionsFull = #fullJazzExceptions
521 chordNameExceptionsPartial = #partialJazzExceptions
524 stringOneTopmost = ##t
527 %% One may change the strings tuning as following :
528 %% The lenght of the list must be equal to the number of string
529 stringTunings = #guitar-tunings
530 tablatureFormat = #fret-number-tablature-format
533 bassFigureFormatFunction = #make-bass-figure-markup
534 metronomeMarkFormatter = #format-metronome-markup
536 (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))
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.26)))
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 Beam position-callbacks (,Beam::least_squares
560 ,Beam::slope_damping))
561 (Voice Accidental font-size -4)
562 (Voice Slur direction -1)
567 OrchestralScoreContext = \translator {
571 EasyNotation = \translator {
573 \override NoteHead #'print-function = #Note_head::brew_ez_stencil
574 \override NoteHead #'Y-extent-callback = #'()
575 \override NoteHead #'X-extent-callback = #'()
581 \type "Engraver_group_engraver"
583 \consists "Figured_bass_engraver"
584 \consists "Rest_swallow_translator"
585 \consists "Note_swallow_translator"
586 \consists "Skip_event_swallow_translator"
587 \consists "Separating_line_group_engraver"
589 \consistsend "Hara_kiri_engraver"
594 \type "Engraver_group_engraver"
596 %% don't want to route anything out of here:
600 \consists "Swallow_engraver"
601 \description "Silently discards all musical information given to this context. "
607 \consists "Tab_note_heads_engraver"
608 \remove "Note_heads_engraver"
609 \remove "Fingering_engraver"
610 \remove "New_fingering_engraver"
612 \description "Context for drawing notes in a Tab staff. "
613 \override Slur #'font-family = #'roman
614 \override Slur #'print-function = #hammer-print-function
615 \override Slur #'direction = #-1
617 % Draws all stems/beams out of the staff (and not in the middle of the staff !)
618 % This feature is now disabled because most of the tab does not use it.
619 %\override Beam #'damping = #100000
620 %\override Stem #'up-to-staff = ##t
622 % No accidental in tablature !
623 \remove Accidental_engraver
631 \remove "Staff_symbol_engraver"
632 \consists "Tab_staff_symbol_engraver"
634 \description "Context for generating tablature. [DOCME]"
639 \override StaffSymbol #'staff-space = #1.5
641 % Don't draw stems over the tablature figures !
642 \override Stem #'avoid-note-head = ##t
644 % No accidental in tablature !
645 \remove "Accidental_engraver"
646 \remove "Key_engraver"
647 \remove "String_number_engraver"
649 clefGlyph = #"clefs-tab"
653 % TODO: Gregorian Chant contexts should be moved to gregorian-init.ly,
654 % but this does not work (is this a bug or intended behaviour?):
656 % If I try to do so, I get "error: unknown escaped string:
657 % `\VaticanaStaffContext'" in params-init.ly. If I also move
658 % "\translator { \Vaticana*Context }" from params-init.ly to the end
659 % of gregorian-init.ly, then I get "error: parse error, unexpected
660 % TRANSLATOR: \translator { \VaticanaStaffContext }" in
661 % gregorian-init.ly. --jr
665 \name "VaticanaVoice"
667 \description "Same as @code{Voice} context, except that it is accommodated for tyepsetting Gregorian Chant in the notational style of Editio Vaticana."
669 \remove "Slur_engraver"
670 \remove "Stem_engraver"
671 \remove "Ligature_bracket_engraver"
672 \consists "Vaticana_ligature_engraver"
674 % Set default head for notes outside of \[ \].
675 \override NoteHead #'style = #'vaticana_punctum
677 % Put some space before and after divisiones.
678 % FIXME: This does not seem to show any effect.
679 \override Script #'padding = #0.5
681 % There are no beams in Gregorian Chant notation.
684 % Prepare TextSpanner for \episem{Initium|Finis} use.
685 \override TextSpanner #'style = #'line
686 \override TextSpanner #'edge-height = #'(0 . 0)
687 \override TextSpanner #'padding = #0.5
688 \override TextSpanner #'enclose-bounds = #1
689 \override TextSpanner #'edge-text = #'("" . "")
694 \name "VaticanaStaff"
697 \accepts "VaticanaVoice"
698 \description "Same as @code{Staff} context, except that it is accommodated for tyepsetting Gregorian Chant in the notational style of Editio Vaticana."
700 \remove "Time_signature_engraver"
701 \consists "Custos_engraver"
703 % We can not remove Bar_engraver; otherwise clefs and custodes will
704 % not show up any more among other line breaking issues.
705 % Instead, we make the grob transparent.
706 \override BarLine #'transparent = ##t
708 \override StaffSymbol #'line-count = #4
709 \override StaffSymbol #'thickness = #0.6
711 % FIXME: unit on StaffSymbol's width should be \linewidth.
712 % \override StaffSymbol #'width = #60.0
714 % Choose vaticana do clef on 3rd line as default.
715 clefGlyph = #"clefs-vaticana_do"
716 centralCPosition = #1
720 % Select vaticana style font.
721 \override KeySignature #'style = #'vaticana
722 \override Accidental #'style = #'vaticana
723 \override Custos #'style = #'vaticana
724 \override Custos #'neutral-position = #3
725 \override Custos #'neutral-direction = #-1
726 \override Custos #'adjust-if-on-staffline = ##t
729 % Score.barAlways = ##t
734 \name "GregorianTranscriptionVoice"
737 % Removing ligature bracket engraver without replacing it by some
738 % other ligature engraver would cause a "Junking event: `LigatureEvent'"
739 % warning for every "\[" and "\]". Therefore, we make the grob
740 % transparent instead.
741 \override LigatureBracket #'transparent = ##t
743 % Put some space before and after divisiones.
744 % FIXME: This does not seem to show any effect.
745 \override Script #'padding = #0.5
747 % There are no beams in Gregorian Chant notation.
750 % Prepare TextSpanner for \episem{Initium|Finis} use.
751 \override TextSpanner #'style = #'line
752 \override TextSpanner #'edge-height = #'(0 . 0)
753 \override TextSpanner #'padding = #0.5
754 \override TextSpanner #'enclose-bounds = #1
755 \override TextSpanner #'edge-text = #'("" . "")
759 \name "GregorianTranscriptionStaff"
762 \accepts "GregorianTranscriptionVoice"
764 % We can not remove Bar_engraver; otherwise clefs and custodes will
765 % not show up any more among other line breaking issues.
766 % Instead, we make the grob transparent.
767 \override BarLine #'transparent = ##t