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"
243 \consists "Grace_auto_beam_engraver"
245 %% must come before Script_column_engraver.
246 \consists "New_fingering_engraver"
248 \consists "Chord_tremolo_engraver"
249 \consists "Double_percent_repeat_engraver"
250 \consists "Percent_repeat_engraver"
251 \consists "Slash_repeat_engraver"
252 \consists "Part_combine_engraver"
254 \consists "Text_engraver"
255 \consists "New_dynamic_engraver"
256 \consists "Dynamic_align_engraver"
257 % \consists "Dynamic_engraver"
258 \consists "Fingering_engraver"
259 \consists "Bend_engraver"
261 \consists "Script_engraver"
262 \consists "Script_column_engraver"
263 \consists "Rhythmic_column_engraver"
264 \consists "Note_spacing_engraver"
265 \consists "Spanner_break_forbid_engraver"
266 \consists "Phrasing_slur_engraver"
267 \consists "Cluster_spanner_engraver"
268 \consists "Slur_engraver"
269 \consists "Tie_engraver"
270 \consists "Tuplet_engraver"
271 \consists "Grace_engraver"
272 \consists "Instrument_switch_engraver"
281 \override Stem.length-fraction = #(magstep -4)
282 \override Beam.length-fraction = #(magstep -4)
283 \override Beam.beam-thickness = #0.35
291 \description "A voice on a percussion staff."
292 \remove "Arpeggio_engraver"
293 \consists "Grob_pq_engraver"
295 \remove "Note_head_line_engraver"
296 \remove "Glissando_engraver"
297 \remove "Ligature_bracket_engraver"
298 \remove "Note_heads_engraver"
299 \consists "Drum_notes_engraver"
300 \remove "New_fingering_engraver"
302 \remove "Fingering_engraver"
304 \remove "Cluster_spanner_engraver"
308 \type "Engraver_group"
310 localKeySignature = #'()
312 \description "A group of staves, with a brace on the left
313 side, grouping the staves together. The bar lines of the
314 contained staves are connected vertically."
316 \consists "Instrument_name_engraver"
317 \consists "Span_bar_engraver"
318 \consists "Span_bar_stub_engraver"
319 \consists "Span_arpeggio_engraver"
320 \consists "System_start_delimiter_engraver"
321 \consists "Vertical_align_engraver"
322 systemStartDelimiter = #'SystemStartBrace
323 topLevelAlignment = ##f
324 %% explicitly set instrument, so it is not inherited from the parent
325 instrumentName = #'()
326 shortInstrumentName = #'()
328 \defaultchild "Staff"
330 \accepts "RhythmicStaff"
334 \accepts "FiguredBass"
336 \accepts "ChordNames"
344 \description "Just like @code{GrandStaff}, but the staves are only removed
345 together, never separately."
347 \consists "Vertical_align_engraver"
348 \consists "Keep_alive_together_engraver"
349 topLevelAlignment = ##f
351 instrumentName = #'()
352 shortInstrumentName = #'()
356 \type "Engraver_group"
359 \consists "Vertical_align_engraver"
360 topLevelAlignment = ##f
362 \consists "Instrument_name_engraver"
363 \consists "Span_bar_engraver"
364 \consists "Span_bar_stub_engraver"
365 \consists "Span_arpeggio_engraver"
366 \consists "Output_property_engraver"
367 systemStartDelimiter = #'SystemStartBracket
368 %% explicitly set instrument, so it is not inherited from the parent
369 instrumentName = #'()
370 shortInstrumentName = #'()
372 \consists "System_start_delimiter_engraver"
374 \defaultchild "Staff"
376 \accepts "RhythmicStaff"
378 \accepts "GrandStaff"
379 \accepts "PianoStaff"
382 \accepts "ChordNames"
383 \accepts "FiguredBass"
384 \accepts "ChoirStaff"
385 \accepts "StaffGroup"
387 \description "Groups staves while adding a bracket on the left
388 side, grouping the staves together. The bar lines of the contained
389 staves are connected vertically. @code{StaffGroup} only consists of
390 a collection of staves, with a bracket in front and spanning bar lines."
394 \type "Engraver_group"
397 \consists "Output_property_engraver"
398 \consists "Bar_engraver"
399 \consists "Piano_pedal_engraver"
400 \consists "Script_engraver"
401 \consists "New_dynamic_engraver"
402 \consists "Dynamic_align_engraver"
403 \consists "Text_engraver"
404 \consists "Text_spanner_engraver"
405 \consists "Font_size_engraver"
406 \consists "Axis_group_engraver"
408 pedalSustainStrings = #'("Ped." "*Ped." "*")
409 pedalUnaCordaStrings = #'("una corda" "" "tre corde")
410 \override VerticalAxisGroup.staff-affinity = #CENTER
411 \override VerticalAxisGroup.nonstaff-relatedstaff-spacing =
412 #'((basic-distance . 5)
414 \override TextScript.font-shape = #'italic
415 \override DynamicLineSpanner.Y-offset = #0
416 \override DynamicLineSpanner.outside-staff-priority = ##f
417 \override DynamicText.outside-staff-priority = ##f
418 \override Hairpin.outside-staff-priority = ##f
419 \override DynamicText.X-offset =
420 #(ly:make-simple-closure
422 ,(ly:make-simple-closure
423 (list ly:self-alignment-interface::centered-on-note-columns))
424 ,(ly:make-simple-closure
425 (list ly:self-alignment-interface::x-aligned-on-self))))
427 \description "Holds a single line of dynamics, which will be
428 centered between the staves surrounding this context."
433 \type "Engraver_group"
435 \description "Corresponds to a voice with lyrics. Handles the
436 printing of a single line of lyrics."
439 \consists "Lyric_engraver"
440 \consists "Extender_engraver"
441 \consists "Hyphen_engraver"
442 \consists "Stanza_number_engraver"
443 \consists "Instrument_name_engraver"
444 \consists "Font_size_engraver"
445 \consists "Axis_group_engraver"
446 \consists "Pure_from_neighbor_engraver"
448 %% explicitly set instrument, so it is not inherited from the parent
449 instrumentName = #'()
450 shortInstrumentName = #'()
452 \override VerticalAxisGroup.remove-first = ##t
453 \override VerticalAxisGroup.remove-empty = ##t
454 \override VerticalAxisGroup.staff-affinity = #UP
455 \override VerticalAxisGroup.nonstaff-relatedstaff-spacing =
456 #'((basic-distance . 5.5)
458 (stretchability . 1))
459 \override VerticalAxisGroup.nonstaff-nonstaff-spacing =
460 #'((basic-distance . 0)
461 (minimum-distance . 2.8)
463 (stretchability . 0))
464 \override VerticalAxisGroup.nonstaff-unrelatedstaff-spacing.padding = #1.5
465 \override InstrumentName.self-alignment-Y = ##f
467 %% sync with define-grobs.scm ;
468 \override InstrumentName.font-size = #1.0
470 %% make sure that barlines aren't collapsed, when
471 %% Bar_engraver is there.
472 \override BarLine.bar-extent = #'(-0.05 . 0.05)
477 \type "Engraver_group"
479 \description "A context for printing the names of notes."
480 \consists "Axis_group_engraver"
482 \override VerticalAxisGroup.staff-affinity = #UP
483 \override VerticalAxisGroup.nonstaff-nonstaff-spacing =
484 #'((basic-distance . 0)
485 (minimum-distance . 2.8)
487 (stretchability . 0))
488 \override VerticalAxisGroup.nonstaff-relatedstaff-spacing =
489 #'((basic-distance . 5.5)
491 (stretchability . 1))
492 \override VerticalAxisGroup.nonstaff-unrelatedstaff-spacing.padding = 1.5
494 \consists "Tie_engraver"
495 \consists "Note_name_engraver"
496 \consists "Separating_line_group_engraver"
500 \type "Engraver_group"
502 \description "Typesets chord names."
504 \consists "Output_property_engraver"
505 \consists "Separating_line_group_engraver"
506 \consists "Chord_name_engraver"
507 \consists "Axis_group_engraver"
508 % \consists "Note_spacing_engraver"
510 \override VerticalAxisGroup.remove-first = ##t
511 \override VerticalAxisGroup.remove-empty = ##t
512 \override VerticalAxisGroup.staff-affinity = #DOWN
513 \override VerticalAxisGroup.nonstaff-relatedstaff-spacing.padding = #0.5
514 \override VerticalAxisGroup.nonstaff-nonstaff-spacing.padding = #0.5
518 \type "Score_engraver"
521 \description "This is the top level notation context. No
522 other context can contain a @code{Score} context. This context
523 handles the administration of time signatures. It also makes sure
524 that items such as clefs, time signatures, and key-signatures are
525 aligned across staves.
527 You cannot explicitly instantiate a @code{Score} context (since it
528 is not contained in any other context). It is instantiated
529 automatically when an output definition (a @code{\\score} or
530 @code{\\layout} block) is processed."
532 \consists "Paper_column_engraver"
533 \consists "Repeat_acknowledge_engraver"
534 \consists "Staff_collecting_engraver"
538 %% An alias for Timing is established by the Timing_translator in
539 %% whatever context it is initialized, and the timing variables are
540 %% then copied from wherever Timing had been previously established.
541 %% The alias at Score level provides a target for initializing
542 %% Timing variables in layout definitions before any
543 %% Timing_translator has been run.
545 % timing translator must come BEFORE bar number engraver
546 \consists "Timing_translator"
547 \consists "Default_bar_line_engraver"
548 \consists "Output_property_engraver"
549 \consists "Tweak_engraver"
550 \consists "System_start_delimiter_engraver"
551 \consists "Mark_engraver"
552 \consists "Volta_engraver"
553 \consists "Metronome_mark_engraver"
554 \consists "Break_align_engraver"
555 \consists "Spacing_engraver"
556 \consists "Grace_spacing_engraver"
557 \consists "Vertical_align_engraver"
558 \consists "Stanza_number_align_engraver"
559 \consists "Bar_number_engraver"
560 \consists "Parenthesis_engraver"
561 \consists "Concurrent_hairpin_engraver"
562 \consists "Beam_collision_engraver"
563 \consists "Footnote_engraver"
565 \defaultchild "Staff"
567 \accepts "FretBoards"
569 \accepts "RhythmicStaff"
571 \accepts "VaticanaStaff"
572 \accepts "GregorianTranscriptionStaff"
573 \accepts "MensuralStaff"
574 \accepts "PetrucciStaff"
575 \accepts "StaffGroup"
577 \accepts "KievanStaff"
579 \accepts "ChordNames"
580 \accepts "GrandStaff"
581 \accepts "ChoirStaff"
582 \accepts "PianoStaff"
585 \accepts "FiguredBass"
587 noteToFretFunction = #determine-frets
588 predefinedDiagramTable = ##f
590 soloIIText = #"Solo II"
592 printPartCombineTexts = ##t
593 partCombineTextsOnNote = ##t
594 systemStartDelimiter =#'SystemStartBar
596 drumStyleTable = #drums-style
598 melismaBusyProperties = #default-melisma-properties
600 clefGlyph = #"clefs.G"
602 middleCClefPosition = #-6
603 middleCPosition = #-6
606 crescendoSpanner = #'hairpin
607 decrescendoSpanner = #'hairpin
609 defaultBarType = #"|"
610 doubleRepeatType = #":..:"
611 startRepeatType = #".|:"
612 endRepeatType = #":|."
613 barNumberVisibility = #first-bar-number-invisible-and-no-parenthesized-bar-numbers
614 barNumberFormatter = #robust-bar-number-function
615 clefTranspositionFormatter = #clef-transposition-markup
616 cueClefTranspositionFormatter = #clef-transposition-markup
619 explicitClefVisibility = #all-visible
620 explicitCueClefVisibility = #end-of-line-invisible
621 explicitKeySignatureVisibility = #all-visible
622 implicitTimeSignatureVisibility = #end-of-line-invisible
624 repeatCountVisibility = #all-repeat-counts-visible
626 %% Other Timing variables are derived and set by the Timing_translator
627 %% at initialization time by calling the functions in
628 %% scm/time-signature-settings.scm
630 timeSignatureSettings = #default-time-signature-settings
631 timeSignatureFraction = 4/4
633 beamHalfMeasure = ##t
636 autoBeamCheck = #default-auto-beam-check
638 scriptDefinitions = #default-script-alist
640 pedalSustainStrings = #'("Ped." "*Ped." "*")
641 pedalSustainStyle = #'text
642 pedalUnaCordaStrings = #'("una corda" "" "tre corde")
643 pedalUnaCordaStyle = #'text
645 %% These are in ordinary italic font, including the *,
646 %% but they are unlikely to be used,
647 %% as the default pedal-style for SostenutoPedal is 'mixed':
648 %% i.e. Sost. Ped_____________________
649 pedalSostenutoStrings = #'("Sost. Ped." "*Sost. Ped." "*")
650 pedalSostenutoStyle = #'mixed
652 harmonicAccidentals = ##t
653 fingeringOrientations = #'(up down)
654 stringNumberOrientations = #'(up down)
655 strokeFingerOrientations = #'(right)
657 lyricMelismaAlignment = #LEFT
658 markFormatter = #format-mark-letters
662 autoAccidentals = #`(Staff ,(make-accidental-rule 'same-octave 0))
663 autoCautionaries = #'()
665 printKeyCancellation = ##t
666 keyAlterationOrder = #`(
667 (6 . ,FLAT) (2 . ,FLAT) (5 . ,FLAT ) (1 . ,FLAT) (4 . ,FLAT) (0 . ,FLAT) (3 . ,FLAT)
668 (3 . ,SHARP) (0 . ,SHARP) (4 . ,SHARP) (1 . ,SHARP) (5 . ,SHARP) (2 . ,SHARP) (6 . ,SHARP)
669 (6 . ,DOUBLE-FLAT) (2 . ,DOUBLE-FLAT) (5 . ,DOUBLE-FLAT ) (1 . ,DOUBLE-FLAT) (4 . ,DOUBLE-FLAT) (0 . ,DOUBLE-FLAT) (3 . ,DOUBLE-FLAT)
670 (3 . ,DOUBLE-SHARP) (0 . ,DOUBLE-SHARP) (4 . ,DOUBLE-SHARP) (1 . ,DOUBLE-SHARP) (5 . ,DOUBLE-SHARP) (2 . ,DOUBLE-SHARP) (6 . ,DOUBLE-SHARP)
673 barCheckSynchronize = ##f
676 chordNameFunction = #ignatzek-chord-names
677 minorChordModifier = #(make-simple-markup "m")
678 additionalPitchPrefix = #"" % was "add"
679 majorSevenSymbol = #whiteTriangleMarkup
680 chordNameLowercaseMinor = ##f
681 chordNameSeparator = #(make-hspace-markup 0.5)
682 slashChordSeparator = #(make-simple-markup "/")
683 chordNameExceptions = #ignatzekExceptions
684 chordNoteNamer = #'()
685 chordRootNamer = #note-name->markup
686 chordPrefixSpacer = #0
687 chordNameExceptionsFull = #fullJazzExceptions
688 chordNameExceptionsPartial = #partialJazzExceptions
689 noChordSymbol = #(make-simple-markup "N.C.")
691 bassStaffProperties = #'((assign clefGlyph "clefs.F")
692 (assign clefPosition 2)
693 (assign middleCPosition 6)
694 (assign middleCClefPosition 6))
696 stringOneTopmost = ##t
699 %% One may change the string tunings as follows :
700 %% The length of the list must be equal to the number of strings
701 stringTunings = #guitar-tuning
702 tablatureFormat = #fret-number-tablature-format
703 tabStaffLineLayoutFunction = #tablature-position-on-lines
706 figuredBassFormatter = #format-bass-figure
707 metronomeMarkFormatter = #format-metronome-markup
709 %% See also make-voice-props-set
710 graceSettings = #score-grace-settings
712 keepAliveInterfaces = #'(
713 bass-figure-interface
715 cluster-beacon-interface
716 fret-diagram-interface
717 lyric-syllable-interface
719 tab-note-head-interface
721 percent-repeat-item-interface
722 percent-repeat-interface
724 ;; need this, as stanza numbers are items, and appear only once.
725 stanza-number-interface
727 % \quoteDuring is supposed to quote everything, cueDuring only the essentials
728 quotedEventTypes = #'(StreamEvent)
729 quotedCueEventTypes = #'(
735 instrumentTransposition = #(ly:make-pitch 0 0 0)
737 topLevelAlignment = ##t
746 \type "Engraver_group"
748 \description "A context for printing a figured bass line."
750 \consists "Figured_bass_engraver"
751 \consists "Separating_line_group_engraver"
752 \consists "Axis_group_engraver"
754 \override VerticalAxisGroup.remove-empty = ##t
755 \override VerticalAxisGroup.remove-first = ##t
756 \override VerticalAxisGroup.staff-affinity = #UP
757 \override VerticalAxisGroup.nonstaff-relatedstaff-spacing.padding = #0.5
758 \override VerticalAxisGroup.nonstaff-nonstaff-spacing.padding = #0.5
763 \type "Engraver_group"
765 %% don't want to route anything out of here:
768 \description "Silently discards all musical information given to this
774 \type "Engraver_group"
776 \description "Non-printing context, typically used for aligning
777 lyrics in polyphonic situations, or with @code{\partcombine}."
779 %% don't route anything out of here
783 %% all three are needed for ties to work with lyrics
784 \consists "Note_heads_engraver"
785 \consists "Rhythmic_column_engraver"
786 \consists "Tie_engraver"
788 %% both are needed for melismas to work with \autoBeamOff
789 \consists "Beam_engraver"
790 \consists "Stem_engraver"
792 %% needed for slurs to work with lyrics
793 \consists "Slur_engraver"
795 %% keep noteheads inside the staff
796 \consists "Pitch_squash_engraver"
799 %% `\omit NoteHead' would give slur attachment errors
809 %% let these take up space (for lyric extenders, etc.)
810 \override NoteHead.transparent = ##t
811 \override TabNoteHead.transparent = ##t
813 %% don't let notes shift
814 \override NoteHead.X-offset = 0
815 \override NoteColumn.ignore-collision = ##t
817 %% keep beams and stems inside the staff
818 \override Beam.positions = #'(1 . 1)
819 \override Stem.length = 0
821 %% prevent "weird stem size" warnings
822 \override Stem.direction = #UP
829 \consists "Tab_note_heads_engraver"
830 \consists "Tab_tie_follow_engraver"
832 \remove "Note_heads_engraver"
833 \remove "Fingering_engraver"
834 \remove "New_fingering_engraver"
835 \remove "Pitched_trill_engraver"
837 \description "Context for drawing notes in a Tab staff."
839 %% No accidental in tablature !
840 \remove "Accidental_engraver"
848 \consists "Tab_staff_symbol_engraver"
850 \description "Context for generating tablature. It accepts only @code{TabVoice}
851 contexts and handles the line spacing, the tablature clef etc. properly."
854 \defaultchild "TabVoice"
856 %% 6 strings, bigger spacing
857 \override StaffSymbol.staff-space = #1.5
859 %% Don't draw stems over the tablature figures !
860 \override Stem.avoid-note-head = ##t
862 %% No accidental in tablature !
863 \remove "Accidental_engraver"
864 \remove "Key_engraver"
866 \remove "Ottava_spanner_engraver"
868 \override Clef.stencil = #clef::print-modern-tab-if-set
870 \override TimeSignature.stencil = ##f
872 \override Arpeggio.stencil = ##f
873 %% we ignore collision warnings that may occur due to
874 %% stem overlapping, because we have no stems ;-)
875 \override NoteColumn.ignore-collision = ##t
876 %% Special "TAB" clef
877 clefGlyph = #"clefs.tab"
879 %% Change string if note results in negative fret number
880 handleNegativeFrets = #'recalculate
881 %% Allow open strings even if minimumFret is set
882 restrainOpenStrings = ##f
884 %% TabStaff increase the staff-space, which in turn
885 %% increases beam thickness and spacing; beams are
886 %% too big. We have to adjust the beam settings:
887 \override Beam.beam-thickness = #0.32
888 \override Beam.length-fraction = #0.62
889 %% the same goes for tremolo beams
890 \override StemTremolo.beam-thickness = #0.32
891 %% NOTE: in lily/stem-tremolo.cc, we have length-fraction = 1,
892 %% and the tablature staff space is scaled (1.5 by default),
893 %% so we use the inversion of the scale factor:
894 \override StemTremolo.length-fraction = #(lambda (grob)
895 (/ 1 (ly:staff-symbol-staff-space grob)))
896 \override StemTremolo.beam-width = #stem-tremolo::calc-tab-width
898 %% make the Stems as short as possible to minimize their influence
899 %% on the slur::calc-control-points routine
900 \override Stem.no-stem-extend = ##t
901 \override Flag.style = #'no-flag
902 \override Stem.details = #'((lengths 0 0 0 0 0 0)
903 (beamed-lengths 0 0 0)
904 (beamed-minimum-free-lengths 0 0 0)
905 (beamed-extreme-minimum-free-lengths 0 0)
907 %% after all, the stubs of the stems may still be visible, so ...
908 \override Stem.stencil = ##f
909 \override Flag.stencil = ##f
910 %% automatic beams should be suppressed for similar reasons ...
912 %% remove beams, dots and rests ...
913 \override Beam.stencil = ##f
914 \override StemTremolo.stencil = ##f
915 \override Dots.stencil = ##f
916 \override Rest.stencil = ##f
917 \override MultiMeasureRest.stencil = ##f
918 \override MultiMeasureRestNumber.stencil = ##f
919 \override MultiMeasureRestText.stencil = ##f
920 %% ... all kinds of ties/slurs
921 \override Tie.stencil = ##f
922 \override RepeatTie.stencil = ##f
923 \override LaissezVibrerTie.stencil = ##f
924 \override Slur.stencil = #slur::draw-tab-slur
925 \override PhrasingSlur.stencil = ##f
926 %% 'tied to' fret numbers become invisible or parenthesized, respectively)
927 \override Tie.after-line-breaking = #tie::handle-tab-note-head
928 \override RepeatTie.after-line-breaking = #repeat-tie::handle-tab-note-head
929 %% ... and all kinds of markups, spanners etc.
930 \override TupletBracket.stencil = ##f
931 \override TupletNumber.stencil = ##f
932 \override DynamicText.stencil = ##f
933 \override DynamicTextSpanner.stencil = ##f
934 \override TextSpanner.stencil = ##f
935 \override Hairpin.stencil = ##f
936 \override Script.stencil = ##f
937 \override TextScript.stencil = ##f
938 \override Glissando.stencil = #glissando::draw-tab-glissando
939 %% the direction for glissando lines will be automatically corrected
940 \override Glissando.extra-dy = #glissando::calc-tab-extra-dy
941 \override Glissando.bound-details.right = #`((attach-dir . ,LEFT)
943 \override Glissando.bound-details.left = #`((attach-dir . ,RIGHT)
946 \override TabNoteHead.glyph-name = #tab-note-head::calc-glyph-name
947 \override TabNoteHead.stencil = #tab-note-head::whiteout-if-style-set
952 \name "VaticanaVoice"
954 \description "Same as @code{Voice} context, except that it is
955 accommodated for typesetting Gregorian Chant in the notational style
958 \remove "Slur_engraver"
959 \remove "Stem_engraver"
960 \remove "Ligature_bracket_engraver"
961 \consists "Vaticana_ligature_engraver"
962 \remove "Text_spanner_engraver"
963 \consists "Episema_engraver"
965 %% Set default head for notes outside of \[ \].
966 \override NoteHead.style = #'vaticana.punctum
968 %% Put some space before and after divisiones.
969 %% FIXME: This does not seem to show any effect.
970 \override Script.padding = #0.5
972 %% There are no beams in Gregorian Chant notation.
978 \name "VaticanaStaff"
981 \accepts "VaticanaVoice"
982 \defaultchild "VaticanaVoice"
984 \description "Same as @code{Staff} context, except that it is
985 accommodated for typesetting Gregorian Chant in the notational style
988 \remove "Time_signature_engraver"
989 \consists "Custos_engraver"
991 %% We can not remove Bar_engraver; otherwise clefs and custodes will
992 %% not show up any more among other line breaking issues.
993 %% Instead, we make the grob transparent.
994 \override BarLine.transparent = ##t
996 \override StaffSymbol.line-count = #4
997 \override StaffSymbol.thickness = #0.6
999 %% FIXME: unit on StaffSymbol's width should be \linewidth.
1000 %% \override StaffSymbol.width = #60.0
1002 %% Choose vaticana do clef on 3rd line as default.
1003 clefGlyph = #"clefs.vaticana.do"
1004 middleCPosition = #1
1005 middleCClefPosition = #1
1007 clefTransposition = #0
1009 %% Select vaticana style font.
1010 \override KeySignature.glyph-name-alist = #alteration-vaticana-glyph-name-alist
1011 \override Accidental.glyph-name-alist = #alteration-vaticana-glyph-name-alist
1012 \override Custos.style = #'vaticana
1013 \override Custos.neutral-position = #3
1014 \override Custos.neutral-direction = #DOWN
1015 \override Dots.style = #'vaticana
1020 \name "GregorianTranscriptionVoice"
1022 \consists "Episema_engraver"
1024 %% Removing ligature bracket engraver without replacing it by some
1025 %% other ligature engraver would cause a "Junking event: `LigatureEvent'"
1026 %% warning for every "\[" and "\]". Therefore, we make the grob
1027 %% transparent instead.
1028 \override LigatureBracket.transparent = ##t
1030 %% Put some space before and after divisiones.
1031 %% FIXME: This does not seem to show any effect.
1032 \override Script.padding = #0.5
1034 %% There are no beams in Gregorian Chant notation.
1041 \name "GregorianTranscriptionStaff"
1044 \accepts "GregorianTranscriptionVoice"
1045 \defaultchild "GregorianTranscriptionVoice"
1047 %% We can not remove Bar_engraver; otherwise clefs and custodes will
1048 %% not show up any more among other line breaking issues.
1049 %% Instead, we make the grob transparent.
1050 \override BarLine.transparent = ##t
1055 \name "MensuralVoice"
1057 \description "Same as @code{Voice} context, except that it is
1058 accommodated for typesetting a piece in mensural style."
1060 \remove "Slur_engraver"
1061 \remove "Ligature_bracket_engraver"
1062 \consists "Mensural_ligature_engraver"
1064 %% Set default head for notes outside of \[ \].
1065 \override NoteHead.style = #'mensural
1066 \override Rest.style = #'mensural
1067 \override Flag.style = #'mensural
1069 %% There are no beams in mensural notation.
1075 \name "MensuralStaff"
1078 \defaultchild "MensuralVoice"
1079 \accepts "MensuralVoice"
1080 \description "Same as @code{Staff} context, except that it is
1081 accommodated for typesetting a piece in mensural style."
1083 \consists "Custos_engraver"
1085 %% We can not remove Bar_engraver; otherwise clefs and custodes will
1086 %% not show up any more among other line breaking issues.
1087 %% Instead, we make the grob transparent.
1088 \override BarLine.transparent = ##t
1090 \override StaffSymbol.thickness = #0.6
1092 %% FIXME: unit on StaffSymbol's width should be \linewidth.
1093 %% \override StaffSymbol.width = #60.0
1095 %% Choose mensural g clef on 2nd line as default.
1096 clefGlyph = #"clefs.mensural.g"
1097 middleCClefPosition = #-6
1098 middleCPosition = #-6
1100 clefTransposition = #0
1102 %% Select mensural style font.
1103 \override TimeSignature.style = #'mensural
1104 \override KeySignature.glyph-name-alist = #alteration-mensural-glyph-name-alist
1105 \override Accidental.glyph-name-alist = #alteration-mensural-glyph-name-alist
1106 \override Custos.style = #'mensural
1107 \override Custos.neutral-position = #3
1108 \override Custos.neutral-direction = #DOWN
1110 %% Accidentals are valid only once (same as
1111 %% \accidentalStyle forget)
1113 autoAccidentals = #`(Staff ,(make-accidental-rule 'same-octave -1))
1114 autoCautionaries = #'()
1115 printKeyCancellation = ##f
1120 \name "PetrucciVoice"
1122 \description "Same as @code{Voice} context, except that it is
1123 accommodated for typesetting a piece in Petrucci style."
1125 \remove "Ligature_bracket_engraver"
1126 \consists "Mensural_ligature_engraver"
1128 %% Set glyph styles.
1129 \override NoteHead.style = #'petrucci
1130 \override Rest.style = #'mensural
1132 % Thickens and shortens stems.
1133 \override Stem.thickness = #1.7
1134 \override Stem.length = #5
1136 %% There are no beams in Petrucci notation.
1142 \name "PetrucciStaff"
1145 \defaultchild "PetrucciVoice"
1146 \accepts "PetrucciVoice"
1147 \description "Same as @code{Staff} context, except that it is
1148 accommodated for typesetting a piece in Petrucci style."
1150 \consists "Custos_engraver"
1152 \override StaffSymbol.thickness = #1.3
1154 %% Choose Petrucci g clef on 2nd line as default.
1155 clefGlyph = #"clefs.petrucci.g"
1156 middleCClefPosition = #-6
1157 middleCPosition = #-6
1159 clefTransposition = #0
1161 \override Custos.style = #'mensural
1162 \override Custos.neutral-position = #3
1163 \override Custos.neutral-direction = #DOWN
1165 %% Accidentals are valid only once (if the following note is different)
1167 autoAccidentals = #`(Staff ,(make-accidental-rule 'same-octave 0)
1168 ,neo-modern-accidental-rule)
1169 autoCautionaries = #'()
1170 printKeyCancellation = ##f
1177 \description "Same as @code{Voice} context, except that it is
1178 accommodated for typesetting a piece in Kievan style."
1180 \remove "Ligature_bracket_engraver"
1181 \consists "Kievan_ligature_engraver"
1183 %% Set glyph styles.
1184 \override NoteHead.style = #'kievan
1185 \override Stem.X-offset = #stem::kievan-offset-callback
1186 \override Stem.stencil = ##f
1187 \override Flag.stencil = ##f
1188 \override Rest.style = #'mensural
1189 \override Accidental.glyph-name-alist = #alteration-kievan-glyph-name-alist
1190 \override Dots.style = #'kievan
1191 \override Slur.stencil = ##f
1192 \override Stem.length = #0.0
1193 \override Beam.positions = #beam::get-kievan-positions
1194 \override Beam.quantized-positions = #beam::get-kievan-quantized-positions
1195 \override NoteHead.duration-log = #note-head::calc-kievan-duration-log
1197 %% There are beams in Kievan notation, but they are invoked manually
1206 \defaultchild "KievanVoice"
1207 \accepts "KievanVoice"
1208 \description "Same as @code{Staff} context, except that it is
1209 accommodated for typesetting a piece in Kievan style."
1211 \remove "Time_signature_engraver"
1213 %% Choose Kievan tsefaut clef
1214 clefGlyph = #"clefs.kievan.do"
1215 middleCClefPosition = #0
1216 middleCPosition = #0
1218 clefTransposition = #0
1220 %% Accidentals are valid only once (if the following note is different)
1222 autoAccidentals = #`(Staff ,(make-accidental-rule 'same-octave 0)
1223 ,neo-modern-accidental-rule)
1224 autoCautionaries = #'()
1225 printKeyCancellation = ##f
1229 %% Keep the old definitions in here for compatibility (they erase previous
1230 %% settings to the corresponding context!).
1231 %% For new scores, one should simply insert the \RemoveEmptyStaves settings
1232 %% into the desired context. That's just as easy, requires only one line more
1233 %% (the \*Staff), but preserves previous context mods.
1234 %% TODO: DEPRECATED_2.13.17, remove at some point in the future
1235 RemoveEmptyStaffContext = \context {
1240 AncientRemoveEmptyStaffContext = \context {
1245 RemoveEmptyDrumStaffContext = \context {
1250 RemoveEmptyRhythmicStaffContext = \context {
1255 RemoveEmptyTabStaffContext = \context {