1 %%%% This file is part of LilyPond, the GNU music typesetter.
3 %%%% Copyright (C) 1996--2011 Han-Wen Nienhuys <hanwen@xs4all.nl>
4 %%%% Jan Nieuwenhuizen <janneke@gnu.org>
6 %%%% LilyPond is free software: you can redistribute it and/or modify
7 %%%% it under the terms of the GNU General Public License as published by
8 %%%% the Free Software Foundation, either version 3 of the License, or
9 %%%% (at your option) any later version.
11 %%%% LilyPond is distributed in the hope that it will be useful,
12 %%%% but WITHOUT ANY WARRANTY; without even the implied warranty of
13 %%%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 %%%% GNU General Public License for more details.
16 %%%% You should have received a copy of the GNU General Public License
17 %%%% along with LilyPond. If not, see <http://www.gnu.org/licenses/>.
27 \description "Hard coded entry point for LilyPond. Cannot be tuned."
28 \grobdescriptions #all-grob-descriptions
32 \type "Engraver_group"
34 \description "A context for displaying fret diagrams."
36 \consists "Fretboard_engraver"
37 \consists "Output_property_engraver"
38 \consists "Hara_kiri_engraver"
39 \consists "Separating_line_group_engraver"
40 \consists "Font_size_engraver"
41 \consists "Instrument_name_engraver"
43 %% explicitly set instrument, so it is not inherited from the parent
45 shortInstrumentName = #'()
47 predefinedDiagramTable = #default-fret-table
48 handleNegativeFrets = #'recalculate
52 \type "Engraver_group"
55 \consists "Output_property_engraver"
56 \consists "Bar_engraver"
57 \consists "Pure_from_neighbor_engraver"
58 %% Bar_engraver must be first so default bars aren't overwritten
61 \consists "Font_size_engraver"
62 \consists "Separating_line_group_engraver"
63 \consists "Dot_column_engraver"
64 \consists "Staff_collecting_engraver"
66 %% perhaps move to Voice context?
67 \consists "Ottava_spanner_engraver"
68 \consists "Clef_engraver"
69 \consists "Key_engraver"
70 \consists "Time_signature_engraver"
71 \consists "Ledger_line_engraver"
72 \consists "Staff_symbol_engraver"
73 \consists "Collision_engraver"
74 \consists "Beam_collision_engraver"
75 \consists "Grob_pq_engraver"
76 \consists "Rest_collision_engraver"
77 \consists "Accidental_engraver"
78 \consists "Piano_pedal_engraver"
79 \consists "Piano_pedal_align_engraver"
80 \consists "Instrument_name_engraver"
81 \consists "Axis_group_engraver"
82 \consists "Figured_bass_engraver"
83 \consists "Figured_bass_position_engraver"
84 \consists "Script_row_engraver"
85 \consists "Cue_clef_engraver"
87 localKeySignature = #'()
89 ignoreFiguredBassRest = ##f
91 %% explicitly set instrument, so we don't get
92 %% weird effects when doing instrument names for
95 shortInstrumentName = #'()
101 \description "Handles clefs, bar lines, keys, accidentals. It can contain
102 @code{Voice} contexts."
108 \type "Engraver_group"
112 \remove "Accidental_engraver"
113 \remove "Ottava_spanner_engraver"
114 \remove "Key_engraver"
115 \remove "Piano_pedal_engraver"
117 \description "Handles typesetting for percussion."
121 \defaultchild "DrumVoice"
123 clefGlyph = #"clefs.percussion"
125 \override Script #'staff-padding = #0.75
130 \type "Engraver_group"
132 \consists "Vertical_align_engraver"
133 topLevelAlignment = ##f
135 \consists "Instrument_name_engraver"
136 \consists "System_start_delimiter_engraver"
137 systemStartDelimiter = #'SystemStartBracket
138 %% explicitly set instrument, so it is not inherited from the parent
139 instrumentName = #'()
140 shortInstrumentName = #'()
142 shortVocalName = #'()
146 \accepts "RhythmicStaff"
147 \accepts "GrandStaff"
148 \accepts "PianoStaff"
150 \accepts "ChordNames"
151 \accepts "FiguredBass"
152 \accepts "ChoirStaff"
153 \accepts "StaffGroup"
154 \defaultchild "Staff"
155 \description "Identical to @code{StaffGroup} except that the
156 contained staves are not connected vertically."
160 \type "Engraver_group"
162 localKeySignature = #'()
165 squashedPosition = #0
169 \override BarLine #'bar-extent = #'(-2 . 2)
170 \override VoltaBracket #'staff-padding = #3
171 \override StaffSymbol #'line-count = #1
173 \override Stem #'neutral-direction = #UP
174 \override Beam #'neutral-direction = #UP
176 \consists "Output_property_engraver"
177 \consists "Font_size_engraver"
178 \consists "Separating_line_group_engraver"
179 \consists "Dot_column_engraver"
180 \consists "Bar_engraver"
181 \consists "Staff_symbol_engraver"
182 \consists "Pitch_squash_engraver"
183 \consists "Time_signature_engraver"
184 \consists "Instrument_name_engraver"
185 \consists "Axis_group_engraver"
186 \consists "Ledger_line_engraver"
188 %% explicitly set instrument, so it is not inherited from the parent
189 instrumentName = #'()
190 shortInstrumentName = #'()
194 \defaultchild "Voice"
196 \description "A context like @code{Staff} but for printing rhythms.
197 Pitches are ignored; the notes are printed on one line."
202 \type "Engraver_group"
205 \description "Corresponds to a voice on a staff. This context
206 handles the conversion of dynamic signs, stems, beams, super- and
207 subscripts, slurs, ties, and rests.
209 You have to instantiate this explicitly if you want to have
210 multiple voices on the same staff."
212 \consists "Font_size_engraver"
214 \consists "Pitched_trill_engraver"
215 \consists "Output_property_engraver"
216 \consists "Arpeggio_engraver"
217 \consists "Multi_measure_rest_engraver"
218 \consists "Text_spanner_engraver"
219 \consists "Trill_spanner_engraver"
220 \consists "Grob_pq_engraver"
221 \consists "Forbid_line_break_engraver"
222 \consists "Laissez_vibrer_engraver"
223 \consists "Repeat_tie_engraver"
224 \consists "Note_head_line_engraver"
225 \consists "Glissando_engraver"
226 \consists "Ligature_bracket_engraver"
227 \consists "Breathing_sign_engraver"
228 \consists "Note_heads_engraver"
229 \consists "Dots_engraver"
230 \consists "Rest_engraver"
231 \consists "Tweak_engraver"
232 \consists "Footnote_engraver"
234 %% switch on to make stem directions interpolate for the
236 % \consists "Melody_engraver"
238 \consists "Stem_engraver"
239 \consists "Beam_engraver"
240 \consists "Grace_beam_engraver"
241 \consists "Auto_beam_engraver"
243 %% must come before Script_column_engraver.
244 \consists "New_fingering_engraver"
246 \consists "Chord_tremolo_engraver"
247 \consists "Double_percent_repeat_engraver"
248 \consists "Percent_repeat_engraver"
249 \consists "Slash_repeat_engraver"
250 \consists "Part_combine_engraver"
252 \consists "Text_engraver"
253 \consists "New_dynamic_engraver"
254 \consists "Dynamic_align_engraver"
255 % \consists "Dynamic_engraver"
256 \consists "Fingering_engraver"
257 \consists "Bend_engraver"
259 \consists "Script_engraver"
260 \consists "Script_column_engraver"
261 \consists "Rhythmic_column_engraver"
262 \consists "Note_spacing_engraver"
263 \consists "Spanner_break_forbid_engraver"
264 \consists "Phrasing_slur_engraver"
265 \consists "Cluster_spanner_engraver"
266 \consists "Slur_engraver"
267 \consists "Tie_engraver"
268 \consists "Tuplet_engraver"
269 \consists "Grace_engraver"
270 \consists "Instrument_switch_engraver"
279 \override Stem #'length-fraction = #(magstep -4)
280 \override Beam #'length-fraction = #(magstep -4)
281 \override Beam #'beam-thickness = #0.35
289 \description "A voice on a percussion staff."
290 \remove "Arpeggio_engraver"
291 \consists "Grob_pq_engraver"
293 \remove "Note_head_line_engraver"
294 \remove "Glissando_engraver"
295 \remove "Ligature_bracket_engraver"
296 \remove "Note_heads_engraver"
297 \consists "Drum_notes_engraver"
298 \remove "New_fingering_engraver"
300 \remove "Fingering_engraver"
302 \remove "Cluster_spanner_engraver"
306 \type "Engraver_group"
308 localKeySignature = #'()
310 \description "A group of staves, with a brace on the left
311 side, grouping the staves together. The bar lines of the
312 contained staves are connected vertically."
314 \consists "Instrument_name_engraver"
315 \consists "Span_bar_engraver"
316 \consists "Span_bar_stub_engraver"
317 \consists "Span_arpeggio_engraver"
318 \consists "System_start_delimiter_engraver"
319 \consists "Vertical_align_engraver"
320 systemStartDelimiter = #'SystemStartBrace
321 topLevelAlignment = ##f
322 %% explicitly set instrument, so it is not inherited from the parent
323 instrumentName = #'()
324 shortInstrumentName = #'()
326 \defaultchild "Staff"
328 \accepts "RhythmicStaff"
332 \accepts "FiguredBass"
334 \accepts "ChordNames"
342 \description "Just like @code{GrandStaff}, but the staves are only removed
343 together, never separately."
345 \consists "Vertical_align_engraver"
346 \consists "Keep_alive_together_engraver"
347 topLevelAlignment = ##f
349 instrumentName = #'()
350 shortInstrumentName = #'()
354 \type "Engraver_group"
357 \consists "Vertical_align_engraver"
358 topLevelAlignment = ##f
360 \consists "Instrument_name_engraver"
361 \consists "Span_bar_engraver"
362 \consists "Span_bar_stub_engraver"
363 \consists "Span_arpeggio_engraver"
364 \consists "Output_property_engraver"
365 systemStartDelimiter = #'SystemStartBracket
366 %% explicitly set instrument, so it is not inherited from the parent
367 instrumentName = #'()
368 shortInstrumentName = #'()
370 \consists "System_start_delimiter_engraver"
372 \defaultchild "Staff"
374 \accepts "RhythmicStaff"
376 \accepts "GrandStaff"
377 \accepts "PianoStaff"
380 \accepts "ChordNames"
381 \accepts "FiguredBass"
382 \accepts "ChoirStaff"
383 \accepts "StaffGroup"
385 \description "Groups staves while adding a bracket on the left
386 side, grouping the staves together. The bar lines of the contained
387 staves are connected vertically. @code{StaffGroup} only consists of
388 a collection of staves, with a bracket in front and spanning bar lines."
392 \type "Engraver_group"
395 \consists "Output_property_engraver"
396 \consists "Bar_engraver"
397 \consists "Piano_pedal_engraver"
398 \consists "Script_engraver"
399 \consists "New_dynamic_engraver"
400 \consists "Dynamic_align_engraver"
401 \consists "Text_engraver"
402 \consists "Text_spanner_engraver"
403 \consists "Axis_group_engraver"
404 \consists "Tweak_engraver"
406 pedalSustainStrings = #'("Ped." "*Ped." "*")
407 pedalUnaCordaStrings = #'("una corda" "" "tre corde")
408 \override VerticalAxisGroup #'staff-affinity = #CENTER
409 \override VerticalAxisGroup #'nonstaff-relatedstaff-spacing =
410 #'((basic-distance . 5)
412 \override TextScript #'font-shape = #'italic
413 \override DynamicLineSpanner #'Y-offset = #0
415 \description "Holds a single line of dynamics, which will be
416 centered between the staves surrounding this context."
421 \type "Engraver_group"
423 \description "Corresponds to a voice with lyrics. Handles the
424 printing of a single line of lyrics."
427 \consists "Lyric_engraver"
428 \consists "Extender_engraver"
429 \consists "Hyphen_engraver"
430 \consists "Stanza_number_engraver"
431 \consists "Instrument_name_engraver"
432 \consists "Font_size_engraver"
433 \consists "Hara_kiri_engraver"
434 \consists "Pure_from_neighbor_engraver"
436 %% explicitly set instrument, so it is not inherited from the parent
437 instrumentName = #'()
438 shortInstrumentName = #'()
440 \override VerticalAxisGroup #'remove-first = ##t
441 \override VerticalAxisGroup #'remove-empty = ##t
442 \override VerticalAxisGroup #'staff-affinity = #UP
443 \override VerticalAxisGroup #'nonstaff-relatedstaff-spacing =
444 #'((basic-distance . 5.5)
446 (stretchability . 1))
447 \override VerticalAxisGroup #'nonstaff-nonstaff-spacing =
448 #'((basic-distance . 0)
449 (minimum-distance . 2.8)
451 (stretchability . 0))
452 \override VerticalAxisGroup #'nonstaff-unrelatedstaff-spacing #'padding = #1.5
453 \override InstrumentName #'self-alignment-Y = ##f
455 %% sync with define-grobs.scm ;
456 \override InstrumentName #'font-size = #1.0
458 %% make sure that barlines aren't collapsed, when
459 %% Bar_engraver is there.
460 \override BarLine #'bar-extent = #'(-0.05 . 0.05)
465 \type "Engraver_group"
467 \description "A context for printing the names of notes."
468 \consists "Axis_group_engraver"
470 \override VerticalAxisGroup #'staff-affinity = #UP
471 \override VerticalAxisGroup #'nonstaff-nonstaff-spacing =
472 #'((basic-distance . 0)
473 (minimum-distance . 2.8)
475 (stretchability . 0))
476 \override VerticalAxisGroup #'nonstaff-relatedstaff-spacing =
477 #'((basic-distance . 5.5)
479 (stretchability . 1))
480 \override VerticalAxisGroup
481 #'nonstaff-unrelatedstaff-spacing #'padding = 1.5
483 \consists "Tie_engraver"
484 \consists "Note_name_engraver"
485 \consists "Separating_line_group_engraver"
489 \type "Engraver_group"
491 \description "Typesets chord names."
493 \consists "Output_property_engraver"
494 \consists "Separating_line_group_engraver"
495 \consists "Chord_name_engraver"
496 \consists "Hara_kiri_engraver"
497 % \consists "Note_spacing_engraver"
498 \override VerticalAxisGroup #'remove-first = ##t
499 \override VerticalAxisGroup #'remove-empty = ##t
500 \override VerticalAxisGroup #'staff-affinity = #DOWN
501 \override VerticalAxisGroup #'nonstaff-relatedstaff-spacing #'padding = #0.5
502 \override VerticalAxisGroup #'nonstaff-nonstaff-spacing #'padding = #0.5
506 \type "Score_engraver"
509 \description "This is the top level notation context. No
510 other context can contain a @code{Score} context. This context
511 handles the administration of time signatures. It also makes sure
512 that items such as clefs, time signatures, and key-signatures are
513 aligned across staves.
515 You cannot explicitly instantiate a @code{Score} context (since it
516 is not contained in any other context). It is instantiated
517 automatically when an output definition (a @code{\score} or
518 @code{\layout} block) is processed."
520 \consists "Paper_column_engraver"
521 \consists "Repeat_acknowledge_engraver"
522 \consists "Staff_collecting_engraver"
524 %% move the alias along with the engraver.
526 % timing translator must come BEFORE bar number engraver
527 \consists "Timing_translator"
528 \consists "Default_bar_line_engraver"
529 \consists "Output_property_engraver"
530 \consists "System_start_delimiter_engraver"
531 \consists "Mark_engraver"
532 \consists "Volta_engraver"
533 \consists "Metronome_mark_engraver"
534 \consists "Break_align_engraver"
535 \consists "Spacing_engraver"
536 \consists "Grace_spacing_engraver"
537 \consists "Vertical_align_engraver"
538 \consists "Stanza_number_align_engraver"
539 \consists "Bar_number_engraver"
540 \consists "Parenthesis_engraver"
542 \defaultchild "Staff"
544 \accepts "FretBoards"
546 \accepts "RhythmicStaff"
548 \accepts "VaticanaStaff"
549 \accepts "GregorianTranscriptionStaff"
550 \accepts "MensuralStaff"
551 \accepts "PetrucciStaff"
552 \accepts "StaffGroup"
555 \accepts "ChordNames"
556 \accepts "GrandStaff"
557 \accepts "ChoirStaff"
558 \accepts "PianoStaff"
561 \accepts "FiguredBass"
564 noteToFretFunction = #determine-frets
565 predefinedDiagramTable = ##f
567 soloIIText = #"Solo II"
569 printPartCombineTexts = ##t
570 partCombineTextsOnNote = ##t
571 systemStartDelimiter =#'SystemStartBar
573 drumStyleTable = #drums-style
575 melismaBusyProperties = #default-melisma-properties
577 clefGlyph = #"clefs.G"
579 middleCClefPosition = #-6
580 middleCPosition = #-6
583 crescendoSpanner = #'hairpin
584 decrescendoSpanner = #'hairpin
586 defaultBarType = #"|"
587 doubleRepeatType = #":|:"
588 barNumberVisibility = #first-bar-number-invisible-and-no-parenthesized-bar-numbers
589 barNumberFormatter = #robust-bar-number-function
592 explicitClefVisibility = #all-visible
593 explicitCueClefVisibility = #end-of-line-invisible
594 explicitKeySignatureVisibility = #all-visible
595 implicitTimeSignatureVisibility = #end-of-line-invisible
597 repeatCountVisibility = #all-repeat-counts-visible
599 timeSignatureSettings = #default-time-signature-settings
600 timeSignatureFraction = #'(4 . 4)
602 %% These defaults should be the same as the rules established in
603 %% scm/time-signature-settings.scm for 4/4 time
604 measureLength = #(ly:make-moment 4 4)
605 baseMoment = #(ly:make-moment 1 4)
606 beatStructure = #'(1 1 1 1)
607 beamExceptions = #'((end . (((1 . 8) . (4 4))
608 ((1 . 12) . (3 3 3 3)))))
610 autoBeamCheck = #default-auto-beam-check
612 scriptDefinitions = #default-script-alist
614 pedalSustainStrings = #'("Ped." "*Ped." "*")
615 pedalSustainStyle = #'text
616 pedalUnaCordaStrings = #'("una corda" "" "tre corde")
617 pedalUnaCordaStyle = #'text
619 %% These are in ordinary italic font, including the *,
620 %% but they are unlikely to be used,
621 %% as the default pedal-style for SostenutoPedal is 'mixed':
622 %% i.e. Sost. Ped_____________________
623 pedalSostenutoStrings = #'("Sost. Ped." "*Sost. Ped." "*")
624 pedalSostenutoStyle = #'mixed
626 harmonicAccidentals = ##t
627 fingeringOrientations = #'(up down)
628 stringNumberOrientations = #'(up down)
629 strokeFingerOrientations = #'(right)
631 lyricMelismaAlignment = #LEFT
632 markFormatter = #format-mark-letters
636 autoAccidentals = #`(Staff ,(make-accidental-rule 'same-octave 0))
637 autoCautionaries = #'()
639 printKeyCancellation = ##t
640 keyAlterationOrder = #`(
641 (6 . ,FLAT) (2 . ,FLAT) (5 . ,FLAT ) (1 . ,FLAT) (4 . ,FLAT) (0 . ,FLAT) (3 . ,FLAT)
642 (3 . ,SHARP) (0 . ,SHARP) (4 . ,SHARP) (1 . ,SHARP) (5 . ,SHARP) (2 . ,SHARP) (6 . ,SHARP)
643 (6 . ,DOUBLE-FLAT) (2 . ,DOUBLE-FLAT) (5 . ,DOUBLE-FLAT ) (1 . ,DOUBLE-FLAT) (4 . ,DOUBLE-FLAT) (0 . ,DOUBLE-FLAT) (3 . ,DOUBLE-FLAT)
644 (3 . ,DOUBLE-SHARP) (0 . ,DOUBLE-SHARP) (4 . ,DOUBLE-SHARP) (1 . ,DOUBLE-SHARP) (5 . ,DOUBLE-SHARP) (2 . ,DOUBLE-SHARP) (6 . ,DOUBLE-SHARP)
647 barCheckSynchronize = ##f
650 chordNameFunction = #ignatzek-chord-names
651 minorChordModifier = #(make-simple-markup "m")
652 additionalPitchPrefix = #"" % was "add"
653 majorSevenSymbol = #whiteTriangleMarkup
654 chordNameLowercaseMinor = ##f
655 chordNameSeparator = #(make-hspace-markup 0.5)
656 slashChordSeparator = #(make-simple-markup "/")
657 chordNameExceptions = #ignatzekExceptions
658 chordNoteNamer = #'()
659 chordRootNamer = #note-name->markup
660 chordPrefixSpacer = #0
661 chordNameExceptionsFull = #fullJazzExceptions
662 chordNameExceptionsPartial = #partialJazzExceptions
663 noChordSymbol = #(make-simple-markup "N.C.")
665 bassStaffProperties = #'((assign clefGlyph "clefs.F")
666 (assign clefPosition 2)
667 (assign middleCPosition 6)
668 (assign middleCClefPosition 6))
670 stringOneTopmost = ##t
673 %% One may change the string tunings as follows :
674 %% The length of the list must be equal to the number of strings
675 stringTunings = #guitar-tuning
676 tablatureFormat = #fret-number-tablature-format
677 tabStaffLineLayoutFunction = #tablature-position-on-lines
680 figuredBassFormatter = #format-bass-figure
681 metronomeMarkFormatter = #format-metronome-markup
684 %% See also make-voice-props-set
686 (Voice Stem direction ,UP)
687 (Voice Stem font-size -3)
688 (Voice Flag font-size -3)
689 (Voice NoteHead font-size -3)
690 (Voice TabNoteHead font-size -4)
691 (Voice Dots font-size -3)
692 (Voice Stem length-fraction 0.8)
693 (Voice Stem no-stem-extend #t)
694 (Voice Beam beam-thickness 0.384)
695 (Voice Beam length-fraction 0.8)
696 (Voice Accidental font-size -4)
697 (Voice AccidentalCautionary font-size -4)
698 (Voice Slur direction ,DOWN)
699 (Voice Script font-size -3)
700 (Voice Fingering font-size -8)
701 (Voice StringNumber font-size -8)
704 keepAliveInterfaces = #'(
705 bass-figure-interface
707 cluster-beacon-interface
708 fret-diagram-interface
709 lyric-syllable-interface
711 tab-note-head-interface
713 percent-repeat-item-interface
714 percent-repeat-interface
716 ;; need this, as stanza numbers are items, and appear only once.
717 stanza-number-interface
719 % \quoteDuring is supposed to quote everything, cueDuring only the essentials
720 quotedEventTypes = #'(StreamEvent)
721 quotedCueEventTypes = #'(
727 instrumentTransposition = #(ly:make-pitch 0 0 0)
729 topLevelAlignment = ##t
738 \type "Engraver_group"
740 \description "A context for printing a figured bass line."
742 \consists "Figured_bass_engraver"
743 \consists "Separating_line_group_engraver"
744 \consists "Hara_kiri_engraver"
746 \override VerticalAxisGroup #'remove-empty = ##t
747 \override VerticalAxisGroup #'remove-first = ##t
748 \override VerticalAxisGroup #'staff-affinity = #UP
749 \override VerticalAxisGroup #'nonstaff-relatedstaff-spacing #'padding = #0.5
750 \override VerticalAxisGroup #'nonstaff-nonstaff-spacing #'padding = #0.5
755 \type "Engraver_group"
757 %% don't want to route anything out of here:
760 \description "Silently discards all musical information given to this
768 \consists "Tab_note_heads_engraver"
769 \consists "Tab_tie_follow_engraver"
771 \remove "Note_heads_engraver"
772 \remove "Fingering_engraver"
773 \remove "New_fingering_engraver"
775 \description "Context for drawing notes in a Tab staff."
777 %% TabStaff increase the staff-space, which in turn
778 %% increases beam thickness and spacing; beams are
779 %% too big. We have to adjust the beam settings:
780 \override Beam #'beam-thickness = #0.32
781 \override Beam #'length-fraction = #0.62
782 %% the same goes for tremolo beams
783 \override StemTremolo #'beam-thickness = #0.32
784 %% NOTE: in lily/stem-tremolo.cc, we have length-fraction = 1,
785 %% and the tablature staff space is scaled (1.5 by default),
786 %% so we use the inversion of the scale factor:
787 \override StemTremolo #'length-fraction = #(lambda (grob)
788 (/ 1 (ly:staff-symbol-staff-space grob)))
789 \override StemTremolo #'beam-width = #stem-tremolo::calc-tab-width
791 %% No accidental in tablature !
792 \remove "Accidental_engraver"
793 %% make the Stems as short as possible to minimize their influence
794 %% on the slur::calc-control-points routine
795 \override Stem #'no-stem-extend = ##t
796 \override Flag #'style = #'no-flag
797 \override Stem #'details = #'((lengths 0 0 0 0 0 0)
798 (beamed-lengths 0 0 0)
799 (beamed-minimum-free-lengths 0 0 0)
800 (beamed-extreme-minimum-free-lengths 0 0)
802 %% after all, the stubs of the stems may still be visible, so ...
803 \override Stem #'transparent = ##t
804 \override Flag #'transparent = ##t
805 %% automatic beams should be suppressed for similar reasons ...
807 %% remove beams, dots and rests ...
808 \override Beam #'stencil = ##f
809 \override StemTremolo #'stencil = ##f
810 \override Dots #'stencil = ##f
811 \override Rest #'stencil = ##f
812 \override MultiMeasureRest #'stencil = ##f
813 \override MultiMeasureRestNumber #'transparent = ##t
814 \override MultiMeasureRestText #'transparent = ##t
815 %% ... all kinds of ties/slurs
816 \override Tie #'stencil = ##f
817 \override RepeatTie #'stencil = ##f
818 \override LaissezVibrerTie #'stencil = ##f
819 \override Slur #'stencil = #slur::draw-tab-slur
820 \override PhrasingSlur #'stencil = ##f
821 %% 'tied to' fret numbers become invisible or parenthesized, respectively)
822 \override Tie #'after-line-breaking = #tie::handle-tab-note-head
823 \override RepeatTie #'after-line-breaking = #repeat-tie::handle-tab-note-head
824 %% ... and all kinds of markups, spanners etc.
825 \override TupletBracket #'stencil = ##f
826 \override TupletNumber #'stencil = ##f
827 \override DynamicText #'transparent = ##t
828 \override DynamicTextSpanner #'stencil = ##f
829 \override TextSpanner #'stencil = ##f
830 \override Hairpin #'transparent = ##t
831 \override Script #'stencil = ##f
832 \override TextScript #'stencil = ##f
833 \override Glissando #'stencil = #glissando::draw-tab-glissando
834 %% the direction for glissando lines will be automatically corrected
835 \override Glissando #'extra-dy = #glissando::calc-tab-extra-dy
836 \override Glissando #'bound-details #'right = #`((attach-dir . ,LEFT)
838 \override Glissando #'bound-details #'left = #`((attach-dir . ,RIGHT)
841 \override TabNoteHead #'glyph-name = #tab-note-head::calc-glyph-name
842 \override TabNoteHead #'stencil = #tab-note-head::whiteout-if-style-set
850 \consists "Tab_staff_symbol_engraver"
852 \description "Context for generating tablature. It accepts only @code{TabVoice}
853 contexts and handles the line spacing, the tablature clef etc. properly."
856 \defaultchild "TabVoice"
858 %% 6 strings, bigger spacing
859 \override StaffSymbol #'staff-space = #1.5
861 %% Don't draw stems over the tablature figures !
862 \override Stem #'avoid-note-head = ##t
864 %% No accidental in tablature !
865 \remove "Accidental_engraver"
866 \remove "Key_engraver"
868 \remove "Ottava_spanner_engraver"
870 \override Clef #'stencil = #clef::print-modern-tab-if-set
872 \override TimeSignature #'stencil = ##f
874 \override Arpeggio #'stencil = ##f
875 %% we ignore collision warnings that may occur due to
876 %% stem overlapping, because we have no stems ;-)
877 \override NoteColumn #'ignore-collision = ##t
878 %% Special "TAB" clef
879 clefGlyph = #"clefs.tab"
881 %% Change string if note results in negative fret number
882 handleNegativeFrets = #'recalculate
887 \name "VaticanaVoice"
889 \description "Same as @code{Voice} context, except that it is
890 accommodated for typesetting Gregorian Chant in the notational style
893 \remove "Slur_engraver"
894 \remove "Stem_engraver"
895 \remove "Ligature_bracket_engraver"
896 \consists "Vaticana_ligature_engraver"
897 \remove "Text_spanner_engraver"
898 \consists "Episema_engraver"
900 %% Set default head for notes outside of \[ \].
901 \override NoteHead #'style = #'vaticana.punctum
903 %% Put some space before and after divisiones.
904 %% FIXME: This does not seem to show any effect.
905 \override Script #'padding = #0.5
907 %% There are no beams in Gregorian Chant notation.
913 \name "VaticanaStaff"
916 \accepts "VaticanaVoice"
917 \defaultchild "VaticanaVoice"
919 \description "Same as @code{Staff} context, except that it is
920 accommodated for typesetting Gregorian Chant in the notational style
923 \remove "Time_signature_engraver"
924 \consists "Custos_engraver"
926 %% We can not remove Bar_engraver; otherwise clefs and custodes will
927 %% not show up any more among other line breaking issues.
928 %% Instead, we make the grob transparent.
929 \override BarLine #'transparent = ##t
931 \override StaffSymbol #'line-count = #4
932 \override StaffSymbol #'thickness = #0.6
934 %% FIXME: unit on StaffSymbol's width should be \linewidth.
935 %% \override StaffSymbol #'width = #60.0
937 %% Choose vaticana do clef on 3rd line as default.
938 clefGlyph = #"clefs.vaticana.do"
940 middleCClefPosition = #1
944 %% Select vaticana style font.
945 \override KeySignature #'glyph-name-alist = #alteration-vaticana-glyph-name-alist
946 \override Accidental #'glyph-name-alist = #alteration-vaticana-glyph-name-alist
947 \override Custos #'style = #'vaticana
948 \override Custos #'neutral-position = #3
949 \override Custos #'neutral-direction = #DOWN
950 \override Dots #'style = #'vaticana
955 \name "GregorianTranscriptionVoice"
957 \consists "Episema_engraver"
959 %% Removing ligature bracket engraver without replacing it by some
960 %% other ligature engraver would cause a "Junking event: `LigatureEvent'"
961 %% warning for every "\[" and "\]". Therefore, we make the grob
962 %% transparent instead.
963 \override LigatureBracket #'transparent = ##t
965 %% Put some space before and after divisiones.
966 %% FIXME: This does not seem to show any effect.
967 \override Script #'padding = #0.5
969 %% There are no beams in Gregorian Chant notation.
976 \name "GregorianTranscriptionStaff"
979 \accepts "GregorianTranscriptionVoice"
980 \defaultchild "GregorianTranscriptionVoice"
982 %% We can not remove Bar_engraver; otherwise clefs and custodes will
983 %% not show up any more among other line breaking issues.
984 %% Instead, we make the grob transparent.
985 \override BarLine #'transparent = ##t
990 \name "MensuralVoice"
992 \description "Same as @code{Voice} context, except that it is
993 accommodated for typesetting a piece in mensural style."
995 \remove "Slur_engraver"
996 \remove "Ligature_bracket_engraver"
997 \consists "Mensural_ligature_engraver"
999 %% Set default head for notes outside of \[ \].
1000 \override NoteHead #'style = #'mensural
1001 \override Rest #'style = #'mensural
1002 \override Flag #'style = #'mensural
1004 %% There are no beams in mensural notation.
1010 \name "MensuralStaff"
1013 \defaultchild "MensuralVoice"
1014 \accepts "MensuralVoice"
1015 \description "Same as @code{Staff} context, except that it is
1016 accommodated for typesetting a piece in mensural style."
1018 \consists "Custos_engraver"
1020 %% We can not remove Bar_engraver; otherwise clefs and custodes will
1021 %% not show up any more among other line breaking issues.
1022 %% Instead, we make the grob transparent.
1023 \override BarLine #'transparent = ##t
1025 \override StaffSymbol #'thickness = #0.6
1027 %% FIXME: unit on StaffSymbol's width should be \linewidth.
1028 %% \override StaffSymbol #'width = #60.0
1030 %% Choose mensural g clef on 2nd line as default.
1031 clefGlyph = #"clefs.mensural.g"
1032 middleCClefPosition = #-6
1033 middleCPosition = #-6
1037 %% Select mensural style font.
1038 \override TimeSignature #'style = #'mensural
1039 \override KeySignature #'glyph-name-alist = #alteration-mensural-glyph-name-alist
1040 \override Accidental #'glyph-name-alist = #alteration-mensural-glyph-name-alist
1041 \override Custos #'style = #'mensural
1042 \override Custos #'neutral-position = #3
1043 \override Custos #'neutral-direction = #DOWN
1045 %% Accidentals are valid only once (same as
1046 %% \accidentalStyle "forget")
1048 autoAccidentals = #`(Staff ,(make-accidental-rule 'same-octave -1))
1049 autoCautionaries = #'()
1050 printKeyCancellation = ##f
1055 \name "PetrucciVoice"
1057 \description "Same as @code{Voice} context, except that it is
1058 accommodated for typesetting a piece in Petrucci style."
1060 \remove "Ligature_bracket_engraver"
1061 \consists "Mensural_ligature_engraver"
1063 %% Set glyph styles.
1064 \override NoteHead #'style = #'petrucci
1065 \override Rest #'style = #'mensural
1067 % Thickens and shortens stems.
1068 \override Stem #'thickness = #1.7
1069 \override Stem #'length = #5
1071 %% There are no beams in Petrucci notation.
1077 \name "PetrucciStaff"
1080 \defaultchild "PetrucciVoice"
1081 \accepts "PetrucciVoice"
1082 \description "Same as @code{Staff} context, except that it is
1083 accommodated for typesetting a piece in Petrucci style."
1085 \consists "Custos_engraver"
1087 \override StaffSymbol #'thickness = #1.3
1089 %% Choose Petrucci g clef on 2nd line as default.
1090 clefGlyph = #"clefs.petrucci.g"
1091 middleCClefPosition = #-6
1092 middleCPosition = #-6
1096 \override Custos #'style = #'mensural
1097 \override Custos #'neutral-position = #3
1098 \override Custos #'neutral-direction = #DOWN
1100 %% Accidentals are valid only once (if the following note is different)
1102 autoAccidentals = #`(Staff ,(make-accidental-rule 'same-octave 0)
1103 ,neo-modern-accidental-rule)
1104 autoCautionaries = #'()
1105 printKeyCancellation = ##f
1108 %% Keep the old definitions in here for compatibility (they erase previous
1109 %% settings to the corresponding context!).
1110 %% For new scores, one should simply insert the \RemoveEmptyStaves settings
1111 %% into the desired context. That's just as easy, requires only one line more
1112 %% (the \*Staff), but preserves previous context mods.
1113 %% TODO: DEPRECATED_2.13.17, remove at some point in the future
1114 RemoveEmptyStaffContext = \context {
1119 AncientRemoveEmptyStaffContext = \context {
1124 RemoveEmptyDrumStaffContext = \context {
1129 RemoveEmptyRhythmicStaffContext = \context {
1134 RemoveEmptyTabStaffContext = \context {