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
29 EventClasses = #all-event-classes
33 \type "Engraver_group"
36 \description "A context for displaying fret diagrams."
38 \consists "Fretboard_engraver"
39 \consists "Output_property_engraver"
40 \consists "Axis_group_engraver"
41 \consists "Separating_line_group_engraver"
42 \consists "Font_size_engraver"
43 \consists "Instrument_name_engraver"
45 %% explicitly set instrument, so it is not inherited from the parent
47 shortInstrumentName = #'()
49 predefinedDiagramTable = #default-fret-table
50 handleNegativeFrets = #'recalculate
51 restrainOpenStrings = ##f
55 \type "Engraver_group"
58 \consists "Output_property_engraver"
59 \consists "Bar_engraver"
60 \consists "Pure_from_neighbor_engraver"
61 %% Bar_engraver must be first so default bars aren't overwritten
64 \consists "Font_size_engraver"
65 \consists "Separating_line_group_engraver"
66 \consists "Dot_column_engraver"
67 \consists "Staff_collecting_engraver"
69 %% perhaps move to Voice context?
70 \consists "Ottava_spanner_engraver"
71 \consists "Clef_engraver"
72 \consists "Key_engraver"
73 \consists "Time_signature_engraver"
74 \consists "Ledger_line_engraver"
75 \consists "Staff_symbol_engraver"
76 \consists "Collision_engraver"
77 \consists "Grob_pq_engraver"
78 \consists "Rest_collision_engraver"
79 \consists "Accidental_engraver"
80 \consists "Piano_pedal_engraver"
81 \consists "Piano_pedal_align_engraver"
82 \consists "Instrument_name_engraver"
83 \consists "Axis_group_engraver"
84 \consists "Figured_bass_engraver"
85 \consists "Figured_bass_position_engraver"
86 \consists "Script_row_engraver"
87 \consists "Cue_clef_engraver"
88 \consists "Fingering_column_engraver"
90 localKeySignature = #'()
92 ignoreFiguredBassRest = ##f
95 %% explicitly set instrument, so we don't get
96 %% weird effects when doing instrument names for
99 shortInstrumentName = #'()
101 \defaultchild "Voice"
105 \description "Handles clefs, bar lines, keys, accidentals. It can contain
106 @code{Voice} contexts."
112 \type "Engraver_group"
116 \remove "Accidental_engraver"
117 \remove "Ottava_spanner_engraver"
118 \remove "Key_engraver"
119 \remove "Piano_pedal_engraver"
121 \description "Handles typesetting for percussion."
125 \defaultchild "DrumVoice"
127 clefGlyph = #"clefs.percussion"
129 \override Script.staff-padding = #0.75
134 \type "Engraver_group"
136 \consists "Vertical_align_engraver"
137 topLevelAlignment = ##f
139 \consists "Instrument_name_engraver"
140 \consists "System_start_delimiter_engraver"
141 systemStartDelimiter = #'SystemStartBracket
142 %% explicitly set instrument, so it is not inherited from the parent
143 instrumentName = #'()
144 shortInstrumentName = #'()
146 shortVocalName = #'()
150 \accepts "RhythmicStaff"
151 \accepts "GrandStaff"
152 \accepts "PianoStaff"
154 \accepts "ChordNames"
155 \accepts "FiguredBass"
156 \accepts "ChoirStaff"
157 \accepts "StaffGroup"
158 \defaultchild "Staff"
159 \description "Identical to @code{StaffGroup} except that the
160 contained staves are not connected vertically."
164 \type "Engraver_group"
166 localKeySignature = #'()
169 squashedPosition = #0
173 \override BarLine.bar-extent = #'(-2 . 2)
174 \override VoltaBracket.staff-padding = #3
175 \override StaffSymbol.line-count = #1
178 \override Stem.neutral-direction = #UP
179 \override Beam.neutral-direction = #UP
181 \consists "Output_property_engraver"
182 \consists "Font_size_engraver"
183 \consists "Separating_line_group_engraver"
184 \consists "Dot_column_engraver"
185 \consists "Bar_engraver"
186 \consists "Staff_symbol_engraver"
187 \consists "Pitch_squash_engraver"
188 \consists "Time_signature_engraver"
189 \consists "Instrument_name_engraver"
190 \consists "Axis_group_engraver"
191 \consists "Ledger_line_engraver"
193 %% explicitly set instrument, so it is not inherited from the parent
194 instrumentName = #'()
195 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."
217 \consists "Font_size_engraver"
219 \consists "Pitched_trill_engraver"
220 \consists "Output_property_engraver"
221 \consists "Arpeggio_engraver"
222 \consists "Multi_measure_rest_engraver"
223 \consists "Text_spanner_engraver"
224 \consists "Trill_spanner_engraver"
225 \consists "Grob_pq_engraver"
226 \consists "Forbid_line_break_engraver"
227 \consists "Laissez_vibrer_engraver"
228 \consists "Repeat_tie_engraver"
229 \consists "Note_head_line_engraver"
230 \consists "Glissando_engraver"
231 \consists "Ligature_bracket_engraver"
232 \consists "Breathing_sign_engraver"
233 \consists "Note_heads_engraver"
234 \consists "Dots_engraver"
235 \consists "Rest_engraver"
237 %% switch on to make stem directions interpolate for the
239 % \consists "Melody_engraver"
241 \consists "Stem_engraver"
242 \consists "Beam_engraver"
243 \consists "Grace_beam_engraver"
244 \consists "Auto_beam_engraver"
246 %% must come before Script_column_engraver.
247 \consists "New_fingering_engraver"
249 \consists "Chord_tremolo_engraver"
250 \consists "Double_percent_repeat_engraver"
251 \consists "Percent_repeat_engraver"
252 \consists "Slash_repeat_engraver"
253 \consists "Part_combine_engraver"
255 \consists "Text_engraver"
256 \consists "New_dynamic_engraver"
257 \consists "Dynamic_align_engraver"
258 % \consists "Dynamic_engraver"
259 \consists "Fingering_engraver"
260 \consists "Bend_engraver"
262 \consists "Script_engraver"
263 \consists "Script_column_engraver"
264 \consists "Rhythmic_column_engraver"
265 \consists "Note_spacing_engraver"
266 \consists "Spanner_break_forbid_engraver"
267 \consists "Phrasing_slur_engraver"
268 \consists "Cluster_spanner_engraver"
269 \consists "Slur_engraver"
270 \consists "Tie_engraver"
271 \consists "Tuplet_engraver"
272 \consists "Grace_engraver"
273 \consists "Instrument_switch_engraver"
282 \override Stem.length-fraction = #(magstep -4)
283 \override Beam.length-fraction = #(magstep -4)
284 \override Beam.beam-thickness = #0.35
292 \description "A voice on a percussion staff."
293 \remove "Arpeggio_engraver"
294 \consists "Grob_pq_engraver"
296 \remove "Note_head_line_engraver"
297 \remove "Glissando_engraver"
298 \remove "Ligature_bracket_engraver"
299 \remove "Note_heads_engraver"
300 \consists "Drum_notes_engraver"
301 \remove "New_fingering_engraver"
303 \remove "Fingering_engraver"
305 \remove "Cluster_spanner_engraver"
309 \type "Engraver_group"
311 localKeySignature = #'()
313 \description "A group of staves, with a brace on the left
314 side, grouping the staves together. The bar lines of the
315 contained staves are connected vertically."
317 \consists "Instrument_name_engraver"
318 \consists "Span_bar_engraver"
319 \consists "Span_bar_stub_engraver"
320 \consists "Span_arpeggio_engraver"
321 \consists "System_start_delimiter_engraver"
322 \consists "Vertical_align_engraver"
323 systemStartDelimiter = #'SystemStartBrace
324 topLevelAlignment = ##f
325 %% explicitly set instrument, so it is not inherited from the parent
326 instrumentName = #'()
327 shortInstrumentName = #'()
329 \defaultchild "Staff"
331 \accepts "RhythmicStaff"
335 \accepts "FiguredBass"
337 \accepts "ChordNames"
345 \description "Just like @code{GrandStaff}, but the staves are only removed
346 together, never separately."
348 \consists "Vertical_align_engraver"
349 \consists "Keep_alive_together_engraver"
350 topLevelAlignment = ##f
352 instrumentName = #'()
353 shortInstrumentName = #'()
357 \type "Engraver_group"
360 \consists "Vertical_align_engraver"
361 topLevelAlignment = ##f
363 \consists "Instrument_name_engraver"
364 \consists "Span_bar_engraver"
365 \consists "Span_bar_stub_engraver"
366 \consists "Span_arpeggio_engraver"
367 \consists "Output_property_engraver"
368 systemStartDelimiter = #'SystemStartBracket
369 %% explicitly set instrument, so it is not inherited from the parent
370 instrumentName = #'()
371 shortInstrumentName = #'()
373 \consists "System_start_delimiter_engraver"
375 \defaultchild "Staff"
377 \accepts "RhythmicStaff"
379 \accepts "GrandStaff"
380 \accepts "PianoStaff"
383 \accepts "ChordNames"
384 \accepts "FiguredBass"
385 \accepts "ChoirStaff"
386 \accepts "StaffGroup"
388 \description "Groups staves while adding a bracket on the left
389 side, grouping the staves together. The bar lines of the contained
390 staves are connected vertically. @code{StaffGroup} only consists of
391 a collection of staves, with a bracket in front and spanning bar lines."
395 \type "Engraver_group"
398 \consists "Output_property_engraver"
399 \consists "Bar_engraver"
400 \consists "Piano_pedal_engraver"
401 \consists "Script_engraver"
402 \consists "New_dynamic_engraver"
403 \consists "Dynamic_align_engraver"
404 \consists "Text_engraver"
405 \consists "Text_spanner_engraver"
406 \consists "Font_size_engraver"
407 \consists "Axis_group_engraver"
409 pedalSustainStrings = #'("Ped." "*Ped." "*")
410 pedalUnaCordaStrings = #'("una corda" "" "tre corde")
411 \override VerticalAxisGroup.staff-affinity = #CENTER
412 \override VerticalAxisGroup.nonstaff-relatedstaff-spacing =
413 #'((basic-distance . 5)
415 \override TextScript.font-shape = #'italic
416 \override DynamicLineSpanner.Y-offset = #0
417 \override DynamicLineSpanner.outside-staff-priority = ##f
418 \override DynamicText.outside-staff-priority = ##f
419 \override Hairpin.outside-staff-priority = ##f
420 \override DynamicText.X-offset =
421 #(ly:make-simple-closure
423 ,(ly:make-simple-closure
424 (list ly:self-alignment-interface::centered-on-note-columns))
425 ,(ly:make-simple-closure
426 (list ly:self-alignment-interface::x-aligned-on-self))))
428 \description "Holds a single line of dynamics, which will be
429 centered between the staves surrounding this context."
434 \type "Engraver_group"
436 \description "Corresponds to a voice with lyrics. Handles the
437 printing of a single line of lyrics."
440 \consists "Lyric_engraver"
441 \consists "Extender_engraver"
442 \consists "Hyphen_engraver"
443 \consists "Stanza_number_engraver"
444 \consists "Instrument_name_engraver"
445 \consists "Font_size_engraver"
446 \consists "Axis_group_engraver"
447 \consists "Pure_from_neighbor_engraver"
449 %% explicitly set instrument, so it is not inherited from the parent
450 instrumentName = #'()
451 shortInstrumentName = #'()
453 \override VerticalAxisGroup.remove-first = ##t
454 \override VerticalAxisGroup.remove-empty = ##t
455 \override VerticalAxisGroup.staff-affinity = #UP
456 \override VerticalAxisGroup.nonstaff-relatedstaff-spacing =
457 #'((basic-distance . 5.5)
459 (stretchability . 1))
460 \override VerticalAxisGroup.nonstaff-nonstaff-spacing =
461 #'((basic-distance . 0)
462 (minimum-distance . 2.8)
464 (stretchability . 0))
465 \override VerticalAxisGroup.nonstaff-unrelatedstaff-spacing.padding = #1.5
466 \override InstrumentName.self-alignment-Y = ##f
468 %% sync with define-grobs.scm ;
469 \override InstrumentName.font-size = #1.0
471 %% make sure that barlines aren't collapsed, when
472 %% Bar_engraver is there.
473 \override BarLine.bar-extent = #'(-0.05 . 0.05)
478 \type "Engraver_group"
480 \description "A context for printing the names of notes."
481 \consists "Axis_group_engraver"
483 \override VerticalAxisGroup.staff-affinity = #UP
484 \override VerticalAxisGroup.nonstaff-nonstaff-spacing =
485 #'((basic-distance . 0)
486 (minimum-distance . 2.8)
488 (stretchability . 0))
489 \override VerticalAxisGroup.nonstaff-relatedstaff-spacing =
490 #'((basic-distance . 5.5)
492 (stretchability . 1))
493 \override VerticalAxisGroup.nonstaff-unrelatedstaff-spacing.padding = 1.5
495 \consists "Tie_engraver"
496 \consists "Note_name_engraver"
497 \consists "Separating_line_group_engraver"
501 \type "Engraver_group"
503 \description "Typesets chord names."
505 \consists "Output_property_engraver"
506 \consists "Separating_line_group_engraver"
507 \consists "Chord_name_engraver"
508 \consists "Axis_group_engraver"
509 % \consists "Note_spacing_engraver"
511 \override VerticalAxisGroup.remove-first = ##t
512 \override VerticalAxisGroup.remove-empty = ##t
513 \override VerticalAxisGroup.staff-affinity = #DOWN
514 \override VerticalAxisGroup.nonstaff-relatedstaff-spacing.padding = #0.5
515 \override VerticalAxisGroup.nonstaff-nonstaff-spacing.padding = #0.5
519 \type "Score_engraver"
522 \description "This is the top level notation context. No
523 other context can contain a @code{Score} context. This context
524 handles the administration of time signatures. It also makes sure
525 that items such as clefs, time signatures, and key-signatures are
526 aligned across staves.
528 You cannot explicitly instantiate a @code{Score} context (since it
529 is not contained in any other context). It is instantiated
530 automatically when an output definition (a @code{\\score} or
531 @code{\\layout} block) is processed."
533 \consists "Paper_column_engraver"
534 \consists "Repeat_acknowledge_engraver"
535 \consists "Staff_collecting_engraver"
539 %% An alias for Timing is established by the Timing_translator in
540 %% whatever context it is initialized, and the timing variables are
541 %% then copied from wherever Timing had been previously established.
542 %% The alias at Score level provides a target for initializing
543 %% Timing variables in layout definitions before any
544 %% Timing_translator has been run.
546 % timing translator must come BEFORE bar number engraver
547 \consists "Timing_translator"
548 \consists "Default_bar_line_engraver"
549 \consists "Output_property_engraver"
550 \consists "Tweak_engraver"
551 \consists "System_start_delimiter_engraver"
552 \consists "Mark_engraver"
553 \consists "Volta_engraver"
554 \consists "Metronome_mark_engraver"
555 \consists "Break_align_engraver"
556 \consists "Spacing_engraver"
557 \consists "Grace_spacing_engraver"
558 \consists "Vertical_align_engraver"
559 \consists "Stanza_number_align_engraver"
560 \consists "Bar_number_engraver"
561 \consists "Parenthesis_engraver"
562 \consists "Concurrent_hairpin_engraver"
563 \consists "Beam_collision_engraver"
564 \consists "Footnote_engraver"
566 \defaultchild "Staff"
568 \accepts "FretBoards"
570 \accepts "RhythmicStaff"
572 \accepts "VaticanaStaff"
573 \accepts "GregorianTranscriptionStaff"
574 \accepts "MensuralStaff"
575 \accepts "PetrucciStaff"
576 \accepts "StaffGroup"
578 \accepts "KievanStaff"
580 \accepts "ChordNames"
581 \accepts "GrandStaff"
582 \accepts "ChoirStaff"
583 \accepts "PianoStaff"
586 \accepts "FiguredBass"
588 noteToFretFunction = #determine-frets
589 predefinedDiagramTable = ##f
591 soloIIText = #"Solo II"
593 printPartCombineTexts = ##t
594 partCombineTextsOnNote = ##t
595 systemStartDelimiter =#'SystemStartBar
597 drumStyleTable = #drums-style
599 melismaBusyProperties = #default-melisma-properties
601 clefGlyph = #"clefs.G"
603 middleCClefPosition = #-6
604 middleCPosition = #-6
607 crescendoSpanner = #'hairpin
608 decrescendoSpanner = #'hairpin
610 defaultBarType = #"|"
611 doubleRepeatType = #":..:"
612 startRepeatType = #".|:"
613 endRepeatType = #":|."
614 barNumberVisibility = #first-bar-number-invisible-and-no-parenthesized-bar-numbers
615 barNumberFormatter = #robust-bar-number-function
616 clefTranspositionFormatter = #clef-transposition-markup
617 cueClefTranspositionFormatter = #clef-transposition-markup
620 explicitClefVisibility = #all-visible
621 explicitCueClefVisibility = #end-of-line-invisible
622 explicitKeySignatureVisibility = #all-visible
623 implicitTimeSignatureVisibility = #end-of-line-invisible
625 repeatCountVisibility = #all-repeat-counts-visible
627 %% Other Timing variables are derived and set by the Timing_translator
628 %% at initialization time by calling the functions in
629 %% scm/time-signature-settings.scm
631 timeSignatureSettings = #default-time-signature-settings
632 timeSignatureFraction = 4/4
634 beamHalfMeasure = ##t
637 autoBeamCheck = #default-auto-beam-check
639 scriptDefinitions = #default-script-alist
641 pedalSustainStrings = #'("Ped." "*Ped." "*")
642 pedalSustainStyle = #'text
643 pedalUnaCordaStrings = #'("una corda" "" "tre corde")
644 pedalUnaCordaStyle = #'text
646 %% These are in ordinary italic font, including the *,
647 %% but they are unlikely to be used,
648 %% as the default pedal-style for SostenutoPedal is 'mixed':
649 %% i.e. Sost. Ped_____________________
650 pedalSostenutoStrings = #'("Sost. Ped." "*Sost. Ped." "*")
651 pedalSostenutoStyle = #'mixed
653 harmonicAccidentals = ##t
654 fingeringOrientations = #'(up down)
655 stringNumberOrientations = #'(up down)
656 strokeFingerOrientations = #'(right)
658 lyricMelismaAlignment = #LEFT
659 markFormatter = #format-mark-letters
663 autoAccidentals = #`(Staff ,(make-accidental-rule 'same-octave 0))
664 autoCautionaries = #'()
666 printKeyCancellation = ##t
667 keyAlterationOrder = #`(
668 (6 . ,FLAT) (2 . ,FLAT) (5 . ,FLAT ) (1 . ,FLAT) (4 . ,FLAT) (0 . ,FLAT) (3 . ,FLAT)
669 (3 . ,SHARP) (0 . ,SHARP) (4 . ,SHARP) (1 . ,SHARP) (5 . ,SHARP) (2 . ,SHARP) (6 . ,SHARP)
670 (6 . ,DOUBLE-FLAT) (2 . ,DOUBLE-FLAT) (5 . ,DOUBLE-FLAT ) (1 . ,DOUBLE-FLAT) (4 . ,DOUBLE-FLAT) (0 . ,DOUBLE-FLAT) (3 . ,DOUBLE-FLAT)
671 (3 . ,DOUBLE-SHARP) (0 . ,DOUBLE-SHARP) (4 . ,DOUBLE-SHARP) (1 . ,DOUBLE-SHARP) (5 . ,DOUBLE-SHARP) (2 . ,DOUBLE-SHARP) (6 . ,DOUBLE-SHARP)
674 barCheckSynchronize = ##f
677 chordNameFunction = #ignatzek-chord-names
678 minorChordModifier = #(make-simple-markup "m")
679 additionalPitchPrefix = #"" % was "add"
680 majorSevenSymbol = #whiteTriangleMarkup
681 chordNameLowercaseMinor = ##f
682 chordNameSeparator = #(make-hspace-markup 0.5)
683 slashChordSeparator = #(make-simple-markup "/")
684 chordNameExceptions = #ignatzekExceptions
685 chordNoteNamer = #'()
686 chordRootNamer = #note-name->markup
687 chordPrefixSpacer = #0
688 chordNameExceptionsFull = #fullJazzExceptions
689 chordNameExceptionsPartial = #partialJazzExceptions
690 noChordSymbol = #(make-simple-markup "N.C.")
692 bassStaffProperties = #'((assign clefGlyph "clefs.F")
693 (assign clefPosition 2)
694 (assign middleCPosition 6)
695 (assign middleCClefPosition 6))
697 stringOneTopmost = ##t
700 %% One may change the string tunings as follows :
701 %% The length of the list must be equal to the number of strings
702 stringTunings = #guitar-tuning
703 tablatureFormat = #fret-number-tablature-format
704 tabStaffLineLayoutFunction = #tablature-position-on-lines
707 figuredBassFormatter = #format-bass-figure
708 metronomeMarkFormatter = #format-metronome-markup
712 %% See also make-voice-props-set
714 (Voice Stem direction ,UP)
715 (Voice Stem font-size -3)
716 (Voice Flag font-size -3)
717 (Voice NoteHead font-size -3)
718 (Voice TabNoteHead font-size -4)
719 (Voice Dots font-size -3)
720 (Voice Stem length-fraction 0.8)
721 (Voice Stem no-stem-extend #t)
722 (Voice Beam beam-thickness 0.384)
723 (Voice Beam length-fraction 0.8)
724 (Voice Accidental font-size -4)
725 (Voice AccidentalCautionary font-size -4)
726 (Voice Slur direction ,DOWN)
727 (Voice Script font-size -3)
728 (Voice Fingering font-size -8)
729 (Voice StringNumber font-size -8)
732 keepAliveInterfaces = #'(
733 bass-figure-interface
735 cluster-beacon-interface
736 fret-diagram-interface
737 lyric-syllable-interface
739 tab-note-head-interface
741 percent-repeat-item-interface
742 percent-repeat-interface
744 ;; need this, as stanza numbers are items, and appear only once.
745 stanza-number-interface
747 % \quoteDuring is supposed to quote everything, cueDuring only the essentials
748 quotedEventTypes = #'(StreamEvent)
749 quotedCueEventTypes = #'(
755 instrumentTransposition = #(ly:make-pitch 0 0 0)
757 topLevelAlignment = ##t
766 \type "Engraver_group"
768 \description "A context for printing a figured bass line."
770 \consists "Figured_bass_engraver"
771 \consists "Separating_line_group_engraver"
772 \consists "Axis_group_engraver"
774 \override VerticalAxisGroup.remove-empty = ##t
775 \override VerticalAxisGroup.remove-first = ##t
776 \override VerticalAxisGroup.staff-affinity = #UP
777 \override VerticalAxisGroup.nonstaff-relatedstaff-spacing.padding = #0.5
778 \override VerticalAxisGroup.nonstaff-nonstaff-spacing.padding = #0.5
783 \type "Engraver_group"
785 %% don't want to route anything out of here:
788 \description "Silently discards all musical information given to this
796 \consists "Tab_note_heads_engraver"
797 \consists "Tab_tie_follow_engraver"
799 \remove "Note_heads_engraver"
800 \remove "Fingering_engraver"
801 \remove "New_fingering_engraver"
802 \remove "Pitched_trill_engraver"
804 \description "Context for drawing notes in a Tab staff."
806 %% TabStaff increase the staff-space, which in turn
807 %% increases beam thickness and spacing; beams are
808 %% too big. We have to adjust the beam settings:
809 \override Beam.beam-thickness = #0.32
810 \override Beam.length-fraction = #0.62
811 %% the same goes for tremolo beams
812 \override StemTremolo.beam-thickness = #0.32
813 %% NOTE: in lily/stem-tremolo.cc, we have length-fraction = 1,
814 %% and the tablature staff space is scaled (1.5 by default),
815 %% so we use the inversion of the scale factor:
816 \override StemTremolo.length-fraction = #(lambda (grob)
817 (/ 1 (ly:staff-symbol-staff-space grob)))
818 \override StemTremolo.beam-width = #stem-tremolo::calc-tab-width
820 %% No accidental in tablature !
821 \remove "Accidental_engraver"
822 %% make the Stems as short as possible to minimize their influence
823 %% on the slur::calc-control-points routine
824 \override Stem.no-stem-extend = ##t
825 \override Flag.style = #'no-flag
826 \override Stem.details = #'((lengths 0 0 0 0 0 0)
827 (beamed-lengths 0 0 0)
828 (beamed-minimum-free-lengths 0 0 0)
829 (beamed-extreme-minimum-free-lengths 0 0)
831 %% after all, the stubs of the stems may still be visible, so ...
832 \override Stem.stencil = ##f
833 \override Flag.stencil = ##f
834 %% automatic beams should be suppressed for similar reasons ...
836 %% remove beams, dots and rests ...
837 \override Beam.stencil = ##f
838 \override StemTremolo.stencil = ##f
839 \override Dots.stencil = ##f
840 \override Rest.stencil = ##f
841 \override MultiMeasureRest.stencil = ##f
842 \override MultiMeasureRestNumber.stencil = ##f
843 \override MultiMeasureRestText.stencil = ##f
844 %% ... all kinds of ties/slurs
845 \override Tie.stencil = ##f
846 \override RepeatTie.stencil = ##f
847 \override LaissezVibrerTie.stencil = ##f
848 \override Slur.stencil = #slur::draw-tab-slur
849 \override PhrasingSlur.stencil = ##f
850 %% 'tied to' fret numbers become invisible or parenthesized, respectively)
851 \override Tie.after-line-breaking = #tie::handle-tab-note-head
852 \override RepeatTie.after-line-breaking = #repeat-tie::handle-tab-note-head
853 %% ... and all kinds of markups, spanners etc.
854 \override TupletBracket.stencil = ##f
855 \override TupletNumber.stencil = ##f
856 \override DynamicText.stencil = ##f
857 \override DynamicTextSpanner.stencil = ##f
858 \override TextSpanner.stencil = ##f
859 \override Hairpin.stencil = ##f
860 \override Script.stencil = ##f
861 \override TextScript.stencil = ##f
862 \override Glissando.stencil = #glissando::draw-tab-glissando
863 %% the direction for glissando lines will be automatically corrected
864 \override Glissando.extra-dy = #glissando::calc-tab-extra-dy
865 \override Glissando.bound-details.right = #`((attach-dir . ,LEFT)
867 \override Glissando.bound-details.left = #`((attach-dir . ,RIGHT)
870 \override TabNoteHead.glyph-name = #tab-note-head::calc-glyph-name
871 \override TabNoteHead.stencil = #tab-note-head::whiteout-if-style-set
879 \consists "Tab_staff_symbol_engraver"
881 \description "Context for generating tablature. It accepts only @code{TabVoice}
882 contexts and handles the line spacing, the tablature clef etc. properly."
885 \defaultchild "TabVoice"
887 %% 6 strings, bigger spacing
888 \override StaffSymbol.staff-space = #1.5
890 %% Don't draw stems over the tablature figures !
891 \override Stem.avoid-note-head = ##t
893 %% No accidental in tablature !
894 \remove "Accidental_engraver"
895 \remove "Key_engraver"
897 \remove "Ottava_spanner_engraver"
899 \override Clef.stencil = #clef::print-modern-tab-if-set
901 \override TimeSignature.stencil = ##f
903 \override Arpeggio.stencil = ##f
904 %% we ignore collision warnings that may occur due to
905 %% stem overlapping, because we have no stems ;-)
906 \override NoteColumn.ignore-collision = ##t
907 %% Special "TAB" clef
908 clefGlyph = #"clefs.tab"
910 %% Change string if note results in negative fret number
911 handleNegativeFrets = #'recalculate
912 %% Allow open strings even if minimumFret is set
913 restrainOpenStrings = ##f
918 \name "VaticanaVoice"
920 \description "Same as @code{Voice} context, except that it is
921 accommodated for typesetting Gregorian Chant in the notational style
924 \remove "Slur_engraver"
925 \remove "Stem_engraver"
926 \remove "Ligature_bracket_engraver"
927 \consists "Vaticana_ligature_engraver"
928 \remove "Text_spanner_engraver"
929 \consists "Episema_engraver"
931 %% Set default head for notes outside of \[ \].
932 \override NoteHead.style = #'vaticana.punctum
934 %% Put some space before and after divisiones.
935 %% FIXME: This does not seem to show any effect.
936 \override Script.padding = #0.5
938 %% There are no beams in Gregorian Chant notation.
944 \name "VaticanaStaff"
947 \accepts "VaticanaVoice"
948 \defaultchild "VaticanaVoice"
950 \description "Same as @code{Staff} context, except that it is
951 accommodated for typesetting Gregorian Chant in the notational style
954 \remove "Time_signature_engraver"
955 \consists "Custos_engraver"
957 %% We can not remove Bar_engraver; otherwise clefs and custodes will
958 %% not show up any more among other line breaking issues.
959 %% Instead, we make the grob transparent.
960 \override BarLine.transparent = ##t
962 \override StaffSymbol.line-count = #4
963 \override StaffSymbol.thickness = #0.6
965 %% FIXME: unit on StaffSymbol's width should be \linewidth.
966 %% \override StaffSymbol.width = #60.0
968 %% Choose vaticana do clef on 3rd line as default.
969 clefGlyph = #"clefs.vaticana.do"
971 middleCClefPosition = #1
973 clefTransposition = #0
975 %% Select vaticana style font.
976 \override KeySignature.glyph-name-alist = #alteration-vaticana-glyph-name-alist
977 \override Accidental.glyph-name-alist = #alteration-vaticana-glyph-name-alist
978 \override Custos.style = #'vaticana
979 \override Custos.neutral-position = #3
980 \override Custos.neutral-direction = #DOWN
981 \override Dots.style = #'vaticana
986 \name "GregorianTranscriptionVoice"
988 \consists "Episema_engraver"
990 %% Removing ligature bracket engraver without replacing it by some
991 %% other ligature engraver would cause a "Junking event: `LigatureEvent'"
992 %% warning for every "\[" and "\]". Therefore, we make the grob
993 %% transparent instead.
994 \override LigatureBracket.transparent = ##t
996 %% Put some space before and after divisiones.
997 %% FIXME: This does not seem to show any effect.
998 \override Script.padding = #0.5
1000 %% There are no beams in Gregorian Chant notation.
1007 \name "GregorianTranscriptionStaff"
1010 \accepts "GregorianTranscriptionVoice"
1011 \defaultchild "GregorianTranscriptionVoice"
1013 %% We can not remove Bar_engraver; otherwise clefs and custodes will
1014 %% not show up any more among other line breaking issues.
1015 %% Instead, we make the grob transparent.
1016 \override BarLine.transparent = ##t
1021 \name "MensuralVoice"
1023 \description "Same as @code{Voice} context, except that it is
1024 accommodated for typesetting a piece in mensural style."
1026 \remove "Slur_engraver"
1027 \remove "Ligature_bracket_engraver"
1028 \consists "Mensural_ligature_engraver"
1030 %% Set default head for notes outside of \[ \].
1031 \override NoteHead.style = #'mensural
1032 \override Rest.style = #'mensural
1033 \override Flag.style = #'mensural
1035 %% There are no beams in mensural notation.
1041 \name "MensuralStaff"
1044 \defaultchild "MensuralVoice"
1045 \accepts "MensuralVoice"
1046 \description "Same as @code{Staff} context, except that it is
1047 accommodated for typesetting a piece in mensural style."
1049 \consists "Custos_engraver"
1051 %% We can not remove Bar_engraver; otherwise clefs and custodes will
1052 %% not show up any more among other line breaking issues.
1053 %% Instead, we make the grob transparent.
1054 \override BarLine.transparent = ##t
1056 \override StaffSymbol.thickness = #0.6
1058 %% FIXME: unit on StaffSymbol's width should be \linewidth.
1059 %% \override StaffSymbol.width = #60.0
1061 %% Choose mensural g clef on 2nd line as default.
1062 clefGlyph = #"clefs.mensural.g"
1063 middleCClefPosition = #-6
1064 middleCPosition = #-6
1066 clefTransposition = #0
1068 %% Select mensural style font.
1069 \override TimeSignature.style = #'mensural
1070 \override KeySignature.glyph-name-alist = #alteration-mensural-glyph-name-alist
1071 \override Accidental.glyph-name-alist = #alteration-mensural-glyph-name-alist
1072 \override Custos.style = #'mensural
1073 \override Custos.neutral-position = #3
1074 \override Custos.neutral-direction = #DOWN
1076 %% Accidentals are valid only once (same as
1077 %% \accidentalStyle forget)
1079 autoAccidentals = #`(Staff ,(make-accidental-rule 'same-octave -1))
1080 autoCautionaries = #'()
1081 printKeyCancellation = ##f
1086 \name "PetrucciVoice"
1088 \description "Same as @code{Voice} context, except that it is
1089 accommodated for typesetting a piece in Petrucci style."
1091 \remove "Ligature_bracket_engraver"
1092 \consists "Mensural_ligature_engraver"
1094 %% Set glyph styles.
1095 \override NoteHead.style = #'petrucci
1096 \override Rest.style = #'mensural
1098 % Thickens and shortens stems.
1099 \override Stem.thickness = #1.7
1100 \override Stem.length = #5
1102 %% There are no beams in Petrucci notation.
1108 \name "PetrucciStaff"
1111 \defaultchild "PetrucciVoice"
1112 \accepts "PetrucciVoice"
1113 \description "Same as @code{Staff} context, except that it is
1114 accommodated for typesetting a piece in Petrucci style."
1116 \consists "Custos_engraver"
1118 \override StaffSymbol.thickness = #1.3
1120 %% Choose Petrucci g clef on 2nd line as default.
1121 clefGlyph = #"clefs.petrucci.g"
1122 middleCClefPosition = #-6
1123 middleCPosition = #-6
1125 clefTransposition = #0
1127 \override Custos.style = #'mensural
1128 \override Custos.neutral-position = #3
1129 \override Custos.neutral-direction = #DOWN
1131 %% Accidentals are valid only once (if the following note is different)
1133 autoAccidentals = #`(Staff ,(make-accidental-rule 'same-octave 0)
1134 ,neo-modern-accidental-rule)
1135 autoCautionaries = #'()
1136 printKeyCancellation = ##f
1143 \description "Same as @code{Voice} context, except that it is
1144 accommodated for typesetting a piece in Kievan style."
1146 \remove "Ligature_bracket_engraver"
1147 \consists "Kievan_ligature_engraver"
1149 %% Set glyph styles.
1150 \override NoteHead.style = #'kievan
1151 \override Stem.X-offset = #stem::kievan-offset-callback
1152 \override Stem.stencil = ##f
1153 \override Flag.stencil = ##f
1154 \override Rest.style = #'mensural
1155 \override Accidental.glyph-name-alist = #alteration-kievan-glyph-name-alist
1156 \override Dots.style = #'kievan
1157 \override Slur.stencil = ##f
1158 \override Stem.length = #0.0
1159 \override Beam.positions = #beam::get-kievan-positions
1160 \override Beam.quantized-positions = #beam::get-kievan-quantized-positions
1161 \override NoteHead.duration-log = #note-head::calc-kievan-duration-log
1163 %% There are beams in Kievan notation, but they are invoked manually
1172 \defaultchild "KievanVoice"
1173 \accepts "KievanVoice"
1174 \description "Same as @code{Staff} context, except that it is
1175 accommodated for typesetting a piece in Kievan style."
1177 \remove "Time_signature_engraver"
1179 %% Choose Kievan tsefaut clef
1180 clefGlyph = #"clefs.kievan.do"
1181 middleCClefPosition = #0
1182 middleCPosition = #0
1184 clefTransposition = #0
1186 %% Accidentals are valid only once (if the following note is different)
1188 autoAccidentals = #`(Staff ,(make-accidental-rule 'same-octave 0)
1189 ,neo-modern-accidental-rule)
1190 autoCautionaries = #'()
1191 printKeyCancellation = ##f
1195 %% Keep the old definitions in here for compatibility (they erase previous
1196 %% settings to the corresponding context!).
1197 %% For new scores, one should simply insert the \RemoveEmptyStaves settings
1198 %% into the desired context. That's just as easy, requires only one line more
1199 %% (the \*Staff), but preserves previous context mods.
1200 %% TODO: DEPRECATED_2.13.17, remove at some point in the future
1201 RemoveEmptyStaffContext = \context {
1206 AncientRemoveEmptyStaffContext = \context {
1211 RemoveEmptyDrumStaffContext = \context {
1216 RemoveEmptyRhythmicStaffContext = \context {
1221 RemoveEmptyTabStaffContext = \context {