1 %%%% This file is part of LilyPond, the GNU music typesetter.
3 %%%% Copyright (C) 1996--2012 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"
35 \description "A context for displaying fret diagrams."
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"
44 %% explicitly set instrument, so it is not inherited from the parent
46 shortInstrumentName = #'()
48 predefinedDiagramTable = #default-fret-table
49 handleNegativeFrets = #'recalculate
50 restrainOpenStrings = ##f
54 \type "Engraver_group"
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
63 \consists "Font_size_engraver"
64 \consists "Separating_line_group_engraver"
65 \consists "Dot_column_engraver"
66 \consists "Staff_collecting_engraver"
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"
89 localKeySignature = #'()
91 ignoreFiguredBassRest = ##f
93 %% explicitly set instrument, so we don't get
94 %% weird effects when doing instrument names for
97 shortInstrumentName = #'()
104 \description "Handles clefs, bar lines, keys, accidentals. It can contain
105 @code{Voice} contexts."
111 \type "Engraver_group"
115 \remove "Accidental_engraver"
116 \remove "Ottava_spanner_engraver"
117 \remove "Key_engraver"
118 \remove "Piano_pedal_engraver"
120 \description "Handles typesetting for percussion."
124 \defaultchild "DrumVoice"
126 clefGlyph = #"clefs.percussion"
128 \override Script.staff-padding = #0.75
133 \type "Engraver_group"
135 \consists "Vertical_align_engraver"
136 topLevelAlignment = ##f
138 \consists "Instrument_name_engraver"
139 \consists "System_start_delimiter_engraver"
140 systemStartDelimiter = #'SystemStartBracket
141 %% explicitly set instrument, so it is not inherited from the parent
142 instrumentName = #'()
143 shortInstrumentName = #'()
145 shortVocalName = #'()
149 \accepts "RhythmicStaff"
150 \accepts "GrandStaff"
151 \accepts "PianoStaff"
153 \accepts "ChordNames"
154 \accepts "FiguredBass"
155 \accepts "ChoirStaff"
156 \accepts "StaffGroup"
157 \defaultchild "Staff"
158 \description "Identical to @code{StaffGroup} except that the
159 contained staves are not connected vertically."
163 \type "Engraver_group"
165 localKeySignature = #'()
168 squashedPosition = #0
172 \override BarLine.bar-extent = #'(-2 . 2)
173 \override VoltaBracket.staff-padding = #3
174 \override StaffSymbol.line-count = #1
176 \override Stem.neutral-direction = #UP
177 \override Beam.neutral-direction = #UP
179 \consists "Output_property_engraver"
180 \consists "Font_size_engraver"
181 \consists "Separating_line_group_engraver"
182 \consists "Dot_column_engraver"
183 \consists "Bar_engraver"
184 \consists "Staff_symbol_engraver"
185 \consists "Pitch_squash_engraver"
186 \consists "Time_signature_engraver"
187 \consists "Instrument_name_engraver"
188 \consists "Axis_group_engraver"
189 \consists "Ledger_line_engraver"
191 %% explicitly set instrument, so it is not inherited from the parent
192 instrumentName = #'()
193 shortInstrumentName = #'()
197 \defaultchild "Voice"
199 \description "A context like @code{Staff} but for printing rhythms.
200 Pitches are ignored; the notes are printed on one line."
205 \type "Engraver_group"
208 \description "Corresponds to a voice on a staff. This context
209 handles the conversion of dynamic signs, stems, beams, super- and
210 subscripts, slurs, ties, and rests.
212 You have to instantiate this explicitly if you want to have
213 multiple voices on the same staff."
215 \consists "Font_size_engraver"
217 \consists "Pitched_trill_engraver"
218 \consists "Output_property_engraver"
219 \consists "Arpeggio_engraver"
220 \consists "Multi_measure_rest_engraver"
221 \consists "Text_spanner_engraver"
222 \consists "Trill_spanner_engraver"
223 \consists "Grob_pq_engraver"
224 \consists "Forbid_line_break_engraver"
225 \consists "Laissez_vibrer_engraver"
226 \consists "Repeat_tie_engraver"
227 \consists "Note_head_line_engraver"
228 \consists "Glissando_engraver"
229 \consists "Ligature_bracket_engraver"
230 \consists "Breathing_sign_engraver"
231 \consists "Note_heads_engraver"
232 \consists "Dots_engraver"
233 \consists "Rest_engraver"
235 %% switch on to make stem directions interpolate for the
237 % \consists "Melody_engraver"
239 \consists "Stem_engraver"
240 \consists "Beam_engraver"
241 \consists "Grace_beam_engraver"
242 \consists "Auto_beam_engraver"
244 %% must come before Script_column_engraver.
245 \consists "New_fingering_engraver"
247 \consists "Chord_tremolo_engraver"
248 \consists "Double_percent_repeat_engraver"
249 \consists "Percent_repeat_engraver"
250 \consists "Slash_repeat_engraver"
251 \consists "Part_combine_engraver"
253 \consists "Text_engraver"
254 \consists "New_dynamic_engraver"
255 \consists "Dynamic_align_engraver"
256 % \consists "Dynamic_engraver"
257 \consists "Fingering_engraver"
258 \consists "Bend_engraver"
260 \consists "Script_engraver"
261 \consists "Script_column_engraver"
262 \consists "Rhythmic_column_engraver"
263 \consists "Note_spacing_engraver"
264 \consists "Spanner_break_forbid_engraver"
265 \consists "Phrasing_slur_engraver"
266 \consists "Cluster_spanner_engraver"
267 \consists "Slur_engraver"
268 \consists "Tie_engraver"
269 \consists "Tuplet_engraver"
270 \consists "Grace_engraver"
271 \consists "Instrument_switch_engraver"
280 \override Stem.length-fraction = #(magstep -4)
281 \override Beam.length-fraction = #(magstep -4)
282 \override Beam.beam-thickness = #0.35
290 \description "A voice on a percussion staff."
291 \remove "Arpeggio_engraver"
292 \consists "Grob_pq_engraver"
294 \remove "Note_head_line_engraver"
295 \remove "Glissando_engraver"
296 \remove "Ligature_bracket_engraver"
297 \remove "Note_heads_engraver"
298 \consists "Drum_notes_engraver"
299 \remove "New_fingering_engraver"
301 \remove "Fingering_engraver"
303 \remove "Cluster_spanner_engraver"
307 \type "Engraver_group"
309 localKeySignature = #'()
311 \description "A group of staves, with a brace on the left
312 side, grouping the staves together. The bar lines of the
313 contained staves are connected vertically."
315 \consists "Instrument_name_engraver"
316 \consists "Span_bar_engraver"
317 \consists "Span_bar_stub_engraver"
318 \consists "Span_arpeggio_engraver"
319 \consists "System_start_delimiter_engraver"
320 \consists "Vertical_align_engraver"
321 systemStartDelimiter = #'SystemStartBrace
322 topLevelAlignment = ##f
323 %% explicitly set instrument, so it is not inherited from the parent
324 instrumentName = #'()
325 shortInstrumentName = #'()
327 \defaultchild "Staff"
329 \accepts "RhythmicStaff"
333 \accepts "FiguredBass"
335 \accepts "ChordNames"
343 \description "Just like @code{GrandStaff}, but the staves are only removed
344 together, never separately."
346 \consists "Vertical_align_engraver"
347 \consists "Keep_alive_together_engraver"
348 topLevelAlignment = ##f
350 instrumentName = #'()
351 shortInstrumentName = #'()
355 \type "Engraver_group"
358 \consists "Vertical_align_engraver"
359 topLevelAlignment = ##f
361 \consists "Instrument_name_engraver"
362 \consists "Span_bar_engraver"
363 \consists "Span_bar_stub_engraver"
364 \consists "Span_arpeggio_engraver"
365 \consists "Output_property_engraver"
366 systemStartDelimiter = #'SystemStartBracket
367 %% explicitly set instrument, so it is not inherited from the parent
368 instrumentName = #'()
369 shortInstrumentName = #'()
371 \consists "System_start_delimiter_engraver"
373 \defaultchild "Staff"
375 \accepts "RhythmicStaff"
377 \accepts "GrandStaff"
378 \accepts "PianoStaff"
381 \accepts "ChordNames"
382 \accepts "FiguredBass"
383 \accepts "ChoirStaff"
384 \accepts "StaffGroup"
386 \description "Groups staves while adding a bracket on the left
387 side, grouping the staves together. The bar lines of the contained
388 staves are connected vertically. @code{StaffGroup} only consists of
389 a collection of staves, with a bracket in front and spanning bar lines."
393 \type "Engraver_group"
396 \consists "Output_property_engraver"
397 \consists "Bar_engraver"
398 \consists "Piano_pedal_engraver"
399 \consists "Script_engraver"
400 \consists "New_dynamic_engraver"
401 \consists "Dynamic_align_engraver"
402 \consists "Text_engraver"
403 \consists "Text_spanner_engraver"
404 \consists "Font_size_engraver"
405 \consists "Axis_group_engraver"
407 pedalSustainStrings = #'("Ped." "*Ped." "*")
408 pedalUnaCordaStrings = #'("una corda" "" "tre corde")
409 \override VerticalAxisGroup.staff-affinity = #CENTER
410 \override VerticalAxisGroup.nonstaff-relatedstaff-spacing =
411 #'((basic-distance . 5)
413 \override TextScript.font-shape = #'italic
414 \override DynamicLineSpanner.Y-offset = #0
415 \override DynamicLineSpanner.outside-staff-priority = ##f
416 \override DynamicText.outside-staff-priority = ##f
417 \override Hairpin.outside-staff-priority = ##f
418 \override DynamicText.X-offset =
419 #(ly:make-simple-closure
421 ,(ly:make-simple-closure
422 (list ly:self-alignment-interface::centered-on-note-columns))
423 ,(ly:make-simple-closure
424 (list ly:self-alignment-interface::x-aligned-on-self))))
426 \description "Holds a single line of dynamics, which will be
427 centered between the staves surrounding this context."
432 \type "Engraver_group"
434 \description "Corresponds to a voice with lyrics. Handles the
435 printing of a single line of lyrics."
438 \consists "Lyric_engraver"
439 \consists "Extender_engraver"
440 \consists "Hyphen_engraver"
441 \consists "Stanza_number_engraver"
442 \consists "Instrument_name_engraver"
443 \consists "Font_size_engraver"
444 \consists "Axis_group_engraver"
445 \consists "Pure_from_neighbor_engraver"
447 %% explicitly set instrument, so it is not inherited from the parent
448 instrumentName = #'()
449 shortInstrumentName = #'()
451 \override VerticalAxisGroup.remove-first = ##t
452 \override VerticalAxisGroup.remove-empty = ##t
453 \override VerticalAxisGroup.staff-affinity = #UP
454 \override VerticalAxisGroup.nonstaff-relatedstaff-spacing =
455 #'((basic-distance . 5.5)
457 (stretchability . 1))
458 \override VerticalAxisGroup.nonstaff-nonstaff-spacing =
459 #'((basic-distance . 0)
460 (minimum-distance . 2.8)
462 (stretchability . 0))
463 \override VerticalAxisGroup.nonstaff-unrelatedstaff-spacing.padding = #1.5
464 \override InstrumentName.self-alignment-Y = ##f
466 %% sync with define-grobs.scm ;
467 \override InstrumentName.font-size = #1.0
469 %% make sure that barlines aren't collapsed, when
470 %% Bar_engraver is there.
471 \override BarLine.bar-extent = #'(-0.05 . 0.05)
476 \type "Engraver_group"
478 \description "A context for printing the names of notes."
479 \consists "Axis_group_engraver"
481 \override VerticalAxisGroup.staff-affinity = #UP
482 \override VerticalAxisGroup.nonstaff-nonstaff-spacing =
483 #'((basic-distance . 0)
484 (minimum-distance . 2.8)
486 (stretchability . 0))
487 \override VerticalAxisGroup.nonstaff-relatedstaff-spacing =
488 #'((basic-distance . 5.5)
490 (stretchability . 1))
491 \override VerticalAxisGroup.nonstaff-unrelatedstaff-spacing.padding = 1.5
493 \consists "Tie_engraver"
494 \consists "Note_name_engraver"
495 \consists "Separating_line_group_engraver"
499 \type "Engraver_group"
501 \description "Typesets chord names."
503 \consists "Output_property_engraver"
504 \consists "Separating_line_group_engraver"
505 \consists "Chord_name_engraver"
506 \consists "Axis_group_engraver"
507 % \consists "Note_spacing_engraver"
509 \override VerticalAxisGroup.remove-first = ##t
510 \override VerticalAxisGroup.remove-empty = ##t
511 \override VerticalAxisGroup.staff-affinity = #DOWN
512 \override VerticalAxisGroup.nonstaff-relatedstaff-spacing.padding = #0.5
513 \override VerticalAxisGroup.nonstaff-nonstaff-spacing.padding = #0.5
517 \type "Score_engraver"
520 \description "This is the top level notation context. No
521 other context can contain a @code{Score} context. This context
522 handles the administration of time signatures. It also makes sure
523 that items such as clefs, time signatures, and key-signatures are
524 aligned across staves.
526 You cannot explicitly instantiate a @code{Score} context (since it
527 is not contained in any other context). It is instantiated
528 automatically when an output definition (a @code{\\score} or
529 @code{\\layout} block) is processed."
531 \consists "Paper_column_engraver"
532 \consists "Repeat_acknowledge_engraver"
533 \consists "Staff_collecting_engraver"
537 %% An alias for Timing is established by the Timing_translator in
538 %% whatever context it is initialized, and the timing variables are
539 %% then copied from wherever Timing had been previously established.
540 %% The alias at Score level provides a target for initializing
541 %% Timing variables in layout definitions before any
542 %% Timing_translator has been run.
544 % timing translator must come BEFORE bar number engraver
545 \consists "Timing_translator"
546 \consists "Default_bar_line_engraver"
547 \consists "Output_property_engraver"
548 \consists "Tweak_engraver"
549 \consists "System_start_delimiter_engraver"
550 \consists "Mark_engraver"
551 \consists "Volta_engraver"
552 \consists "Metronome_mark_engraver"
553 \consists "Break_align_engraver"
554 \consists "Spacing_engraver"
555 \consists "Grace_spacing_engraver"
556 \consists "Vertical_align_engraver"
557 \consists "Stanza_number_align_engraver"
558 \consists "Bar_number_engraver"
559 \consists "Parenthesis_engraver"
560 \consists "Concurrent_hairpin_engraver"
561 \consists "Beam_collision_engraver"
562 \consists "Footnote_engraver"
564 \defaultchild "Staff"
566 \accepts "FretBoards"
568 \accepts "RhythmicStaff"
570 \accepts "VaticanaStaff"
571 \accepts "GregorianTranscriptionStaff"
572 \accepts "MensuralStaff"
573 \accepts "PetrucciStaff"
574 \accepts "StaffGroup"
576 \accepts "KievanStaff"
578 \accepts "ChordNames"
579 \accepts "GrandStaff"
580 \accepts "ChoirStaff"
581 \accepts "PianoStaff"
584 \accepts "FiguredBass"
586 noteToFretFunction = #determine-frets
587 predefinedDiagramTable = ##f
589 soloIIText = #"Solo II"
591 printPartCombineTexts = ##t
592 partCombineTextsOnNote = ##t
593 systemStartDelimiter =#'SystemStartBar
595 drumStyleTable = #drums-style
597 melismaBusyProperties = #default-melisma-properties
599 clefGlyph = #"clefs.G"
601 middleCClefPosition = #-6
602 middleCPosition = #-6
605 crescendoSpanner = #'hairpin
606 decrescendoSpanner = #'hairpin
608 defaultBarType = #"|"
609 doubleRepeatType = #":..:"
610 startRepeatType = #".|:"
611 endRepeatType = #":|."
612 barNumberVisibility = #first-bar-number-invisible-and-no-parenthesized-bar-numbers
613 barNumberFormatter = #robust-bar-number-function
614 clefTranspositionFormatter = #clef-transposition-markup
615 cueClefTranspositionFormatter = #clef-transposition-markup
618 explicitClefVisibility = #all-visible
619 explicitCueClefVisibility = #end-of-line-invisible
620 explicitKeySignatureVisibility = #all-visible
621 implicitTimeSignatureVisibility = #end-of-line-invisible
623 repeatCountVisibility = #all-repeat-counts-visible
625 %% Other Timing variables are derived and set by the Timing_translator
626 %% at initialization time by calling the functions in
627 %% scm/time-signature-settings.scm
629 timeSignatureSettings = #default-time-signature-settings
630 timeSignatureFraction = 4/4
632 beamHalfMeasure = ##t
635 autoBeamCheck = #default-auto-beam-check
637 scriptDefinitions = #default-script-alist
639 pedalSustainStrings = #'("Ped." "*Ped." "*")
640 pedalSustainStyle = #'text
641 pedalUnaCordaStrings = #'("una corda" "" "tre corde")
642 pedalUnaCordaStyle = #'text
644 %% These are in ordinary italic font, including the *,
645 %% but they are unlikely to be used,
646 %% as the default pedal-style for SostenutoPedal is 'mixed':
647 %% i.e. Sost. Ped_____________________
648 pedalSostenutoStrings = #'("Sost. Ped." "*Sost. Ped." "*")
649 pedalSostenutoStyle = #'mixed
651 harmonicAccidentals = ##t
652 fingeringOrientations = #'(up down)
653 stringNumberOrientations = #'(up down)
654 strokeFingerOrientations = #'(right)
656 lyricMelismaAlignment = #LEFT
657 markFormatter = #format-mark-letters
661 autoAccidentals = #`(Staff ,(make-accidental-rule 'same-octave 0))
662 autoCautionaries = #'()
664 printKeyCancellation = ##t
665 keyAlterationOrder = #`(
666 (6 . ,FLAT) (2 . ,FLAT) (5 . ,FLAT ) (1 . ,FLAT) (4 . ,FLAT) (0 . ,FLAT) (3 . ,FLAT)
667 (3 . ,SHARP) (0 . ,SHARP) (4 . ,SHARP) (1 . ,SHARP) (5 . ,SHARP) (2 . ,SHARP) (6 . ,SHARP)
668 (6 . ,DOUBLE-FLAT) (2 . ,DOUBLE-FLAT) (5 . ,DOUBLE-FLAT ) (1 . ,DOUBLE-FLAT) (4 . ,DOUBLE-FLAT) (0 . ,DOUBLE-FLAT) (3 . ,DOUBLE-FLAT)
669 (3 . ,DOUBLE-SHARP) (0 . ,DOUBLE-SHARP) (4 . ,DOUBLE-SHARP) (1 . ,DOUBLE-SHARP) (5 . ,DOUBLE-SHARP) (2 . ,DOUBLE-SHARP) (6 . ,DOUBLE-SHARP)
672 barCheckSynchronize = ##f
675 chordNameFunction = #ignatzek-chord-names
676 minorChordModifier = #(make-simple-markup "m")
677 additionalPitchPrefix = #"" % was "add"
678 majorSevenSymbol = #whiteTriangleMarkup
679 chordNameLowercaseMinor = ##f
680 chordNameSeparator = #(make-hspace-markup 0.5)
681 slashChordSeparator = #(make-simple-markup "/")
682 chordNameExceptions = #ignatzekExceptions
683 chordNoteNamer = #'()
684 chordRootNamer = #note-name->markup
685 chordPrefixSpacer = #0
686 chordNameExceptionsFull = #fullJazzExceptions
687 chordNameExceptionsPartial = #partialJazzExceptions
688 noChordSymbol = #(make-simple-markup "N.C.")
690 bassStaffProperties = #'((assign clefGlyph "clefs.F")
691 (assign clefPosition 2)
692 (assign middleCPosition 6)
693 (assign middleCClefPosition 6))
695 stringOneTopmost = ##t
698 %% One may change the string tunings as follows :
699 %% The length of the list must be equal to the number of strings
700 stringTunings = #guitar-tuning
701 tablatureFormat = #fret-number-tablature-format
702 tabStaffLineLayoutFunction = #tablature-position-on-lines
705 figuredBassFormatter = #format-bass-figure
706 metronomeMarkFormatter = #format-metronome-markup
708 %% See also make-voice-props-set
709 graceSettings = #score-grace-settings
711 keepAliveInterfaces = #'(
712 bass-figure-interface
714 cluster-beacon-interface
715 fret-diagram-interface
716 lyric-syllable-interface
718 tab-note-head-interface
720 percent-repeat-item-interface
721 percent-repeat-interface
723 ;; need this, as stanza numbers are items, and appear only once.
724 stanza-number-interface
726 % \quoteDuring is supposed to quote everything, cueDuring only the essentials
727 quotedEventTypes = #'(StreamEvent)
728 quotedCueEventTypes = #'(
734 instrumentTransposition = #(ly:make-pitch 0 0 0)
736 topLevelAlignment = ##t
745 \type "Engraver_group"
747 \description "A context for printing a figured bass line."
749 \consists "Figured_bass_engraver"
750 \consists "Separating_line_group_engraver"
751 \consists "Axis_group_engraver"
753 \override VerticalAxisGroup.remove-empty = ##t
754 \override VerticalAxisGroup.remove-first = ##t
755 \override VerticalAxisGroup.staff-affinity = #UP
756 \override VerticalAxisGroup.nonstaff-relatedstaff-spacing.padding = #0.5
757 \override VerticalAxisGroup.nonstaff-nonstaff-spacing.padding = #0.5
762 \type "Engraver_group"
764 %% don't want to route anything out of here:
767 \description "Silently discards all musical information given to this
773 \type "Engraver_group"
775 \description "Non-printing context, typically used for aligning
776 lyrics in polyphonic situations, or with @code{\partcombine}."
778 %% don't route anything out of here
782 %% all three are needed for ties to work with lyrics
783 \consists "Note_heads_engraver"
784 \consists "Rhythmic_column_engraver"
785 \consists "Tie_engraver"
787 %% both are needed for melismas to work with \autoBeamOff
788 \consists "Beam_engraver"
789 \consists "Stem_engraver"
791 %% needed for slurs to work with lyrics
792 \consists "Slur_engraver"
794 %% keep noteheads inside the staff
795 \consists "Pitch_squash_engraver"
798 %% `\omit NoteHead' would give slur attachment errors
808 %% let these take up space (for lyric extenders, etc.)
809 \override NoteHead.transparent = ##t
810 \override TabNoteHead.transparent = ##t
812 %% don't let notes shift
813 \override NoteHead.X-offset = 0
814 \override NoteColumn.ignore-collision = ##t
816 %% keep beams and stems inside the staff
817 \override Beam.positions = #'(1 . 1)
818 \override Stem.length = 0
820 %% prevent "weird stem size" warnings
821 \override Stem.direction = #UP
828 \consists "Tab_note_heads_engraver"
829 \consists "Tab_tie_follow_engraver"
831 \remove "Note_heads_engraver"
832 \remove "Fingering_engraver"
833 \remove "New_fingering_engraver"
834 \remove "Pitched_trill_engraver"
836 \description "Context for drawing notes in a Tab staff."
838 %% No accidental in tablature !
839 \remove "Accidental_engraver"
847 \consists "Tab_staff_symbol_engraver"
849 \description "Context for generating tablature. It accepts only @code{TabVoice}
850 contexts and handles the line spacing, the tablature clef etc. properly."
853 \defaultchild "TabVoice"
855 %% 6 strings, bigger spacing
856 \override StaffSymbol.staff-space = #1.5
858 %% Don't draw stems over the tablature figures !
859 \override Stem.avoid-note-head = ##t
861 %% No accidental in tablature !
862 \remove "Accidental_engraver"
863 \remove "Key_engraver"
865 \remove "Ottava_spanner_engraver"
867 \override Clef.stencil = #clef::print-modern-tab-if-set
869 \override TimeSignature.stencil = ##f
871 \override Arpeggio.stencil = ##f
872 %% we ignore collision warnings that may occur due to
873 %% stem overlapping, because we have no stems ;-)
874 \override NoteColumn.ignore-collision = ##t
875 %% Special "TAB" clef
876 clefGlyph = #"clefs.tab"
878 %% Change string if note results in negative fret number
879 handleNegativeFrets = #'recalculate
880 %% Allow open strings even if minimumFret is set
881 restrainOpenStrings = ##f
883 %% TabStaff increase the staff-space, which in turn
884 %% increases beam thickness and spacing; beams are
885 %% too big. We have to adjust the beam settings:
886 \override Beam.beam-thickness = #0.32
887 \override Beam.length-fraction = #0.62
888 %% the same goes for tremolo beams
889 \override StemTremolo.beam-thickness = #0.32
890 %% NOTE: in lily/stem-tremolo.cc, we have length-fraction = 1,
891 %% and the tablature staff space is scaled (1.5 by default),
892 %% so we use the inversion of the scale factor:
893 \override StemTremolo.length-fraction = #(lambda (grob)
894 (/ 1 (ly:staff-symbol-staff-space grob)))
895 \override StemTremolo.beam-width = #stem-tremolo::calc-tab-width
897 %% make the Stems as short as possible to minimize their influence
898 %% on the slur::calc-control-points routine
899 \override Stem.no-stem-extend = ##t
900 \override Flag.style = #'no-flag
901 \override Stem.details = #'((lengths 0 0 0 0 0 0)
902 (beamed-lengths 0 0 0)
903 (beamed-minimum-free-lengths 0 0 0)
904 (beamed-extreme-minimum-free-lengths 0 0)
906 %% after all, the stubs of the stems may still be visible, so ...
907 \override Stem.stencil = ##f
908 \override Flag.stencil = ##f
909 %% automatic beams should be suppressed for similar reasons ...
911 %% remove beams, dots and rests ...
912 \override Beam.stencil = ##f
913 \override StemTremolo.stencil = ##f
914 \override Dots.stencil = ##f
915 \override Rest.stencil = ##f
916 \override MultiMeasureRest.stencil = ##f
917 \override MultiMeasureRestNumber.stencil = ##f
918 \override MultiMeasureRestText.stencil = ##f
919 %% ... all kinds of ties/slurs
920 \override Tie.stencil = ##f
921 \override RepeatTie.stencil = ##f
922 \override LaissezVibrerTie.stencil = ##f
923 \override Slur.stencil = #slur::draw-tab-slur
924 \override PhrasingSlur.stencil = ##f
925 %% 'tied to' fret numbers become invisible or parenthesized, respectively)
926 \override Tie.after-line-breaking = #tie::handle-tab-note-head
927 \override RepeatTie.after-line-breaking = #repeat-tie::handle-tab-note-head
928 %% ... and all kinds of markups, spanners etc.
929 \override TupletBracket.stencil = ##f
930 \override TupletNumber.stencil = ##f
931 \override DynamicText.stencil = ##f
932 \override DynamicTextSpanner.stencil = ##f
933 \override TextSpanner.stencil = ##f
934 \override Hairpin.stencil = ##f
935 \override Script.stencil = ##f
936 \override TextScript.stencil = ##f
937 \override Glissando.stencil = #glissando::draw-tab-glissando
938 %% the direction for glissando lines will be automatically corrected
939 \override Glissando.extra-dy = #glissando::calc-tab-extra-dy
940 \override Glissando.bound-details.right = #`((attach-dir . ,LEFT)
942 \override Glissando.bound-details.left = #`((attach-dir . ,RIGHT)
945 \override TabNoteHead.glyph-name = #tab-note-head::calc-glyph-name
946 \override TabNoteHead.stencil = #tab-note-head::whiteout-if-style-set
951 \name "VaticanaVoice"
953 \description "Same as @code{Voice} context, except that it is
954 accommodated for typesetting Gregorian Chant in the notational style
957 \remove "Slur_engraver"
958 \remove "Stem_engraver"
959 \remove "Ligature_bracket_engraver"
960 \consists "Vaticana_ligature_engraver"
961 \remove "Text_spanner_engraver"
962 \consists "Episema_engraver"
964 %% Set default head for notes outside of \[ \].
965 \override NoteHead.style = #'vaticana.punctum
967 %% Put some space before and after divisiones.
968 %% FIXME: This does not seem to show any effect.
969 \override Script.padding = #0.5
971 %% There are no beams in Gregorian Chant notation.
977 \name "VaticanaStaff"
980 \accepts "VaticanaVoice"
981 \defaultchild "VaticanaVoice"
983 \description "Same as @code{Staff} context, except that it is
984 accommodated for typesetting Gregorian Chant in the notational style
987 \remove "Time_signature_engraver"
988 \consists "Custos_engraver"
990 %% We can not remove Bar_engraver; otherwise clefs and custodes will
991 %% not show up any more among other line breaking issues.
992 %% Instead, we make the grob transparent.
993 \override BarLine.transparent = ##t
995 \override StaffSymbol.line-count = #4
996 \override StaffSymbol.thickness = #0.6
998 %% FIXME: unit on StaffSymbol's width should be \linewidth.
999 %% \override StaffSymbol.width = #60.0
1001 %% Choose vaticana do clef on 3rd line as default.
1002 clefGlyph = #"clefs.vaticana.do"
1003 middleCPosition = #1
1004 middleCClefPosition = #1
1006 clefTransposition = #0
1008 %% Select vaticana style font.
1009 \override KeySignature.glyph-name-alist = #alteration-vaticana-glyph-name-alist
1010 \override Accidental.glyph-name-alist = #alteration-vaticana-glyph-name-alist
1011 \override Custos.style = #'vaticana
1012 \override Custos.neutral-position = #3
1013 \override Custos.neutral-direction = #DOWN
1014 \override Dots.style = #'vaticana
1019 \name "GregorianTranscriptionVoice"
1021 \consists "Episema_engraver"
1023 %% Removing ligature bracket engraver without replacing it by some
1024 %% other ligature engraver would cause a "Junking event: `LigatureEvent'"
1025 %% warning for every "\[" and "\]". Therefore, we make the grob
1026 %% transparent instead.
1027 \override LigatureBracket.transparent = ##t
1029 %% Put some space before and after divisiones.
1030 %% FIXME: This does not seem to show any effect.
1031 \override Script.padding = #0.5
1033 %% There are no beams in Gregorian Chant notation.
1040 \name "GregorianTranscriptionStaff"
1043 \accepts "GregorianTranscriptionVoice"
1044 \defaultchild "GregorianTranscriptionVoice"
1046 %% We can not remove Bar_engraver; otherwise clefs and custodes will
1047 %% not show up any more among other line breaking issues.
1048 %% Instead, we make the grob transparent.
1049 \override BarLine.transparent = ##t
1054 \name "MensuralVoice"
1056 \description "Same as @code{Voice} context, except that it is
1057 accommodated for typesetting a piece in mensural style."
1059 \remove "Slur_engraver"
1060 \remove "Ligature_bracket_engraver"
1061 \consists "Mensural_ligature_engraver"
1063 %% Set default head for notes outside of \[ \].
1064 \override NoteHead.style = #'mensural
1065 \override Rest.style = #'mensural
1066 \override Flag.style = #'mensural
1068 %% There are no beams in mensural notation.
1074 \name "MensuralStaff"
1077 \defaultchild "MensuralVoice"
1078 \accepts "MensuralVoice"
1079 \description "Same as @code{Staff} context, except that it is
1080 accommodated for typesetting a piece in mensural style."
1082 \consists "Custos_engraver"
1084 %% We can not remove Bar_engraver; otherwise clefs and custodes will
1085 %% not show up any more among other line breaking issues.
1086 %% Instead, we make the grob transparent.
1087 \override BarLine.transparent = ##t
1089 \override StaffSymbol.thickness = #0.6
1091 %% FIXME: unit on StaffSymbol's width should be \linewidth.
1092 %% \override StaffSymbol.width = #60.0
1094 %% Choose mensural g clef on 2nd line as default.
1095 clefGlyph = #"clefs.mensural.g"
1096 middleCClefPosition = #-6
1097 middleCPosition = #-6
1099 clefTransposition = #0
1101 %% Select mensural style font.
1102 \override TimeSignature.style = #'mensural
1103 \override KeySignature.glyph-name-alist = #alteration-mensural-glyph-name-alist
1104 \override Accidental.glyph-name-alist = #alteration-mensural-glyph-name-alist
1105 \override Custos.style = #'mensural
1106 \override Custos.neutral-position = #3
1107 \override Custos.neutral-direction = #DOWN
1109 %% Accidentals are valid only once (same as
1110 %% \accidentalStyle forget)
1112 autoAccidentals = #`(Staff ,(make-accidental-rule 'same-octave -1))
1113 autoCautionaries = #'()
1114 printKeyCancellation = ##f
1119 \name "PetrucciVoice"
1121 \description "Same as @code{Voice} context, except that it is
1122 accommodated for typesetting a piece in Petrucci style."
1124 \remove "Ligature_bracket_engraver"
1125 \consists "Mensural_ligature_engraver"
1127 %% Set glyph styles.
1128 \override NoteHead.style = #'petrucci
1129 \override Rest.style = #'mensural
1131 % Thickens and shortens stems.
1132 \override Stem.thickness = #1.7
1133 \override Stem.length = #5
1135 %% There are no beams in Petrucci notation.
1141 \name "PetrucciStaff"
1144 \defaultchild "PetrucciVoice"
1145 \accepts "PetrucciVoice"
1146 \description "Same as @code{Staff} context, except that it is
1147 accommodated for typesetting a piece in Petrucci style."
1149 \consists "Custos_engraver"
1151 \override StaffSymbol.thickness = #1.3
1153 %% Choose Petrucci g clef on 2nd line as default.
1154 clefGlyph = #"clefs.petrucci.g"
1155 middleCClefPosition = #-6
1156 middleCPosition = #-6
1158 clefTransposition = #0
1160 \override Custos.style = #'mensural
1161 \override Custos.neutral-position = #3
1162 \override Custos.neutral-direction = #DOWN
1164 %% Accidentals are valid only once (if the following note is different)
1166 autoAccidentals = #`(Staff ,(make-accidental-rule 'same-octave 0)
1167 ,neo-modern-accidental-rule)
1168 autoCautionaries = #'()
1169 printKeyCancellation = ##f
1176 \description "Same as @code{Voice} context, except that it is
1177 accommodated for typesetting a piece in Kievan style."
1179 \remove "Ligature_bracket_engraver"
1180 \consists "Kievan_ligature_engraver"
1182 %% Set glyph styles.
1183 \override NoteHead.style = #'kievan
1184 \override Stem.X-offset = #stem::kievan-offset-callback
1185 \override Stem.stencil = ##f
1186 \override Flag.stencil = ##f
1187 \override Rest.style = #'mensural
1188 \override Accidental.glyph-name-alist = #alteration-kievan-glyph-name-alist
1189 \override Dots.style = #'kievan
1190 \override Slur.stencil = ##f
1191 \override Stem.length = #0.0
1192 \override Beam.positions = #beam::get-kievan-positions
1193 \override Beam.quantized-positions = #beam::get-kievan-quantized-positions
1194 \override NoteHead.duration-log = #note-head::calc-kievan-duration-log
1196 %% There are beams in Kievan notation, but they are invoked manually
1205 \defaultchild "KievanVoice"
1206 \accepts "KievanVoice"
1207 \description "Same as @code{Staff} context, except that it is
1208 accommodated for typesetting a piece in Kievan style."
1210 \remove "Time_signature_engraver"
1212 %% Choose Kievan tsefaut clef
1213 clefGlyph = #"clefs.kievan.do"
1214 middleCClefPosition = #0
1215 middleCPosition = #0
1217 clefTransposition = #0
1219 %% Accidentals are valid only once (if the following note is different)
1221 autoAccidentals = #`(Staff ,(make-accidental-rule 'same-octave 0)
1222 ,neo-modern-accidental-rule)
1223 autoCautionaries = #'()
1224 printKeyCancellation = ##f
1228 %% Keep the old definitions in here for compatibility (they erase previous
1229 %% settings to the corresponding context!).
1230 %% For new scores, one should simply insert the \RemoveEmptyStaves settings
1231 %% into the desired context. That's just as easy, requires only one line more
1232 %% (the \*Staff), but preserves previous context mods.
1233 %% TODO: DEPRECATED_2.13.17, remove at some point in the future
1234 RemoveEmptyStaffContext = \context {
1239 AncientRemoveEmptyStaffContext = \context {
1244 RemoveEmptyDrumStaffContext = \context {
1249 RemoveEmptyRhythmicStaffContext = \context {
1254 RemoveEmptyTabStaffContext = \context {