1 %%%% This file is part of LilyPond, the GNU music typesetter.
3 %%%% Copyright (C) 1996--2015 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 localAlterations = #'()
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 = #'()
147 \accepts "ChoirStaff"
148 \accepts "ChordNames"
151 \accepts "FiguredBass"
152 \accepts "GrandStaff"
155 \accepts "PianoStaff"
156 \accepts "RhythmicStaff"
158 \accepts "StaffGroup"
159 \defaultchild "Staff"
160 \description "Identical to @code{StaffGroup} except that the
161 contained staves are not connected vertically."
165 \type "Engraver_group"
167 localAlterations = #'()
170 squashedPosition = #0
171 \name "RhythmicStaff"
174 \override VoltaBracket.staff-padding = #3
175 \override StaffSymbol.line-count = #1
177 \override Stem.neutral-direction = #UP
178 \override Beam.neutral-direction = #UP
180 \consists "Output_property_engraver"
181 \consists "Font_size_engraver"
182 \consists "Separating_line_group_engraver"
183 \consists "Dot_column_engraver"
184 \consists "Bar_engraver"
185 \consists "Staff_symbol_engraver"
186 \consists "Pitch_squash_engraver"
187 \consists "Time_signature_engraver"
188 \consists "Instrument_name_engraver"
189 \consists "Axis_group_engraver"
190 \consists "Ledger_line_engraver"
192 %% explicitly set instrument, so it is not inherited from the parent
193 instrumentName = #'()
194 shortInstrumentName = #'()
199 \defaultchild "Voice"
201 \description "A context like @code{Staff} but for printing rhythms.
202 Pitches are ignored; the notes are printed on one line."
207 \type "Engraver_group"
210 \description "Corresponds to a voice on a staff. This context
211 handles the conversion of dynamic signs, stems, beams, super- and
212 subscripts, slurs, ties, and rests.
214 You have to instantiate this explicitly if you want to have
215 multiple voices on the same staff."
216 %% Grace_engraver sets properties, it must come first.
217 \consists "Grace_engraver"
218 \consists "Font_size_engraver"
220 \consists "Pitched_trill_engraver"
221 \consists "Output_property_engraver"
222 \consists "Arpeggio_engraver"
223 \consists "Multi_measure_rest_engraver"
224 \consists "Text_spanner_engraver"
225 \consists "Trill_spanner_engraver"
226 \consists "Grob_pq_engraver"
227 \consists "Forbid_line_break_engraver"
228 \consists "Laissez_vibrer_engraver"
229 \consists "Repeat_tie_engraver"
230 \consists "Note_head_line_engraver"
231 \consists "Glissando_engraver"
232 \consists "Ligature_bracket_engraver"
233 \consists "Breathing_sign_engraver"
234 \consists "Note_heads_engraver"
235 \consists "Dots_engraver"
236 \consists "Rest_engraver"
238 %% switch on to make stem directions interpolate for the
240 % \consists "Melody_engraver"
242 \consists "Stem_engraver"
243 \consists "Beam_engraver"
244 \consists "Grace_beam_engraver"
245 \consists "Auto_beam_engraver"
246 \consists "Grace_auto_beam_engraver"
248 %% must come before Script_column_engraver.
249 \consists "New_fingering_engraver"
251 \consists "Chord_tremolo_engraver"
252 \consists "Double_percent_repeat_engraver"
253 \consists "Percent_repeat_engraver"
254 \consists "Slash_repeat_engraver"
255 \consists "Part_combine_engraver"
257 \consists "Text_engraver"
258 \consists "Dynamic_engraver"
259 \consists "Dynamic_align_engraver"
260 \consists "Fingering_engraver"
261 \consists "Bend_engraver"
263 \consists "Script_engraver"
264 \consists "Script_column_engraver"
265 \consists "Rhythmic_column_engraver"
266 \consists "Note_spacing_engraver"
267 \consists "Spanner_break_forbid_engraver"
268 \consists "Phrasing_slur_engraver"
269 \consists "Cluster_spanner_engraver"
270 \consists "Slur_engraver"
271 \consists "Tie_engraver"
272 \consists "Tuplet_engraver"
273 \consists "Instrument_switch_engraver"
282 \override NoteHead.ignore-ambitus = ##t
283 \override Stem.length-fraction = #(magstep -4)
284 \override Beam.length-fraction = #(magstep -4)
285 \override Beam.beam-thickness = #0.35
293 \description "A voice on a percussion staff."
294 \remove "Arpeggio_engraver"
295 \consists "Grob_pq_engraver"
297 \remove "Note_head_line_engraver"
298 \remove "Glissando_engraver"
299 \remove "Ligature_bracket_engraver"
300 \remove "Note_heads_engraver"
301 \consists "Drum_notes_engraver"
302 \remove "New_fingering_engraver"
304 \remove "Fingering_engraver"
306 \remove "Cluster_spanner_engraver"
310 \type "Engraver_group"
312 localAlterations = #'()
314 \description "A group of staves, with a brace on the left
315 side, grouping the staves together. The bar lines of the
316 contained staves are connected vertically."
318 \consists "Instrument_name_engraver"
319 \consists "Span_bar_engraver"
320 %% The default for DynamicText.extra-spacing-width causes dynamics to
321 %% be placed across span bars, so switch it off:
322 \override DynamicText.extra-spacing-width = ##f
323 \consists "Span_bar_stub_engraver"
324 \consists "Span_arpeggio_engraver"
325 \consists "System_start_delimiter_engraver"
326 \consists "Vertical_align_engraver"
327 systemStartDelimiter = #'SystemStartBrace
328 topLevelAlignment = ##f
329 %% explicitly set instrument, so it is not inherited from the parent
330 instrumentName = #'()
331 shortInstrumentName = #'()
333 \defaultchild "Staff"
334 \accepts "ChordNames"
337 \accepts "FiguredBass"
339 \accepts "RhythmicStaff"
349 \description "Just like @code{GrandStaff}, but the staves are only removed
350 together, never separately."
352 \consists "Vertical_align_engraver"
353 \consists "Keep_alive_together_engraver"
354 topLevelAlignment = ##f
356 instrumentName = #'()
357 shortInstrumentName = #'()
361 \type "Engraver_group"
364 \consists "Vertical_align_engraver"
365 topLevelAlignment = ##f
367 \consists "Instrument_name_engraver"
368 \consists "Span_bar_engraver"
369 %% The default for DynamicText.extra-spacing-width causes dynamics to
370 %% be placed across span bars, so switch it off:
371 \override DynamicText.extra-spacing-width = ##f
372 \consists "Span_bar_stub_engraver"
373 \consists "Span_arpeggio_engraver"
374 \consists "Output_property_engraver"
375 systemStartDelimiter = #'SystemStartBracket
376 %% explicitly set instrument, so it is not inherited from the parent
377 instrumentName = #'()
378 shortInstrumentName = #'()
380 \consists "System_start_delimiter_engraver"
382 \defaultchild "Staff"
383 \accepts "ChoirStaff"
384 \accepts "ChordNames"
386 \accepts "FiguredBass"
387 \accepts "FretBoards"
388 \accepts "GrandStaff"
391 \accepts "PianoStaff"
392 \accepts "RhythmicStaff"
394 \accepts "StaffGroup"
397 \description "Groups staves while adding a bracket on the left
398 side, grouping the staves together. The bar lines of the contained
399 staves are connected vertically. @code{StaffGroup} only consists of
400 a collection of staves, with a bracket in front and spanning bar lines."
404 \type "Engraver_group"
406 \accepts "ChordNames"
409 \accepts "FiguredBass"
410 \accepts "FretBoards"
411 \accepts "GregorianTranscriptionStaff"
412 \accepts "KievanStaff"
414 \accepts "MensuralStaff"
416 \accepts "PetrucciStaff"
417 \accepts "RhythmicStaff"
420 \accepts "VaticanaStaff"
421 \defaultchild "Staff"
422 \consists "Axis_group_engraver"
424 \description "Provides a common axis for the contained staves,
425 making all of them appear in the same vertical space. This can be
426 useful for typesetting staves of different types in immediate succession
427 or for temporarily changing the character of one staff or overlaying
428 it with a different one. Often used with @code{\\stopStaff} and
429 @code{\\startStaff} for best results."
433 \type "Engraver_group"
436 \consists "Output_property_engraver"
437 \consists "Bar_engraver"
438 \consists "Piano_pedal_engraver"
439 \consists "Script_engraver"
440 \consists "Dynamic_engraver"
441 \consists "Dynamic_align_engraver"
442 \consists "Text_engraver"
443 \consists "Text_spanner_engraver"
444 \consists "Font_size_engraver"
445 \consists "Axis_group_engraver"
447 pedalSustainStrings = #'("Ped." "*Ped." "*")
448 pedalUnaCordaStrings = #'("una corda" "" "tre corde")
449 \override VerticalAxisGroup.staff-affinity = #CENTER
450 \override VerticalAxisGroup.nonstaff-relatedstaff-spacing =
451 #'((basic-distance . 5)
453 \override TextScript.font-shape = #'italic
454 \override DynamicLineSpanner.Y-offset = #0
455 \override DynamicLineSpanner.outside-staff-priority = ##f
456 \override DynamicText.outside-staff-priority = ##f
457 \override Hairpin.outside-staff-priority = ##f
459 \description "Holds a single line of dynamics, which will be
460 centered between the staves surrounding this context."
465 \type "Engraver_group"
467 \description "Corresponds to a voice with lyrics. Handles the
468 printing of a single line of lyrics."
471 \consists "Lyric_engraver"
472 \consists "Extender_engraver"
473 \consists "Hyphen_engraver"
474 \consists "Stanza_number_engraver"
475 \consists "Instrument_name_engraver"
476 \consists "Font_size_engraver"
477 \consists "Axis_group_engraver"
478 \consists "Pure_from_neighbor_engraver"
480 %% explicitly set instrument, so it is not inherited from the parent
481 instrumentName = #'()
482 shortInstrumentName = #'()
484 \override VerticalAxisGroup.remove-first = ##t
485 \override VerticalAxisGroup.remove-empty = ##t
486 \override VerticalAxisGroup.staff-affinity = #UP
487 \override VerticalAxisGroup.nonstaff-relatedstaff-spacing =
488 #'((basic-distance . 5.5)
490 (stretchability . 1))
491 \override VerticalAxisGroup.nonstaff-nonstaff-spacing =
492 #'((basic-distance . 0)
493 (minimum-distance . 2.8)
495 (stretchability . 0))
496 \override VerticalAxisGroup.nonstaff-unrelatedstaff-spacing.padding = #1.5
497 \override InstrumentName.self-alignment-Y = ##f
499 %% sync with define-grobs.scm ;
500 \override InstrumentName.font-size = #1.0
502 %% make sure that barlines aren't collapsed, when
503 %% Bar_engraver is there.
504 \override BarLine.bar-extent = #'(-0.05 . 0.05)
509 \type "Engraver_group"
511 \description "A context for printing the names of notes."
512 \consists "Axis_group_engraver"
514 \override VerticalAxisGroup.staff-affinity = #UP
515 \override VerticalAxisGroup.nonstaff-nonstaff-spacing =
516 #'((basic-distance . 0)
517 (minimum-distance . 2.8)
519 (stretchability . 0))
520 \override VerticalAxisGroup.nonstaff-relatedstaff-spacing =
521 #'((basic-distance . 5.5)
523 (stretchability . 1))
524 \override VerticalAxisGroup.nonstaff-unrelatedstaff-spacing.padding = 1.5
526 \consists "Tie_engraver"
527 \consists "Note_name_engraver"
528 \consists "Separating_line_group_engraver"
532 \type "Engraver_group"
534 \alias Staff % Catch Staff-level overrides like
535 % \key, \transposition
536 \description "Typesets chord names."
538 \consists "Output_property_engraver"
539 \consists "Separating_line_group_engraver"
540 \consists "Chord_name_engraver"
541 \consists "Axis_group_engraver"
542 %\consists "Note_spacing_engraver"
544 \override VerticalAxisGroup.remove-first = ##t
545 \override VerticalAxisGroup.remove-empty = ##t
546 \override VerticalAxisGroup.staff-affinity = #DOWN
547 \override VerticalAxisGroup.nonstaff-relatedstaff-spacing.padding = #0.5
548 \override VerticalAxisGroup.nonstaff-nonstaff-spacing.padding = #0.5
549 \override ParenthesesItem.font-size = #1.5
553 \type "Score_engraver"
556 \description "This is the top level notation context. No
557 other context can contain a @code{Score} context. This context
558 handles the administration of time signatures. It also makes sure
559 that items such as clefs, time signatures, and key-signatures are
560 aligned across staves.
562 You cannot explicitly instantiate a @code{Score} context (since it
563 is not contained in any other context). It is instantiated
564 automatically when an output definition (a @code{\\score} or
565 @code{\\layout} block) is processed."
567 \consists "Paper_column_engraver"
568 \consists "Repeat_acknowledge_engraver"
569 \consists "Staff_collecting_engraver"
573 %% An alias for Timing is established by the Timing_translator in
574 %% whatever context it is initialized, and the timing variables are
575 %% then copied from wherever Timing had been previously established.
576 %% The alias at Score level provides a target for initializing
577 %% Timing variables in layout definitions before any
578 %% Timing_translator has been run.
580 %% timing translator must come BEFORE bar number engraver
581 \consists "Timing_translator"
582 \consists "Default_bar_line_engraver"
583 \consists "Output_property_engraver"
584 \consists "Tweak_engraver"
585 \consists "System_start_delimiter_engraver"
586 \consists "Mark_engraver"
587 \consists "Volta_engraver"
588 \consists "Metronome_mark_engraver"
589 \consists "Break_align_engraver"
590 \consists "Spacing_engraver"
591 \consists "Grace_spacing_engraver"
592 \consists "Vertical_align_engraver"
593 \consists "Stanza_number_align_engraver"
594 \consists "Bar_number_engraver"
595 \consists "Parenthesis_engraver"
596 \consists "Concurrent_hairpin_engraver"
597 \consists "Beam_collision_engraver"
598 \consists "Footnote_engraver"
600 \defaultchild "Staff"
602 \accepts "ChoirStaff"
603 \accepts "ChordNames"
607 \accepts "FiguredBass"
608 \accepts "FretBoards"
609 \accepts "GrandStaff"
610 \accepts "GregorianTranscriptionStaff"
611 \accepts "KievanStaff"
613 \accepts "MensuralStaff"
616 \accepts "PetrucciStaff"
617 \accepts "PianoStaff"
618 \accepts "RhythmicStaff"
620 \accepts "StaffGroup"
622 \accepts "VaticanaStaff"
624 noteToFretFunction = #determine-frets
625 predefinedDiagramTable = ##f
627 soloIIText = #"Solo II"
629 printPartCombineTexts = ##t
630 partCombineTextsOnNote = ##t
631 systemStartDelimiter =#'SystemStartBar
633 drumStyleTable = #drums-style
635 associatedVoiceType = #'Voice
636 melismaBusyProperties = #default-melisma-properties
638 clefGlyph = #"clefs.G"
640 middleCClefPosition = #-6
641 middleCPosition = #-6
644 crescendoSpanner = #'hairpin
645 decrescendoSpanner = #'hairpin
647 defaultBarType = #"|"
648 doubleRepeatType = #":..:"
649 startRepeatType = #".|:"
650 endRepeatType = #":|."
651 alternativeRestores = #'(measurePosition measureLength lastChord)
652 barNumberVisibility = #first-bar-number-invisible-and-no-parenthesized-bar-numbers
653 barNumberFormatter = #robust-bar-number-function
654 clefTranspositionFormatter = #clef-transposition-markup
655 cueClefTranspositionFormatter = #clef-transposition-markup
658 explicitClefVisibility = #all-visible
659 explicitCueClefVisibility = #end-of-line-invisible
660 explicitKeySignatureVisibility = #all-visible
661 initialTimeSignatureVisibility = #end-of-line-invisible
663 repeatCountVisibility = #all-repeat-counts-visible
665 %% Other Timing variables are derived and set by the Timing_translator
666 %% at initialization time by calling the functions in
667 %% scm/time-signature-settings.scm
669 timeSignatureSettings = #default-time-signature-settings
670 timeSignatureFraction = 4/4
672 beamHalfMeasure = ##t
675 autoBeamCheck = #default-auto-beam-check
677 completionFactor = #unity-if-multimeasure
679 scriptDefinitions = #default-script-alist
681 pedalSustainStrings = #'("Ped." "*Ped." "*")
682 pedalSustainStyle = #'text
683 pedalUnaCordaStrings = #'("una corda" "" "tre corde")
684 pedalUnaCordaStyle = #'text
686 %% These are in ordinary italic font, including the *,
687 %% but they are unlikely to be used,
688 %% as the default pedal-style for SostenutoPedal is 'mixed':
689 %% i.e. Sost. Ped_____________________
690 pedalSostenutoStrings = #'("Sost. Ped." "*Sost. Ped." "*")
691 pedalSostenutoStyle = #'mixed
693 harmonicAccidentals = ##t
694 fingeringOrientations = #'(up down)
695 stringNumberOrientations = #'(up down)
696 strokeFingerOrientations = #'(right)
698 lyricMelismaAlignment = #LEFT
699 markFormatter = #format-mark-letters
703 autoAccidentals = #`(Staff ,(make-accidental-rule 'same-octave 0))
704 autoCautionaries = #'()
706 printKeyCancellation = ##t
707 keyAlterationOrder = #`(
708 (6 . ,FLAT) (2 . ,FLAT) (5 . ,FLAT ) (1 . ,FLAT) (4 . ,FLAT) (0 . ,FLAT) (3 . ,FLAT)
709 (3 . ,SHARP) (0 . ,SHARP) (4 . ,SHARP) (1 . ,SHARP) (5 . ,SHARP) (2 . ,SHARP) (6 . ,SHARP)
710 (6 . ,DOUBLE-FLAT) (2 . ,DOUBLE-FLAT) (5 . ,DOUBLE-FLAT ) (1 . ,DOUBLE-FLAT) (4 . ,DOUBLE-FLAT) (0 . ,DOUBLE-FLAT) (3 . ,DOUBLE-FLAT)
711 (3 . ,DOUBLE-SHARP) (0 . ,DOUBLE-SHARP) (4 . ,DOUBLE-SHARP) (1 . ,DOUBLE-SHARP) (5 . ,DOUBLE-SHARP) (2 . ,DOUBLE-SHARP) (6 . ,DOUBLE-SHARP)
714 barCheckSynchronize = ##f
717 chordNameFunction = #ignatzek-chord-names
718 minorChordModifier = #(make-simple-markup "m")
719 additionalPitchPrefix = #"" % was "add"
720 majorSevenSymbol = #whiteTriangleMarkup
721 chordNameLowercaseMinor = ##f
722 chordNameSeparator = #(make-hspace-markup 0.5)
723 slashChordSeparator = #(make-simple-markup "/")
724 chordNameExceptions = #ignatzekExceptions
725 chordNoteNamer = #'()
726 chordRootNamer = #note-name->markup
727 chordPrefixSpacer = #0
728 chordNameExceptionsFull = #fullJazzExceptions
729 chordNameExceptionsPartial = #partialJazzExceptions
730 noChordSymbol = #(make-simple-markup "N.C.")
733 stringOneTopmost = ##t
736 %% One may change the string tunings as follows :
737 %% The length of the list must be equal to the number of strings
738 stringTunings = #guitar-tuning
739 tablatureFormat = #fret-number-tablature-format
740 tabStaffLineLayoutFunction = #tablature-position-on-lines
743 figuredBassFormatter = #format-bass-figure
744 metronomeMarkFormatter = #format-metronome-markup
746 %% See also make-voice-props-set
747 graceSettings = #score-grace-settings
749 keepAliveInterfaces = #'(
750 bass-figure-interface
752 cluster-beacon-interface
753 fret-diagram-interface
754 lyric-syllable-interface
756 tab-note-head-interface
758 percent-repeat-item-interface
759 percent-repeat-interface
761 ;; need this, as stanza numbers are items, and appear only once.
762 stanza-number-interface
764 %% \quoteDuring is supposed to quote everything, cueDuring only the essentials
765 quotedEventTypes = #'(StreamEvent)
766 quotedCueEventTypes = #'(
772 instrumentTransposition = #(ly:make-pitch 0 0 0)
774 topLevelAlignment = ##t
783 \type "Engraver_group"
785 \description "A context for printing a figured bass line."
787 \consists "Figured_bass_engraver"
788 \consists "Separating_line_group_engraver"
789 \consists "Axis_group_engraver"
791 \override VerticalAxisGroup.remove-empty = ##t
792 \override VerticalAxisGroup.remove-first = ##t
793 \override VerticalAxisGroup.staff-affinity = #UP
794 \override VerticalAxisGroup.nonstaff-relatedstaff-spacing.padding = #0.5
795 \override VerticalAxisGroup.nonstaff-nonstaff-spacing.padding = #0.5
800 \type "Engraver_group"
802 %% don't want to route anything out of here:
805 \description "Silently discards all musical information given to this
811 \type "Engraver_group"
812 \description "For aligning lyrics without printing notes"
814 %% don't route anything out of here
818 %% provide non-printing NoteHeads with proper extents for lyric alignment
819 \consists "Note_heads_engraver"
821 \override NoteHead.X-extent = #(lambda (g)
822 (ly:stencil-extent (ly:note-head::print g) X))
824 %% generate no accidentals
825 nullAccidentals = ##t
827 %% keep noteheads inside the staff
828 \consists "Pitch_squash_engraver"
831 %% generate no ledger lines, needed for staves with custom
832 %% line positions and ledger lines that appear inside the staff
833 \override NoteHead.no-ledgers = ##t
835 %% the engravers that control the 'busy' flags for note-onsets and melismata
836 \consists "Grob_pq_engraver"
837 \consists "Tie_engraver"
839 \consists "Beam_engraver"
841 \consists "Slur_engraver"
849 \consists "Tab_note_heads_engraver"
850 \consists "Tab_tie_follow_engraver"
852 \remove "Note_heads_engraver"
853 \remove "Fingering_engraver"
854 \remove "New_fingering_engraver"
855 \remove "Pitched_trill_engraver"
857 \description "Context for drawing notes in a Tab staff."
859 %% No accidental in tablature !
860 \remove "Accidental_engraver"
868 \consists "Tab_staff_symbol_engraver"
870 \description "Context for generating tablature. It accepts only @code{TabVoice}
871 contexts and handles the line spacing, the tablature clef etc. properly."
874 \defaultchild "TabVoice"
876 %% 6 strings, bigger spacing
877 \override StaffSymbol.staff-space = #1.5
879 %% Don't draw stems over the tablature figures !
880 \override Stem.avoid-note-head = ##t
882 %% No accidental in tablature !
883 \remove "Accidental_engraver"
884 \remove "Key_engraver"
886 \remove "Ottava_spanner_engraver"
888 \override Clef.stencil = #clef::print-modern-tab-if-set
890 \override TimeSignature.stencil = ##f
892 \override Arpeggio.stencil = ##f
893 %% we ignore collision warnings that may occur due to
894 %% stem overlapping, because we have no stems ;-)
895 \override NoteColumn.ignore-collision = ##t
896 %% Special "TAB" clef
897 clefGlyph = #"clefs.tab"
899 %% Change string if note results in negative fret number
900 handleNegativeFrets = #'recalculate
901 %% Allow open strings even if minimumFret is set
902 restrainOpenStrings = ##f
904 %% TabStaff increase the staff-space, which in turn
905 %% increases beam thickness and spacing; beams are
906 %% too big. We have to adjust the beam settings:
907 \override Beam.beam-thickness = #0.32
908 \override Beam.length-fraction = #0.62
909 %% the same goes for tremolo beams
910 \override StemTremolo.beam-thickness = #0.32
911 %% NOTE: in lily/stem-tremolo.cc, we have length-fraction = 1,
912 %% and the tablature staff space is scaled (1.5 by default),
913 %% so we use the inversion of the scale factor:
914 \override StemTremolo.length-fraction = #(lambda (grob)
915 (/ 1 (ly:staff-symbol-staff-space grob)))
916 \override StemTremolo.beam-width = #stem-tremolo::calc-tab-width
918 %% make the Stems as short as possible to minimize their influence
919 %% on the slur::calc-control-points routine
920 \override Stem.no-stem-extend = ##t
921 \override Flag.style = #'no-flag
922 \override Stem.details = #'((lengths 0 0 0 0 0 0)
923 (beamed-lengths 0 0 0)
924 (beamed-minimum-free-lengths 0 0 0)
925 (beamed-extreme-minimum-free-lengths 0 0)
927 %% after all, the stubs of the stems may still be visible, so ...
928 \override Stem.stencil = ##f
929 \override Flag.stencil = ##f
930 %% automatic beams should be suppressed for similar reasons ...
932 %% remove beams, dots and rests ...
933 \override Beam.stencil = ##f
934 \override StemTremolo.stencil = ##f
935 \override Dots.stencil = ##f
936 \override Rest.stencil = ##f
937 \override MultiMeasureRest.stencil = ##f
938 \override MultiMeasureRestNumber.stencil = ##f
939 \override MultiMeasureRestText.stencil = ##f
940 %% ... all kinds of ties/slurs
941 \override Tie.stencil = ##f
942 \override RepeatTie.stencil = ##f
943 \override LaissezVibrerTie.stencil = ##f
944 \override Slur.stencil = #slur::draw-tab-slur
945 \override PhrasingSlur.stencil = ##f
946 %% 'tied to' fret numbers become invisible or parenthesized, respectively)
947 \override Tie.after-line-breaking = #tie::handle-tab-note-head
948 \override RepeatTie.after-line-breaking = #repeat-tie::handle-tab-note-head
949 %% ... and all kinds of markups, spanners etc.
950 \override TupletBracket.stencil = ##f
951 \override TupletNumber.stencil = ##f
952 \override DynamicText.stencil = ##f
953 \override DynamicTextSpanner.stencil = ##f
954 \override TextSpanner.stencil = ##f
955 \override Hairpin.stencil = ##f
956 \override Script.stencil = ##f
957 \override TextScript.stencil = ##f
958 \override Glissando.stencil = #glissando::draw-tab-glissando
959 %% the direction for glissando lines will be automatically corrected
960 \override Glissando.extra-dy = #glissando::calc-tab-extra-dy
961 \override Glissando.bound-details.right = #`((attach-dir . ,LEFT)
963 \override Glissando.bound-details.left = #`((attach-dir . ,RIGHT)
966 \override TabNoteHead.glyph-name = #tab-note-head::calc-glyph-name
967 \override TabNoteHead.stencil = #tab-note-head::whiteout-if-style-set
972 \name "VaticanaVoice"
974 \description "Same as @code{Voice} context, except that it is
975 accommodated for typesetting Gregorian Chant in the notational style
978 \remove "Slur_engraver"
979 \remove "Stem_engraver"
980 \remove "Ligature_bracket_engraver"
981 \consists "Vaticana_ligature_engraver"
982 \remove "Text_spanner_engraver"
983 \consists "Episema_engraver"
985 %% Set default head for notes outside of \[ \].
986 \override NoteHead.style = #'vaticana.punctum
988 %% Put some space before and after divisiones.
989 %% FIXME: This does not seem to show any effect.
990 \override Script.padding = #0.5
992 %% There are no beams in Gregorian Chant notation.
998 \name "VaticanaStaff"
1001 \accepts "VaticanaVoice"
1002 \defaultchild "VaticanaVoice"
1004 \description "Same as @code{Staff} context, except that it is
1005 accommodated for typesetting Gregorian Chant in the notational style
1006 of Editio Vaticana."
1008 \remove "Time_signature_engraver"
1009 \consists "Custos_engraver"
1011 %% We can not remove Bar_engraver; otherwise clefs and custodes will
1012 %% not show up any more among other line breaking issues.
1013 %% Instead, we make the grob transparent.
1014 \override BarLine.transparent = ##t
1016 \override StaffSymbol.line-count = #4
1017 \override StaffSymbol.thickness = #0.6
1019 %% FIXME: unit on StaffSymbol's width should be \linewidth.
1020 %% \override StaffSymbol.width = #60.0
1022 %% Choose vaticana do clef on 3rd line as default.
1023 clefGlyph = #"clefs.vaticana.do"
1024 middleCPosition = #1
1025 middleCClefPosition = #1
1027 clefTransposition = #0
1029 %% Select vaticana style font.
1030 \override KeySignature.glyph-name-alist = #alteration-vaticana-glyph-name-alist
1031 \override Accidental.glyph-name-alist = #alteration-vaticana-glyph-name-alist
1032 \override Custos.style = #'vaticana
1033 \override Custos.neutral-position = #3
1034 \override Custos.neutral-direction = #DOWN
1035 \override Dots.style = #'vaticana
1040 \name "GregorianTranscriptionVoice"
1042 \consists "Episema_engraver"
1044 %% Removing ligature bracket engraver without replacing it by some
1045 %% other ligature engraver would cause a "Junking event: `LigatureEvent'"
1046 %% warning for every "\[" and "\]". Therefore, we make the grob
1047 %% transparent instead.
1048 \override LigatureBracket.transparent = ##t
1050 %% Put some space before and after divisiones.
1051 %% FIXME: This does not seem to show any effect.
1052 \override Script.padding = #0.5
1054 %% There are no beams in Gregorian Chant notation.
1060 \name "GregorianTranscriptionStaff"
1063 \accepts "GregorianTranscriptionVoice"
1064 \defaultchild "GregorianTranscriptionVoice"
1066 %% We can not remove Bar_engraver; otherwise clefs and custodes will
1067 %% not show up any more among other line breaking issues.
1068 %% Instead, we make the grob transparent.
1069 \override BarLine.transparent = ##t
1074 \name "MensuralVoice"
1076 \description "Same as @code{Voice} context, except that it is
1077 accommodated for typesetting a piece in mensural style."
1079 \remove "Slur_engraver"
1080 \remove "Ligature_bracket_engraver"
1081 \consists "Mensural_ligature_engraver"
1083 %% Set default head for notes outside of \[ \].
1084 \override NoteHead.style = #'mensural
1085 \override Rest.style = #'mensural
1086 \override Flag.style = #'mensural
1088 %% There are no beams in mensural notation.
1094 \name "MensuralStaff"
1097 \defaultchild "MensuralVoice"
1098 \accepts "MensuralVoice"
1099 \description "Same as @code{Staff} context, except that it is
1100 accommodated for typesetting a piece in mensural style."
1102 \consists "Custos_engraver"
1104 %% We can not remove Bar_engraver; otherwise clefs and custodes will
1105 %% not show up any more among other line breaking issues.
1106 %% Instead, we make the grob transparent.
1107 \override BarLine.transparent = ##t
1109 \override StaffSymbol.thickness = #0.6
1111 %% FIXME: unit on StaffSymbol's width should be \linewidth.
1112 %% \override StaffSymbol.width = #60.0
1114 %% Choose mensural g clef on 2nd line as default.
1115 clefGlyph = #"clefs.mensural.g"
1116 middleCClefPosition = #-6
1117 middleCPosition = #-6
1119 clefTransposition = #0
1121 %% Select mensural style font.
1122 \override TimeSignature.style = #'mensural
1123 \override KeySignature.glyph-name-alist = #alteration-mensural-glyph-name-alist
1124 \override Accidental.glyph-name-alist = #alteration-mensural-glyph-name-alist
1125 \override Custos.style = #'mensural
1126 \override Custos.neutral-position = #3
1127 \override Custos.neutral-direction = #DOWN
1129 %% Accidentals are valid only once (same as
1130 %% \accidentalStyle forget)
1132 autoAccidentals = #`(Staff ,(make-accidental-rule 'same-octave -1))
1133 autoCautionaries = #'()
1134 printKeyCancellation = ##f
1139 \name "PetrucciVoice"
1141 \description "Same as @code{Voice} context, except that it is
1142 accommodated for typesetting a piece in Petrucci style."
1144 \remove "Ligature_bracket_engraver"
1145 \consists "Mensural_ligature_engraver"
1147 %% Set glyph styles.
1148 \override NoteHead.style = #'petrucci
1149 \override Rest.style = #'mensural
1151 %% Thickens and shortens stems.
1152 \override Stem.thickness = #1.7
1153 \override Stem.length = #5
1155 %% There are no beams in Petrucci notation.
1161 \name "PetrucciStaff"
1164 \defaultchild "PetrucciVoice"
1165 \accepts "PetrucciVoice"
1166 \description "Same as @code{Staff} context, except that it is
1167 accommodated for typesetting a piece in Petrucci style."
1169 \consists "Custos_engraver"
1171 \override StaffSymbol.thickness = #1.3
1173 %% Choose Petrucci g clef on 2nd line as default.
1174 clefGlyph = #"clefs.petrucci.g"
1175 middleCClefPosition = #-6
1176 middleCPosition = #-6
1178 clefTransposition = #0
1180 \override Custos.style = #'mensural
1181 \override Custos.neutral-position = #3
1182 \override Custos.neutral-direction = #DOWN
1184 %% Accidentals are valid only once (if the following note is different)
1186 autoAccidentals = #`(Staff ,(make-accidental-rule 'same-octave 0)
1187 ,neo-modern-accidental-rule)
1188 autoCautionaries = #'()
1189 printKeyCancellation = ##f
1196 \description "Same as @code{Voice} context, except that it is
1197 accommodated for typesetting a piece in Kievan style."
1199 \remove "Ligature_bracket_engraver"
1200 \consists "Kievan_ligature_engraver"
1202 %% Set glyph styles.
1203 \override NoteHead.style = #'kievan
1204 \override Stem.X-offset = #stem::kievan-offset-callback
1205 \override Stem.stencil = ##f
1206 \override Flag.stencil = ##f
1207 \override Rest.style = #'mensural
1208 \override Accidental.glyph-name-alist = #alteration-kievan-glyph-name-alist
1209 \override Dots.style = #'kievan
1210 \override Slur.stencil = ##f
1211 \override Stem.length = #0.0
1212 \override Beam.positions = #beam::get-kievan-positions
1213 \override Beam.quantized-positions = #beam::get-kievan-quantized-positions
1214 \override NoteHead.duration-log = #note-head::calc-kievan-duration-log
1216 %% There are beams in Kievan notation, but they are invoked manually
1225 \defaultchild "KievanVoice"
1226 \accepts "KievanVoice"
1227 \description "Same as @code{Staff} context, except that it is
1228 accommodated for typesetting a piece in Kievan style."
1230 \remove "Time_signature_engraver"
1232 %% Choose Kievan tsefaut clef
1233 clefGlyph = #"clefs.kievan.do"
1234 middleCClefPosition = #0
1235 middleCPosition = #0
1237 clefTransposition = #0
1239 %% Accidentals are valid only once (if the following note is different)
1241 autoAccidentals = #`(Staff ,(make-accidental-rule 'same-octave 0)
1242 ,neo-modern-accidental-rule)
1243 autoCautionaries = #'()
1244 printKeyCancellation = ##f
1248 %% Keep the old definitions in here for compatibility (they erase previous
1249 %% settings to the corresponding context!).
1250 %% For new scores, one should simply insert the \RemoveEmptyStaves settings
1251 %% into the desired context. That's just as easy, requires only one line more
1252 %% (the \*Staff), but preserves previous context mods.
1253 %% TODO: DEPRECATED_2.13.17, remove at some point in the future
1254 RemoveEmptyStaffContext = \context {
1259 AncientRemoveEmptyStaffContext = \context {
1264 RemoveEmptyDrumStaffContext = \context {
1269 RemoveEmptyRhythmicStaffContext = \context {
1274 RemoveEmptyTabStaffContext = \context {