1 %%%% This file is part of LilyPond, the GNU music typesetter.
3 %%%% Copyright (C) 1996--2010 Han-Wen Nienhuys <hanwen@xs4all.nl>
4 %%%% Jan Nieuwenhuizen <janneke@gnu.org>
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.
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.
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/>.
27 \description "Hard coded entry point for LilyPond. Cannot be tuned."
28 \grobdescriptions #all-grob-descriptions
32 \type "Engraver_group"
34 \description "A context for displaying fret diagrams."
36 \consists "Fretboard_engraver"
37 \consists "Output_property_engraver"
38 \consists "Hara_kiri_engraver"
39 \consists "Separating_line_group_engraver"
40 \consists "Font_size_engraver"
41 \consists "Instrument_name_engraver"
43 predefinedDiagramTable = #fretboard-table
47 \type "Engraver_group"
50 \consists "Output_property_engraver"
51 \consists "Bar_engraver"
52 %% Bar_engraver must be first so default bars aren't overwritten
55 \consists "Font_size_engraver"
56 \consists "Separating_line_group_engraver"
57 \consists "Dot_column_engraver"
58 \consists "Staff_collecting_engraver"
60 %% perhaps move to Voice context?
61 \consists "Ottava_spanner_engraver"
62 \consists "Clef_engraver"
63 \consists "Key_engraver"
64 \consists "Time_signature_engraver"
65 \consists "Ledger_line_engraver"
66 \consists "Staff_symbol_engraver"
67 \consists "Collision_engraver"
68 \consists "Grob_pq_engraver"
69 \consists "Rest_collision_engraver"
70 \consists "Accidental_engraver"
71 \consists "Piano_pedal_engraver"
72 \consists "Piano_pedal_align_engraver"
73 \consists "Instrument_name_engraver"
74 \consists "Axis_group_engraver"
75 \consists "Figured_bass_engraver"
76 \consists "Figured_bass_position_engraver"
77 \consists "Script_row_engraver"
79 localKeySignature = #'()
81 ignoreFiguredBassRest = ##f
83 %% explicitly set instrument, so we don't get
84 %% weird effects when doing instrument names for
88 shortInstrumentName = #'()
94 \description "Handles clefs, bar lines, keys, accidentals. It can contain
95 @code{Voice} contexts."
101 \type "Engraver_group"
105 \remove "Accidental_engraver"
106 \remove "Ottava_spanner_engraver"
107 \remove "Key_engraver"
108 \remove "Piano_pedal_engraver"
110 \description "Handles typesetting for percussion."
114 \defaultchild "DrumVoice"
116 clefGlyph = #"clefs.percussion"
118 \override Script #'staff-padding = #0.75
123 \type "Engraver_group"
125 \consists "Vertical_align_engraver"
126 topLevelAlignment = ##f
128 \consists "System_start_delimiter_engraver"
129 systemStartDelimiter = #'SystemStartBracket
131 shortVocalName = #'()
135 \accepts "RhythmicStaff"
136 \accepts "GrandStaff"
137 \accepts "PianoStaff"
139 \accepts "ChordNames"
140 \accepts "FiguredBass"
141 \accepts "ChoirStaff"
142 \accepts "StaffGroup"
143 \defaultchild "Staff"
144 \description "Identical to @code{StaffGroup} except that the
145 contained staves are not connected vertically."
149 \type "Engraver_group"
151 localKeySignature = #'()
154 squashedPosition = #0
158 \override BarLine #'bar-size = #4
159 \override VoltaBracket #'staff-padding = #3
160 \override StaffSymbol #'line-count = #1
162 \override Stem #'neutral-direction = #UP
163 \override Beam #'neutral-direction = #UP
165 \consists "Output_property_engraver"
166 \consists "Font_size_engraver"
167 \consists "Separating_line_group_engraver"
168 \consists "Dot_column_engraver"
169 \consists "Bar_engraver"
170 \consists "Staff_symbol_engraver"
171 \consists "Pitch_squash_engraver"
172 \consists "Time_signature_engraver"
173 \consists "Instrument_name_engraver"
174 \consists "Axis_group_engraver"
175 \consists "Ledger_line_engraver"
179 \defaultchild "Voice"
181 \description "A context like @code{Staff} but for printing rhythms.
182 Pitches are ignored; the notes are printed on one line."
187 \type "Engraver_group"
190 \description "Corresponds to a voice on a staff. This context
191 handles the conversion of dynamic signs, stems, beams, super- and
192 subscripts, slurs, ties, and rests.
194 You have to instantiate this explicitly if you want to have
195 multiple voices on the same staff."
197 localKeySignature = #'()
198 \consists "Font_size_engraver"
200 \consists "Pitched_trill_engraver"
201 \consists "Output_property_engraver"
202 \consists "Arpeggio_engraver"
203 \consists "Multi_measure_rest_engraver"
204 \consists "Text_spanner_engraver"
205 \consists "Trill_spanner_engraver"
206 \consists "Grob_pq_engraver"
207 \consists "Forbid_line_break_engraver"
208 \consists "Laissez_vibrer_engraver"
209 \consists "Repeat_tie_engraver"
210 \consists "Note_head_line_engraver"
211 \consists "Glissando_engraver"
212 \consists "Ligature_bracket_engraver"
213 \consists "Breathing_sign_engraver"
214 \consists "Note_heads_engraver"
215 \consists "Dots_engraver"
216 \consists "Rest_engraver"
217 \consists "Tweak_engraver"
219 %% switch on to make stem directions interpolate for the
221 % \consists "Melody_engraver"
223 \consists "Stem_engraver"
224 \consists "Beam_engraver"
225 \consists "Grace_beam_engraver"
226 \consists "Auto_beam_engraver"
228 %% must come before Script_column_engraver.
229 \consists "New_fingering_engraver"
231 \consists "Chord_tremolo_engraver"
232 \consists "Percent_repeat_engraver"
233 \consists "Slash_repeat_engraver"
234 \consists "Part_combine_engraver"
236 \consists "Text_engraver"
237 \consists "New_dynamic_engraver"
238 \consists "Dynamic_align_engraver"
239 % \consists "Dynamic_engraver"
240 \consists "Fingering_engraver"
241 \consists "Bend_engraver"
243 \consists "Script_engraver"
244 \consists "Script_column_engraver"
245 \consists "Rhythmic_column_engraver"
246 \consists "Note_spacing_engraver"
247 \consists "Spanner_break_forbid_engraver"
248 \consists "Phrasing_slur_engraver"
249 \consists "Cluster_spanner_engraver"
250 \consists "Slur_engraver"
251 \consists "Tie_engraver"
252 \consists "Tuplet_engraver"
253 \consists "Grace_engraver"
254 \consists "Instrument_switch_engraver"
263 \override Stem #'length-fraction = #(magstep -4)
264 \override Beam #'length-fraction = #(magstep -4)
265 \override Beam #'beam-thickness = #0.35
273 \description "A voice on a percussion staff."
274 \remove "Arpeggio_engraver"
275 \consists "Grob_pq_engraver"
277 \remove "Note_head_line_engraver"
278 \remove "Glissando_engraver"
279 \remove "Ligature_bracket_engraver"
280 \remove "Note_heads_engraver"
281 \consists "Drum_notes_engraver"
282 \remove "New_fingering_engraver"
284 \remove "Fingering_engraver"
286 \remove "Cluster_spanner_engraver"
290 \type "Engraver_group"
292 localKeySignature = #'()
294 \description "A group of staves, with a brace on the left
295 side, grouping the staves together. The bar lines of the
296 contained staves are connected vertically."
298 \consists "Span_bar_engraver"
299 \consists "Span_arpeggio_engraver"
300 \consists "System_start_delimiter_engraver"
301 systemStartDelimiter = #'SystemStartBrace
303 \defaultchild "Staff"
305 \accepts "FiguredBass"
314 \description "Just like @code{GrandStaff} but with support for
315 instrument names at the start of each system."
317 \consists "Instrument_name_engraver"
318 \consists "Vertical_align_engraver"
319 topLevelAlignment = ##f
321 \override StaffGrouper #'between-staff-spacing #'stretchability = #5
323 instrumentName = #'()
324 shortInstrumentName = #'()
328 \type "Engraver_group"
331 \consists "Vertical_align_engraver"
332 topLevelAlignment = ##f
334 \consists "Span_bar_engraver"
335 \consists "Span_arpeggio_engraver"
336 \consists "Output_property_engraver"
337 systemStartDelimiter = #'SystemStartBracket
339 \consists "System_start_delimiter_engraver"
341 \defaultchild "Staff"
343 \accepts "RhythmicStaff"
345 \accepts "GrandStaff"
346 \accepts "PianoStaff"
349 \accepts "ChordNames"
350 \accepts "FiguredBass"
351 \accepts "ChoirStaff"
352 \accepts "StaffGroup"
354 \description "Groups staves while adding a bracket on the left
355 side, grouping the staves together. The bar lines of the contained
356 staves are connected vertically. @code{StaffGroup} only consists of
357 a collection of staves, with a bracket in front and spanning bar lines."
361 \type "Engraver_group"
364 \consists "Output_property_engraver"
365 \consists "Bar_engraver"
366 \consists "Piano_pedal_engraver"
367 \consists "Script_engraver"
368 \consists "New_dynamic_engraver"
369 \consists "Dynamic_align_engraver"
370 \consists "Text_engraver"
371 \consists "Text_spanner_engraver"
372 \consists "Axis_group_engraver"
374 pedalSustainStrings = #'("Ped." "*Ped." "*")
375 pedalUnaCordaStrings = #'("una corda" "" "tre corde")
376 \override VerticalAxisGroup #'staff-affinity = #CENTER
377 \override VerticalAxisGroup #'inter-staff-spacing = #'((space . 5) (padding . 0.5))
378 \override TextScript #'font-shape = #'italic
379 \override DynamicLineSpanner #'Y-offset = #0
381 \description "Holds a single line of dynamics, which will be
382 centered between the staves surrounding this context."
387 \type "Engraver_group"
389 \description "Corresponds to a voice with lyrics. Handles the
390 printing of a single line of lyrics."
393 instrumentName = #'()
394 shortInstrumentName = #'()
396 \consists "Lyric_engraver"
397 \consists "Extender_engraver"
398 \consists "Hyphen_engraver"
399 \consists "Stanza_number_engraver"
400 \consists "Instrument_name_engraver"
401 \consists "Font_size_engraver"
402 \consists "Hara_kiri_engraver"
404 \override VerticalAxisGroup #'remove-first = ##t
405 \override VerticalAxisGroup #'remove-empty = ##t
406 \override VerticalAxisGroup #'staff-affinity = #UP
407 \override VerticalAxisGroup #'inter-staff-spacing = #'((space . 5.5) (stretchability . 1) (padding . 0.5))
408 \override VerticalAxisGroup #'inter-loose-line-spacing = #'((space . 0) (stretchability . 0) (padding . 0.2))
409 \override VerticalAxisGroup #'non-affinity-spacing #'padding = #1.0
410 \override InstrumentName #'self-alignment-Y = ##f
412 %% sync with define-grobs.scm ;
413 \override InstrumentName #'font-size = #1.0
415 %% make sure that barlines aren't collapsed, when
416 %% Bar_engraver is there.
417 \override BarLine #'bar-size = #0.1
422 \type "Engraver_group"
424 \description "A context for printing the names of notes."
425 \consists "Axis_group_engraver"
427 % FIXME: not sure what the default should be here.
428 \override VerticalAxisGroup #'staff-affinity = #DOWN
430 \consists "Tie_engraver"
431 \consists "Note_name_engraver"
432 \consists "Separating_line_group_engraver"
436 \type "Engraver_group"
438 \description "Typesets chord names."
440 \consists "Output_property_engraver"
441 \consists "Separating_line_group_engraver"
442 \consists "Chord_name_engraver"
443 \consists "Hara_kiri_engraver"
444 % \consists "Note_spacing_engraver"
445 \override VerticalAxisGroup #'remove-first = ##t
446 \override VerticalAxisGroup #'remove-empty = ##t
447 \override VerticalAxisGroup #'staff-affinity = #DOWN
448 \override VerticalAxisGroup #'inter-staff-spacing #'padding = #0.5
449 \override VerticalAxisGroup #'inter-loose-line-spacing #'padding = #0.5
453 RemoveEmptyStaves = \with {
454 \remove "Axis_group_engraver"
455 \remove "Hara_kiri_engraver"
456 \consists "Hara_kiri_engraver"
457 \override Beam #'auto-knee-gap = #'()
458 \override VerticalAxisGroup #'remove-empty = ##t
463 \type "Score_engraver"
466 \description "This is the top level notation context. No
467 other context can contain a @code{Score} context. This context
468 handles the administration of time signatures. It also makes sure
469 that items such as clefs, time signatures, and key-signatures are
470 aligned across staves.
472 You cannot explicitly instantiate a @code{Score} context (since it
473 is not contained in any other context). It is instantiated
474 automatically when an output definition (a @code{\score} or
475 @code{\layout} block) is processed."
477 \consists "Paper_column_engraver"
478 \consists "Vertically_spaced_contexts_engraver"
479 \consists "Repeat_acknowledge_engraver"
480 \consists "Staff_collecting_engraver"
482 %% move the alias along with the engraver.
484 \consists "Timing_translator"
485 \consists "Default_bar_line_engraver"
486 \consists "Output_property_engraver"
487 \consists "System_start_delimiter_engraver"
488 \consists "Mark_engraver"
489 \consists "Volta_engraver"
490 \consists "Metronome_mark_engraver"
491 \consists "Break_align_engraver"
492 \consists "Spacing_engraver"
493 \consists "Grace_spacing_engraver"
494 \consists "Vertical_align_engraver"
495 \consists "Stanza_number_align_engraver"
496 \consists "Bar_number_engraver"
497 \consists "Parenthesis_engraver"
499 \defaultchild "Staff"
501 \accepts "FretBoards"
503 \accepts "RhythmicStaff"
505 \accepts "VaticanaStaff"
506 \accepts "GregorianTranscriptionStaff"
507 \accepts "MensuralStaff"
508 \accepts "StaffGroup"
511 \accepts "ChordNames"
512 \accepts "GrandStaff"
513 \accepts "ChoirStaff"
514 \accepts "PianoStaff"
517 \accepts "FiguredBass"
520 noteToFretFunction = #determine-frets
521 predefinedDiagramTable = ##f
523 soloIIText = #"Solo II"
525 printPartCombineTexts = ##t
526 systemStartDelimiter =#'SystemStartBar
528 drumStyleTable = #drums-style
530 melismaBusyProperties = #default-melisma-properties
532 clefGlyph = #"clefs.G"
534 middleCClefPosition = #-6
535 middleCPosition = #-6
538 crescendoSpanner = #'hairpin
539 decrescendoSpanner = #'hairpin
541 defaultBarType = #"|"
542 doubleRepeatType = #":|:"
543 barNumberVisibility = #first-bar-number-invisible
546 explicitClefVisibility = #all-visible
547 explicitKeySignatureVisibility = #all-visible
548 implicitTimeSignatureVisibility = #end-of-line-invisible
550 repeatCountVisibility = #all-repeat-counts-visible
552 beamSettings = #default-beam-settings
554 autoBeamCheck = #default-auto-beam-check
555 scriptDefinitions = #default-script-alist
557 pedalSustainStrings = #'("Ped." "*Ped." "*")
558 pedalSustainStyle = #'text
559 pedalUnaCordaStrings = #'("una corda" "" "tre corde")
560 pedalUnaCordaStyle = #'text
562 %% These are in ordinary italic font, including the *,
563 %% but they are unlikely to be used,
564 %% as the default pedal-style for SostenutoPedal is 'mixed':
565 %% i.e. Sost. Ped_____________________
566 pedalSostenutoStrings = #'("Sost. Ped." "*Sost. Ped." "*")
567 pedalSostenutoStyle = #'mixed
569 harmonicAccidentals = ##t
570 fingeringOrientations = #'(up down)
571 stringNumberOrientations = #'(up down)
572 strokeFingerOrientations = #'(right)
574 lyricMelismaAlignment = #LEFT
575 markFormatter = #format-mark-letters
579 autoAccidentals = #`(Staff ,(make-accidental-rule 'same-octave 0))
580 autoCautionaries = #'()
582 printKeyCancellation = ##t
583 keyAlterationOrder = #`(
584 (6 . ,FLAT) (2 . ,FLAT) (5 . ,FLAT ) (1 . ,FLAT) (4 . ,FLAT) (0 . ,FLAT) (3 . ,FLAT)
585 (3 . ,SHARP) (0 . ,SHARP) (4 . ,SHARP) (1 . ,SHARP) (5 . ,SHARP) (2 . ,SHARP) (6 . ,SHARP)
586 (6 . ,DOUBLE-FLAT) (2 . ,DOUBLE-FLAT) (5 . ,DOUBLE-FLAT ) (1 . ,DOUBLE-FLAT) (4 . ,DOUBLE-FLAT) (0 . ,DOUBLE-FLAT) (3 . ,DOUBLE-FLAT)
587 (3 . ,DOUBLE-SHARP) (0 . ,DOUBLE-SHARP) (4 . ,DOUBLE-SHARP) (2 . ,DOUBLE-SHARP) (5 . ,DOUBLE-SHARP) (2 . ,DOUBLE-SHARP) (6 . ,DOUBLE-SHARP)
590 barCheckSynchronize = ##f
593 chordNameFunction = #ignatzek-chord-names
594 majorSevenSymbol = #whiteTriangleMarkup
595 chordNameLowercaseMinor = ##f
596 chordNameSeparator = #(make-simple-markup "/")
597 chordNameExceptions = #ignatzekExceptions
598 chordNoteNamer = #'()
599 chordRootNamer = #note-name->markup
600 chordPrefixSpacer = #0
601 chordNameExceptionsFull = #fullJazzExceptions
602 chordNameExceptionsPartial = #partialJazzExceptions
603 noChordSymbol = #(make-simple-markup "N.C.")
605 bassStaffProperties = #'((assign clefGlyph "clefs.F")
606 (assign clefPosition 2)
607 (assign middleCPosition 6)
608 (assign middleCClefPosition 6))
610 stringOneTopmost = ##t
613 %% One may change the string tunings as follows :
614 %% The length of the list must be equal to the number of strings
615 stringTunings = #guitar-tuning
616 tablatureFormat = #fret-number-tablature-format
617 tabStaffLineLayoutFunction = #tablature-position-on-lines
620 figuredBassFormatter = #format-bass-figure
621 metronomeMarkFormatter = #format-metronome-markup
624 %% See also make-voice-props-set
626 (Voice Stem direction ,UP)
627 (Voice Stem font-size -3)
628 (Voice NoteHead font-size -3)
629 (Voice TabNoteHead font-size -4)
630 (Voice Dots font-size -3)
631 (Voice Stem length-fraction 0.8)
632 (Voice Stem no-stem-extend #t)
633 (Voice Beam beam-thickness 0.384)
634 (Voice Beam length-fraction 0.8)
635 (Voice Accidental font-size -4)
636 (Voice AccidentalCautionary font-size -4)
637 (Voice Slur direction ,DOWN)
638 (Voice Script font-size -3)
639 (Voice Fingering font-size -8)
640 (Voice StringNumber font-size -8)
643 keepAliveInterfaces = #'(
644 rhythmic-grob-interface
646 percent-repeat-item-interface
647 percent-repeat-interface
649 ;; need this, as stanza numbers are items, and appear only once.
650 stanza-number-interface
652 % \quoteDuring is supposed to quote everything, cueDuring only the essentials
653 quotedEventTypes = #'(StreamEvent)
654 quotedCueEventTypes = #'(
660 instrumentTransposition = #(ly:make-pitch 0 0 0)
662 verticallySpacedContexts = #'(Staff)
663 topLevelAlignment = ##t
672 \type "Engraver_group"
674 \description "A context for printing a figured bass line."
676 \consists "Figured_bass_engraver"
677 \consists "Separating_line_group_engraver"
678 \consists "Hara_kiri_engraver"
680 \override VerticalAxisGroup #'remove-empty = ##t
681 \override VerticalAxisGroup #'remove-first = ##t
682 \override VerticalAxisGroup #'staff-affinity = #UP
683 \override VerticalAxisGroup #'inter-staff-spacing #'padding = #0.5
684 \override VerticalAxisGroup #'inter-loose-line-spacing #'padding = #0.5
689 \type "Engraver_group"
691 %% don't want to route anything out of here:
694 \description "Silently discards all musical information given to this
702 \consists "Tab_note_heads_engraver"
703 \consists "Tab_harmonic_engraver"
705 \remove "Note_heads_engraver"
706 \remove "Fingering_engraver"
707 \remove "New_fingering_engraver"
709 \description "Context for drawing notes in a Tab staff."
711 %% TabStaff increase the staff-space, which in turn
712 %% increases beam thickness and spacing; beams are
713 %% too big. We have to adjust the beam settings:
714 \override Beam #'beam-thickness = #0.32
715 \override Beam #'length-fraction = #0.62
717 %% No accidental in tablature !
718 \remove "Accidental_engraver"
719 %% make the Stems as short as possible to minimize their influence
720 %% on the slur::calc-control-points routine
721 \override Stem #'length = #0
722 \override Stem #'no-stem-extend = ##t
723 \override Stem #'flag-style = #'no-flag
724 \override Stem #'details = #'((lengths 0 0 0 0 0 0)
725 (beamed-lengths 0 0 0)
726 (beamed-minimum-free-lengths 0 0 0)
727 (beamed-extreme-minimum-free-lengths 0 0)
729 %% after all, the stubs of the stems may still be visible, so ...
730 \override Stem #'transparent = ##t
731 %% automatic beams should be suppressed for similar reasons ...
733 %% remove beams, dots and rests ...
734 \override Beam #'stencil = ##f
735 \override Dots #'stencil = ##f
736 \override Rest #'stencil = ##f
737 \override MultiMeasureRest #'stencil = ##f
738 \override MultiMeasureRestNumber #'transparent = ##t
739 %% ... all kinds of ties/slurs
740 \override Tie #'stencil = ##f
741 \override RepeatTie #'stencil = ##f
742 \override LaissezVibrerTie #'stencil = ##f
743 \override Slur #'stencil = #slur::draw-tab-slur
744 \override PhrasingSlur #'stencil = ##f
745 %% 'tied to' fret numbers become invisible or parenthesized, respectively)
746 \override Tie #'after-line-breaking = #tie::handle-tab-note-head
747 \override RepeatTie #'after-line-breaking = #repeat-tie::handle-tab-note-head
748 %% ... and all kinds of markups, spanners etc.
749 \override TupletBracket #'stencil = ##f
750 \override TupletNumber #'stencil = ##f
751 \override DynamicText #'transparent = ##t
752 \override DynamicTextSpanner #'stencil = ##f
753 \override TextSpanner #'stencil = ##f
754 \override Hairpin #'transparent = ##t
755 \override Script #'stencil = ##f
756 \override TextScript #'stencil = ##f
757 %% the direction for glissando lines will be automatically corrected
758 \override Glissando #'extra-dy = #glissando::calc-tab-extra-dy
759 \override Glissando #'bound-details #'right = #`((attach-dir . ,LEFT)
761 \override Glissando #'bound-details #'left = #`((attach-dir . ,RIGHT)
764 \override TabNoteHead #'glyph-name = #tab-note-head::calc-glyph-name
765 \override TabNoteHead #'stencil = #tab-note-head::whiteout-if-style-set
773 \consists "Tab_staff_symbol_engraver"
775 \description "Context for generating tablature. It accepts only @code{TabVoice}
776 contexts and handles the line spacing, the tablature clef etc. properly."
779 \defaultchild "TabVoice"
781 %% 6 strings, bigger spacing
782 \override StaffSymbol #'staff-space = #1.5
784 %% Don't draw stems over the tablature figures !
785 \override Stem #'avoid-note-head = ##t
787 %% No accidental in tablature !
788 \remove "Accidental_engraver"
789 \remove "Key_engraver"
791 \remove "Ottava_spanner_engraver"
793 \override Clef #'stencil = #clef::print-modern-tab-if-set
795 \override TimeSignature #'stencil = ##f
796 %% better parentheses in a TabStaff
797 \override ParenthesesItem #'stencils = #parentheses-item::calc-tabstaff-parenthesis-stencils
799 \override Arpeggio #'stencil = ##f
800 %% we ignore collision warnings that may occur due to
801 %% stem overlapping, because we have no stems ;-)
802 \override NoteColumn #'ignore-collision = ##t
803 %% Special "TAB" clef
804 clefGlyph = #"clefs.tab"
810 \name "VaticanaVoice"
812 \description "Same as @code{Voice} context, except that it is
813 accommodated for typesetting Gregorian Chant in the notational style
816 \remove "Slur_engraver"
817 \remove "Stem_engraver"
818 \remove "Ligature_bracket_engraver"
819 \consists "Vaticana_ligature_engraver"
820 \remove "Text_spanner_engraver"
821 \consists "Episema_engraver"
823 %% Set default head for notes outside of \[ \].
824 \override NoteHead #'style = #'vaticana.punctum
826 %% Put some space before and after divisiones.
827 %% FIXME: This does not seem to show any effect.
828 \override Script #'padding = #0.5
830 %% There are no beams in Gregorian Chant notation.
836 \name "VaticanaStaff"
839 \accepts "VaticanaVoice"
840 \defaultchild "VaticanaVoice"
842 \description "Same as @code{Staff} context, except that it is
843 accommodated for typesetting Gregorian Chant in the notational style
846 \remove "Time_signature_engraver"
847 \consists "Custos_engraver"
849 %% We can not remove Bar_engraver; otherwise clefs and custodes will
850 %% not show up any more among other line breaking issues.
851 %% Instead, we make the grob transparent.
852 \override BarLine #'transparent = ##t
854 \override StaffSymbol #'line-count = #4
855 \override StaffSymbol #'thickness = #0.6
857 %% FIXME: unit on StaffSymbol's width should be \linewidth.
858 %% \override StaffSymbol #'width = #60.0
860 %% Choose vaticana do clef on 3rd line as default.
861 clefGlyph = #"clefs.vaticana.do"
863 middleCClefPosition = #1
867 %% Select vaticana style font.
868 \override KeySignature #'glyph-name-alist = #alteration-vaticana-glyph-name-alist
869 \override Accidental #'glyph-name-alist = #alteration-vaticana-glyph-name-alist
870 \override Custos #'style = #'vaticana
871 \override Custos #'neutral-position = #3
872 \override Custos #'neutral-direction = #DOWN
873 \override Dots #'style = #'vaticana
878 \name "GregorianTranscriptionVoice"
880 \consists "Episema_engraver"
882 %% Removing ligature bracket engraver without replacing it by some
883 %% other ligature engraver would cause a "Junking event: `LigatureEvent'"
884 %% warning for every "\[" and "\]". Therefore, we make the grob
885 %% transparent instead.
886 \override LigatureBracket #'transparent = ##t
888 %% Put some space before and after divisiones.
889 %% FIXME: This does not seem to show any effect.
890 \override Script #'padding = #0.5
892 %% There are no beams in Gregorian Chant notation.
899 \name "GregorianTranscriptionStaff"
902 \accepts "GregorianTranscriptionVoice"
903 \defaultchild "GregorianTranscriptionVoice"
905 %% We can not remove Bar_engraver; otherwise clefs and custodes will
906 %% not show up any more among other line breaking issues.
907 %% Instead, we make the grob transparent.
908 \override BarLine #'transparent = ##t
913 \name "MensuralVoice"
915 \description "Same as @code{Voice} context, except that it is
916 accommodated for typesetting a piece in mensural style."
918 \remove "Slur_engraver"
919 \remove "Ligature_bracket_engraver"
920 \consists "Mensural_ligature_engraver"
922 %% Set default head for notes outside of \[ \].
923 \override NoteHead #'style = #'mensural
924 \override Rest #'style = #'mensural
926 %% There are no beams in mensural notation.
932 \name "MensuralStaff"
935 \defaultchild "MensuralVoice"
936 \accepts "MensuralVoice"
937 \description "Same as @code{Staff} context, except that it is
938 accommodated for typesetting a piece in mensural style."
940 \consists "Custos_engraver"
942 %% We can not remove Bar_engraver; otherwise clefs and custodes will
943 %% not show up any more among other line breaking issues.
944 %% Instead, we make the grob transparent.
945 \override BarLine #'transparent = ##t
947 \override StaffSymbol #'thickness = #0.6
949 %% FIXME: unit on StaffSymbol's width should be \linewidth.
950 %% \override StaffSymbol #'width = #60.0
952 %% Choose mensural g clef on 2nd line as default.
953 clefGlyph = #"clefs.mensural.g"
954 middleCClefPosition = #-6
955 middleCPosition = #-6
959 %% Select mensural style font.
960 \override TimeSignature #'style = #'mensural
961 \override KeySignature #'glyph-name-alist = #alteration-mensural-glyph-name-alist
962 \override Accidental #'glyph-name-alist = #alteration-mensural-glyph-name-alist
963 \override Custos #'style = #'mensural
964 \override Custos #'neutral-position = #3
965 \override Custos #'neutral-direction = #DOWN
967 %% Accidentals are valid only once (same as
968 %% #(set-accidental-style 'forget))
970 autoAccidentals = #`(Staff ,(make-accidental-rule 'same-octave -1))
971 autoCautionaries = #'()
972 printKeyCancellation = ##f
976 %% Keep the old definitions in here for compatibility (they erase previous
977 %% settings to the corresponding context!).
978 %% For new scores, one should simply insert the \RemoveEmptyStaves settings
979 %% into the desired context. That's just as easy, requires only one line more
980 %% (the \*Staff), but preserves previous context mods.
981 %% TODO: DEPRECATED_2.13.17, remove at some point in the future
982 RemoveEmptyStaffContext = \context {
987 AncientRemoveEmptyStaffContext = \context {
992 RemoveEmptyDrumStaffContext = \context {
997 RemoveEmptyRhythmicStaffContext = \context {
1002 RemoveEmptyTabStaffContext = \context {