]> git.donarmstrong.com Git - lilypond.git/blob - ly/engraver-init.ly
* VERSION (PATCH_LEVEL): bump version.
[lilypond.git] / ly / engraver-init.ly
1 \version "2.7.39"
2
3 \context {
4   \name "Global"
5
6   \accepts "Score"
7
8   \defaultchild "Score"
9   \description "Hard coded entry point for LilyPond. Cannot be tuned."
10   \grobdescriptions #all-grob-descriptions
11 }
12
13 \context {
14   \type "Engraver_group"
15   \name "Staff"
16   
17   \consists "Output_property_engraver"  
18   \consists "Bar_engraver"
19   %% Bar_engraver must be first so default bars aren't overwritten
20   %% with empty ones.
21   
22   \consists "Font_size_engraver"
23   \consists "Volta_engraver"
24   \consists "Separating_line_group_engraver"    
25   \consists "Dot_column_engraver"
26
27   %% perhaps move to Voice context?
28   \consists "Ottava_spanner_engraver"
29   \consists "Clef_engraver"
30   \consists "Key_engraver"
31   \consists "Time_signature_engraver"
32   \consists "Ledger_line_engraver" 
33   \consists "Staff_symbol_engraver"
34   \consists "Collision_engraver"
35   \consists "Rest_collision_engraver"
36   \consists "Accidental_engraver"
37   \consists "Piano_pedal_engraver"
38   \consists "Instrument_name_engraver"
39   \consists "String_number_engraver"
40   \consists "Axis_group_engraver"
41   \consists "Figured_bass_engraver"
42   \consists "Figured_bass_position_engraver"
43
44   \override VerticalAxisGroup #'minimum-Y-extent = #'(-4 . 4)
45   extraVerticalExtent = ##f
46   verticalExtent = ##f 
47   localKeySignature = #'()
48   createSpacing = ##t
49   
50   %% explicitly set instrument, so we don't get 
51   %% weird effects when doing instrument names for
52   %% piano staves
53
54   instrument = #'()
55   instr = #'()
56   
57   \defaultchild "Voice"
58   \accepts "Voice"
59   \accepts "CueVoice"
60   
61   \description "Handles clefs, bar lines, keys, accidentals.  It can contain
62 @code{Voice} contexts."
63
64 }
65
66 \context {
67   \Staff
68   \type "Engraver_group"
69   \name "DrumStaff"
70   \alias "Staff"
71   
72   \remove "Accidental_engraver"
73   \remove "Ottava_spanner_engraver"
74   \remove "Key_engraver" 
75   \remove "Piano_pedal_engraver"
76   \remove "String_number_engraver"
77   
78   \description "Handles typesetting for percussion."
79
80   \denies "Voice"
81   \accepts "DrumVoice"
82   \defaultchild "DrumVoice"
83
84   clefGlyph = #"clefs.percussion"
85   clefPosition = #0
86   \override Script #'staff-padding = #0.75 
87 }
88
89
90 \context {
91   \type "Engraver_group"
92   \name "InnerChoirStaff"
93   \consists "System_start_delimiter_engraver"
94   systemStartDelimiter = #'SystemStartBracket
95   vocalName = #'()
96   vocNam = #'()
97
98   \accepts "Staff"
99   \accepts "DrumStaff"
100   \accepts "RhythmicStaff"
101   \accepts "GrandStaff"
102   \accepts "PianoStaff"
103   \accepts "Lyrics"
104   \accepts "ChordNames"
105   \defaultchild "Staff"
106 }
107
108 \context {
109   \InnerChoirStaff
110   \name ChoirStaff
111   
112   \defaultchild "Staff"
113   \accepts "InnerChoirStaff"
114   \accepts "InnerStaffGroup"
115   \description "Identical to @code{StaffGroup} except that the
116 contained staves are not connected vertically."
117
118 }
119
120 \context{
121   \type "Engraver_group"
122   
123   \override VerticalAxisGroup #'minimum-Y-extent = ##f
124   extraVerticalExtent = ##f
125   verticalExtent = ##f 
126   localKeySignature = #'()
127   createSpacing = ##t
128
129   squashedPosition = #0
130   \name RhythmicStaff
131   \alias "Staff"
132   
133   \override BarLine #'bar-size = #4
134   \override VoltaBracket #'staff-padding = #3
135   \override StaffSymbol #'line-count = #1       
136
137   \override Stem  #'neutral-direction = #UP
138   \override Beam  #'neutral-direction = #UP
139   
140   \consists "Output_property_engraver"
141   \consists "Font_size_engraver"
142   \consists "Volta_engraver"
143   \consists "Separating_line_group_engraver"    
144   \consists "Dot_column_engraver"
145   \consists "Bar_engraver"
146   \consists "Staff_symbol_engraver"
147   \consists "Pitch_squash_engraver"
148   \consists "Time_signature_engraver"
149   \consists "Instrument_name_engraver"
150   \consists "Axis_group_engraver"
151   \consists "Ledger_line_engraver" 
152   
153   \accepts "Voice"
154   \accepts "CueVoice"
155   \defaultchild "Voice"
156
157   \description  "
158     A context like @code{Staff} but for printing rhythms.  Pitches are
159     ignored; the notes are printed on one line.  
160 "
161 }
162
163
164 \context {
165   \type "Engraver_group"
166   \name "Voice"
167
168   \description "
169     Corresponds to a voice on a staff.  This context handles the
170     conversion of dynamic signs, stems, beams, super- and subscripts,
171     slurs, ties, and rests.
172
173     You have to instantiate this explicitly if you want to have
174     multiple voices on the same staff."
175
176   localKeySignature = #'()
177   \consists "Font_size_engraver"
178
179   \consists "Pitched_trill_engraver"
180   \consists "Output_property_engraver"  
181   \consists "Arpeggio_engraver"
182   \consists "Multi_measure_rest_engraver"
183   \consists "Text_spanner_engraver"
184   \consists "Trill_spanner_engraver"
185   \consists "Grob_pq_engraver"
186   \consists "Forbid_line_break_engraver"
187   \consists "Laissez_vibrer_engraver"
188   \consists "Repeat_tie_engraver"
189   \consists "Note_head_line_engraver"
190   \consists "Glissando_engraver"
191   \consists "Ligature_bracket_engraver"
192   \consists "Breathing_sign_engraver"
193   \consists "Note_heads_engraver"
194   \consists "Rest_engraver"
195
196   %% switch on to make stem directions interpolate for the
197   %% center line.
198   %  \consists "Melody_engraver"
199
200   \consists "Stem_engraver"
201   \consists "Beam_engraver"
202   \consists "Grace_beam_engraver"
203   \consists "Auto_beam_engraver"
204   \consists "New_fingering_engraver"
205   \consists "Chord_tremolo_engraver"
206   \consists "Percent_repeat_engraver"
207   \consists "Slash_repeat_engraver"
208   \consists "Melisma_translator"
209   \consists "Part_combine_engraver"
210
211   \consists "Text_engraver"
212   \consists "Dynamic_engraver"
213   \consists "Fingering_engraver"
214
215   \consists "Script_engraver"
216   \consists "Script_column_engraver"
217   \consists "Rhythmic_column_engraver"
218   \consists "Phrasing_slur_engraver"
219   \consists "Cluster_spanner_engraver"
220   \consists "Slur_engraver"
221   \consists "Tie_engraver"
222   \consists "Tuplet_engraver"
223   \consists "Grace_engraver"
224
225   \consists "Skip_event_swallow_translator"
226 }
227
228 \context{
229   \Voice
230   
231   \name CueVoice
232   \alias Voice
233   fontSize = #-4
234   \override Stem #'length-fraction = #(magstep -4)
235   \override Beam #'length-fraction = #(magstep -4)
236 }
237
238 \context {
239   \Voice
240   \name DrumVoice
241   \alias Voice
242
243   \description "A voice on a percussion staff."
244   \remove "Arpeggio_engraver"
245   \consists "Multi_measure_rest_engraver"
246   \consists "Text_spanner_engraver"
247   \consists "Grob_pq_engraver"
248
249   \remove "Note_head_line_engraver"
250   \remove "Glissando_engraver"
251   \remove "Ligature_bracket_engraver"
252   \remove "Note_heads_engraver"
253   \consists "Drum_notes_engraver"
254   \remove "New_fingering_engraver"
255
256   \remove "Fingering_engraver"
257
258   \remove "Cluster_spanner_engraver"
259   \consists "Tuplet_engraver"
260
261   \consists "Skip_event_swallow_translator"
262 }
263
264 \context{
265   \type "Engraver_group"
266   \name GrandStaff
267   localKeySignature = #'()
268   
269   \description " A group of staffs, with a brace on the left
270     side, grouping the staves together.  The bar lines of the
271     contained staves are connected vertically.  "
272
273   \consists "Span_bar_engraver"
274   \consists "Span_arpeggio_engraver"
275   \consists "System_start_delimiter_engraver"
276   systemStartDelimiter = #'SystemStartBrace
277
278   \accepts "Staff"
279 }
280
281 \context{
282   \GrandStaff
283   \name "PianoStaff"
284   \alias "GrandStaff"
285
286   \description
287   "Just like @code{GrandStaff} but with a forced distance between
288     the staves, so cross staff beaming and slurring can be used."
289   
290   \override VerticalAlignment #'forced-distance = #12
291   \override VerticalAlignment #'self-alignment-Y = #0
292
293   \consists "Vertical_align_engraver"
294   \consists "Instrument_name_engraver"
295   
296   instrument = #'()
297   instr = #'()
298 }
299
300 \context {
301   \type "Engraver_group"
302   \name InnerStaffGroup
303
304   \consists "Span_bar_engraver"
305   \consists "Span_arpeggio_engraver"
306   \consists "Output_property_engraver"  
307   systemStartDelimiter = #'SystemStartBracket
308
309   \consists "System_start_delimiter_engraver"
310
311   \defaultchild "Staff"
312   \accepts "Staff"
313   \accepts "RhythmicStaff"
314   \accepts "DrumStaff"
315   \accepts "GrandStaff"
316   \accepts "PianoStaff"
317   \accepts "TabStaff"   
318   \accepts "Lyrics"
319   \accepts "ChordNames"
320 }
321
322 \context {
323   \InnerStaffGroup
324   \name StaffGroup
325   
326   \description
327
328   "Groups staffs while adding a bracket on the left side, grouping
329 the staves together.  The bar lines of the contained staves are
330 connected vertically.  StaffGroup only consists of a collection of
331 staffs, with a bracket in front and spanning bar lines. "
332   
333   \accepts "InnerChoirStaff"
334   \accepts "ChoirStaff"
335   \accepts "InnerStaffGroup"
336   \accepts "FiguredBass"
337 }
338
339
340 \context{
341   \type "Engraver_group"
342   \override VerticalAxisGroup #'minimum-Y-extent = #'(-1.2 . 2.4)
343   extraVerticalExtent = ##f
344   verticalExtent = ##f
345
346   \description " Corresponds to a voice with lyrics.  Handles the
347 printing of a single line of lyrics.  "
348   
349   \name Lyrics 
350   \consists "Lyric_engraver"
351   \consists "Extender_engraver"
352   \consists "Hyphen_engraver"
353   \consists "Stanza_number_engraver"
354   \consists "Instrument_name_engraver"
355   \consists "Skip_event_swallow_translator"
356   \consists "Font_size_engraver"
357   \consists "Hara_kiri_engraver"
358   \override VerticalAxisGroup #'remove-first = ##t
359   \override VerticalAxisGroup #'remove-empty = ##t
360   \override SeparationItem #'padding = #0.2
361   \override InstrumentName #'self-alignment-Y = ##f
362
363   %% sync with define-grobs.scm ;
364   \override InstrumentName #'font-size = #1.0
365
366   %% make sure that barlines aren't collapsed, when
367   %% Bar_engraver is there.
368   \override BarLine #'bar-size = #0.1 
369   
370 }
371
372 \context {
373   \type "Engraver_group"
374   \name NoteNames
375   \consists "Axis_group_engraver"
376
377   \override VerticalAxisGroup #'minimum-Y-extent = ##f
378   extraVerticalExtent = ##f
379   verticalExtent = ##f 
380
381   
382   \consists "Rest_swallow_translator" 
383   \consists "Skip_event_swallow_translator"
384   \consists "Tie_engraver"
385   \consists "Note_name_engraver"
386   \consists "Separating_line_group_engraver"
387 }
388
389 \context {
390   \type "Engraver_group"
391   \name ChordNames
392   \description "Typesets chord names."
393
394   \consists "Volta_engraver"
395   
396   \consists "Rest_swallow_translator" 
397   \consists "Output_property_engraver"  
398   \consists "Separating_line_group_engraver"
399   \consists "Chord_name_engraver"
400   \consists "Skip_event_swallow_translator"
401   \consists "Hara_kiri_engraver"
402   
403   voltaOnThisStaff = ##f
404   \override VerticalAxisGroup #'minimum-Y-extent = #'(0 . 2.5)
405   extraVerticalExtent = ##f
406   \override SeparatingGroupSpanner #'padding = #0.8
407   \override VerticalAxisGroup #'remove-first = ##t
408   \override VerticalAxisGroup #'remove-empty = ##t
409   verticalExtent = ##f 
410 }
411
412
413 RemoveEmptyStaffContext= \context {
414   \Staff
415   \remove "Axis_group_engraver"
416   \consists "Hara_kiri_engraver"
417   \override Beam #'auto-knee-gap = #'()
418   \override VerticalAxisGroup #'remove-empty = ##t
419 }
420
421 AncientRemoveEmptyStaffContext = \context {
422 %% why not add by default?
423   
424   \RemoveEmptyStaffContext
425   \accepts "VaticanaVoice"
426   \accepts "GregorianTranscriptionVoice"
427   \accepts "MensuralVoice"
428 }
429
430 \context {
431   \type "Score_engraver"
432   \name "Score"
433   
434   \description "This is the top level notation context.  No
435     other context can contain a @code{Score} context.  This context
436     handles the administration of time signatures.  It also makes sure
437     that items such as clefs, time signatures, and key-signatures are
438     aligned across staves.
439
440     You cannot explicitly instantiate a Score context (since it is
441     not contained in any other context).  It is instantiated
442     automatically when an output definition (a @code{\score} or
443     @code{\layout} block) is processed."
444
445
446   \consists "Paper_column_engraver"
447   \consists "Vertically_spaced_contexts_engraver"
448   \consists "Repeat_acknowledge_engraver"
449   \consists "Staff_collecting_engraver"
450
451   %% move the alias along with the engraver.
452
453   \consists "Timing_translator"
454   \consists "Default_bar_line_engraver"
455   \consists "Output_property_engraver"
456   \consists "System_start_delimiter_engraver"
457   \consists "Mark_engraver"     
458   \consists "Metronome_mark_engraver"   
459   \consists "Break_align_engraver"
460   \consists "Spacing_engraver"
461   \consists "Vertical_align_engraver"
462   \consists "Stanza_number_align_engraver"
463   \consists "Bar_number_engraver"
464   \consists "Tweak_engraver"
465   \consists "Parenthesis_engraver"
466   
467   \defaultchild "Staff"
468
469   \accepts "Staff"
470   \accepts "RhythmicStaff"
471   \accepts "TabStaff"
472   \accepts "VaticanaStaff"
473   \accepts "GregorianTranscriptionStaff"
474   \accepts "MensuralStaff"
475   \accepts "StaffGroup"
476   \accepts "DrumStaff"
477   \accepts "Lyrics"
478   \accepts "ChordNames"
479   \accepts "GrandStaff"
480   \accepts "ChoirStaff"
481   \accepts "PianoStaff"
482   \accepts "Devnull"
483   \accepts "NoteNames"
484   \accepts "FiguredBass"
485   
486   soloText = #"Solo"
487   soloIIText = #"Solo II"
488   aDueText = #"a2"
489   printPartCombineTexts = ##t
490   systemStartDelimiter =#'SystemStartBar
491
492   drumStyleTable = #drums-style
493   
494   melismaBusyProperties = #default-melisma-properties
495   tieWaitForNote = ##f
496   clefGlyph = #"clefs.G"
497   clefPosition = #-2
498   middleCPosition = #-6
499   firstClef = ##t
500   
501   defaultBarType = #"|"
502   barNumberVisibility = #first-bar-number-invisible
503   automaticBars = ##t
504   
505   explicitClefVisibility = #all-visible
506   explicitKeySignatureVisibility = #all-visible
507   autoBeamSettings = #default-auto-beam-settings
508   autoBeaming = ##t
509   autoBeamCheck = #default-auto-beam-check
510   scriptDefinitions = #default-script-alist
511
512   pedalSustainStrings = #'("Ped." "*Ped." "*")
513   pedalSustainStyle = #'text
514   pedalUnaCordaStrings = #'("una corda" "" "tre corde")
515   pedalUnaCordaStyle = #'text
516
517 %% These are in ordinary italic font, including the *,
518 %% but they are unlikely to be used, 
519 %% as the default pedal-style for SostenutoPedal is 'mixed':
520 %% i.e.  Sost. Ped_____________________ 
521   pedalSostenutoStrings = #'("Sost. Ped." "*Sost. Ped." "*") 
522   pedalSostenutoStyle = #'mixed
523
524   harmonicAccidentals = ##t 
525   fingeringOrientations = #'(up down)
526   stringNumberOrientations = #'(up down)
527   markFormatter = #format-mark-letters
528   rehearsalMark = #1
529   subdivideBeams = ##f
530   allowBeamBreak = ##f
531   extraNatural = ##t
532   autoAccidentals = #'(Staff (same-octave . 0))
533   autoCautionaries = #'()  
534
535   printKeyCancellation = ##t
536   keyAlterationOrder = #`(
537     (6 . ,FLAT) (2  . ,FLAT) (5 . ,FLAT ) (1  . ,FLAT) (4  . ,FLAT) (0  . ,FLAT) (3  . ,FLAT)
538     (3  . ,SHARP) (0 . ,SHARP) (4 . ,SHARP) (1 . ,SHARP) (5 . ,SHARP) (2 . ,SHARP) (6 . ,SHARP)
539     (6 . ,DOUBLE-FLAT) (2  . ,DOUBLE-FLAT) (5 . ,DOUBLE-FLAT ) (1  . ,DOUBLE-FLAT) (4  . ,DOUBLE-FLAT) (0  . ,DOUBLE-FLAT) (3 . ,DOUBLE-FLAT)
540     (3  . ,DOUBLE-SHARP) (0 . ,DOUBLE-SHARP) (4 . ,DOUBLE-SHARP) (2 . ,DOUBLE-SHARP) (5 . ,DOUBLE-SHARP) (2 . ,DOUBLE-SHARP) (6 . ,DOUBLE-SHARP)
541   )
542
543   barCheckSynchronize = ##f
544   
545 %% chord names:
546   chordNameFunction = #ignatzek-chord-names
547   majorSevenSymbol = #whiteTriangleMarkup
548   chordNameSeparator = #(make-simple-markup  "/")
549   chordNameExceptions = #ignatzekExceptions
550   chordNoteNamer = #'()
551   chordRootNamer = #note-name->markup
552   chordPrefixSpacer = #0
553   chordNameExceptionsFull = #fullJazzExceptions
554   chordNameExceptionsPartial = #partialJazzExceptions
555   
556
557   bassStaffProperties = #'((assign clefGlyph "clefs.F")
558   (assign clefPosition 2)
559   (assign middleCPosition 6))
560 %% tablature:
561   stringOneTopmost = ##t
562   highStringOne = ##t
563
564 %% One may change the strings tuning as following :
565 %% The lenght of the list must be equal to the number of string
566   stringTunings = #guitar-tuning
567   tablatureFormat = #fret-number-tablature-format
568
569 %%
570   figuredBassFormatter = #format-bass-figure
571   metronomeMarkFormatter = #format-metronome-markup
572   graceSettings = #`(
573     (Voice Stem direction ,UP)
574     (Voice Stem font-size -3)
575     (Voice NoteHead font-size -3)
576     (Voice Dots font-size -3)
577     (Voice Stem length-fraction 0.8)
578     (Voice Stem no-stem-extend #t)
579     (Voice Beam thickness 0.384)
580     (Voice Beam length-fraction 0.8)
581     (Voice Accidental font-size -4)
582     (Voice Slur direction ,DOWN)
583   )
584
585   keepAliveInterfaces = #'(rhythmic-grob-interface lyric-interface percent-repeat-interface)
586   quotedEventTypes = #'(note-event rest-event time-scaled-music tie-event beam-event)
587   instrumentTransposition = #(ly:make-pitch 0 0 0)
588
589   verticallySpacedContexts = #'(Staff)
590
591   hairpinToBarline = ##t 
592   
593   timing = ##t
594 }
595
596
597
598
599 \context {
600   \type "Engraver_group"
601   \name "FiguredBass"
602
603   \consists "Figured_bass_engraver"
604   \consists "Note_swallow_translator"
605   \consists "Skip_event_swallow_translator"
606   \consists "Separating_line_group_engraver"
607   \consists "Hara_kiri_engraver"
608
609   \override VerticalAxisGroup #'remove-empty = ##t
610   \override VerticalAxisGroup #'remove-first = ##t
611   \override VerticalAxisGroup #'minimum-Y-extent = #'(-0.5 . 2.5)
612 }
613
614 \context {
615   \name "Devnull"
616   \type "Engraver_group"
617
618 %% don't want to route anything out of here: 
619   \alias "Staff"
620   \alias "Voice"
621   \consists "Swallow_engraver"
622   \description "Silently discards all musical information given to this context. "
623 }
624
625 \context {
626   \Voice
627   \name "TabVoice"
628   \alias "Voice"
629   \consists "Tab_note_heads_engraver"
630   \remove "Note_heads_engraver"
631   \remove "Fingering_engraver"
632   \remove "New_fingering_engraver"
633
634   \description "Context for drawing notes in a Tab staff. "
635
636   %% TabStaff increase the staff-space, which in turn
637   %% increases beam thickness and spacing; beams are
638   %% too big. We have to adjust the beam settings:
639   \override Beam #'thickness = #0.32
640   \override Beam #'length-fraction = #0.62
641
642   %% No accidental in tablature !
643   \remove Accidental_engraver
644 }
645
646 \context {
647   \Staff
648   \alias "Staff"
649   \name "TabStaff"
650   \denies "Voice"
651   \consists "Tab_staff_symbol_engraver"
652   
653   \description "Context for generating tablature. [DOCME]"
654
655   \accepts "TabVoice"
656   \defaultchild "TabVoice"
657   
658   %% 6 strings
659   \override StaffSymbol #'staff-space = #1.5
660
661   %% Don't draw stems over the tablature figures !
662   \override Stem #'avoid-note-head = ##t
663   
664   %% No accidental in tablature !
665   \remove "Accidental_engraver"
666   \remove "Key_engraver"
667   \remove "String_number_engraver"
668   %% Special "TAB" clef
669   clefGlyph = #"clefs.tab"
670   clefPosition = #0
671 }
672
673 %% TODO: Gregorian Chant contexts should be moved to gregorian-init.ly,
674 %% but this does not work (is this a bug or intended behaviour?):
675 %%
676 %% If I try to do so, I get "error: unknown escaped string:
677 %% `\VaticanaStaff'" in params-init.ly.  If I also move
678 %% "\context { \Vaticana*Context }" from params-init.ly to the end
679 %% of gregorian-init.ly, then I get "error: parse error, unexpected
680 %% TRANSLATOR: \context { \VaticanaStaff }" in
681 %% gregorian-init.ly. --jr
682
683 \context {
684   \Voice
685   \name "VaticanaVoice"
686   \alias "Voice"
687   \description "Same as @code{Voice} context, except that it is accommodated for tyepsetting Gregorian Chant in the notational style of Editio Vaticana."
688
689   \remove "Slur_engraver"
690   \remove "Stem_engraver"
691   \remove "Ligature_bracket_engraver"
692   \consists "Vaticana_ligature_engraver"
693
694   %% Set default head for notes outside of \[ \].
695   \override NoteHead #'style = #'vaticana.punctum
696
697   %% Put some space before and after divisiones.
698   %% FIXME: This does not seem to show any effect.
699   \override Script #'padding = #0.5
700
701   %% There are no beams in Gregorian Chant notation.
702   autoBeaming = ##f
703
704   %% Prepare TextSpanner for \episem{Initium|Finis} use.
705   %%
706   %% N.B.: dash-fraction MUST be unset; otherwise, TextSpanner will
707   %% always produce dashed lines, regardless of the style property.
708   %%
709   %% FIXME: The line @code{\override TextSpanner #'padding = #-0.1} is
710   %% required to force the articulation signs being placed vertically
711   %% tightly to the correpsonding note heads.
712   %%
713   \override TextSpanner #'dash-fraction = #'()
714   \override TextSpanner #'style = #'line
715   \override TextSpanner #'edge-height = #'(0 . 0)
716   \override TextSpanner #'padding = #-0.1
717   \override TextSpanner #'enclose-bounds = #1
718   \override TextSpanner #'edge-text = #'("" . "")
719 }
720
721 %% FIXME: need something like
722 %%  \remove "Bar_number_engraver" (which lives on score level)
723 %% for vaticana and gregorian transcription staves
724
725 \context {
726   \Staff
727   \name "VaticanaStaff"
728   \alias "Staff"
729   \denies "Voice"
730   \accepts "VaticanaVoice"
731   \defaultchild "VaticanaVoice"
732
733   \description "Same as @code{Staff} context, except that it is accommodated for tyepsetting Gregorian Chant in the notational style of Editio Vaticana."
734
735   \remove "Time_signature_engraver"
736   \consists "Custos_engraver"
737
738   %% We can not remove Bar_engraver; otherwise clefs and custodes will
739   %% not show up any more among other line breaking issues.
740   %% Instead, we make the grob transparent.
741   \override BarLine #'transparent = ##t
742
743   \override StaffSymbol #'line-count = #4
744   \override StaffSymbol #'thickness = #0.6
745
746   %% FIXME: unit on StaffSymbol's width should be \linewidth.
747   %% \override StaffSymbol #'width = #60.0
748
749   %% Choose vaticana do clef on 3rd line as default.
750   clefGlyph = #"clefs.vaticana.do"
751   middleCPosition = #1
752   clefPosition = #1
753   clefOctavation = #0
754
755   %% Select vaticana style font.
756   \override KeySignature #'style = #'vaticana
757   \override Accidental #'style = #'vaticana
758   \override Custos #'style = #'vaticana
759   \override Custos #'neutral-position = #3
760   \override Custos #'neutral-direction = #DOWN
761 }
762
763 \context {
764   \Voice
765   \name "GregorianTranscriptionVoice"
766   \alias "Voice"
767
768   %% Removing ligature bracket engraver without replacing it by some
769   %% other ligature engraver would cause a "Junking event: `LigatureEvent'"
770   %% warning for every "\[" and "\]".  Therefore, we make the grob
771   %% transparent instead.
772   \override LigatureBracket #'transparent = ##t
773
774   %% Put some space before and after divisiones.
775   %% FIXME: This does not seem to show any effect.
776   \override Script #'padding = #0.5
777
778   %% There are no beams in Gregorian Chant notation.
779   autoBeaming = ##f
780
781   %% Prepare TextSpanner for \episem{Initium|Finis} use.
782   %%
783   %% N.B.: dash-fraction MUST be unset; otherwise, TextSpanner will
784   %% always produce dashed lines, regardless of the style property.
785   %%
786   %% FIXME: The line @code{\override TextSpanner #'padding = #-0.1} is
787   %% required to force the articulation signs being placed vertically
788   %% tightly to the correpsonding note heads.
789   %%
790   \override TextSpanner #'dash-fraction = #'()
791   \override TextSpanner #'style = #'line
792   \override TextSpanner #'edge-height = #'(0 . 0)
793   \override TextSpanner #'padding = #-0.1
794   \override TextSpanner #'enclose-bounds = #1
795   \override TextSpanner #'edge-text = #'("" . "")
796 }
797
798 \context {
799   \Staff
800   \name "GregorianTranscriptionStaff"
801   \alias "Staff"
802   \denies "Voice"
803   \accepts "GregorianTranscriptionVoice"
804   \defaultchild "GregorianTranscriptionVoice"
805
806   %% We can not remove Bar_engraver; otherwise clefs and custodes will
807   %% not show up any more among other line breaking issues.
808   %% Instead, we make the grob transparent.
809   \override BarLine #'transparent = ##t
810 }
811
812 \context {
813   \Voice
814   \name "MensuralVoice"
815   \alias "Voice"
816   \description "Same as @code{Voice} context, except that it is accommodated for tyepsetting a piece in mensural style."
817
818   \remove "Slur_engraver"
819   \remove "Ligature_bracket_engraver"
820   \consists "Mensural_ligature_engraver"
821
822   %% Set default head for notes outside of \[ \].
823   \override NoteHead #'style = #'petrucci
824
825   %% There are no beams in mensural notation.
826   autoBeaming = ##f
827 }
828
829 \context {
830   \Staff
831   \name "MensuralStaff"
832   \alias "Staff"
833   \denies "Voice"
834   \defaultchild "MensuralVoice"
835   \accepts "MensuralVoice"
836   \description "Same as @code{Staff} context, except that it is accommodated for tyepsetting a piece in mensural style."
837
838   \consists "Custos_engraver"
839
840   %% We can not remove Bar_engraver; otherwise clefs and custodes will
841   %% not show up any more among other line breaking issues.
842   %% Instead, we make the grob transparent.
843   \override BarLine #'transparent = ##t
844
845   \override StaffSymbol #'thickness = #0.6
846
847   %% FIXME: unit on StaffSymbol's width should be \linewidth.
848   %% \override StaffSymbol #'width = #60.0
849
850   %% Choose petrucci g clef on 2nd line as default.
851   clefGlyph = #"clefs.petrucci.g"
852   middleCPosition = #-6
853   clefPosition = #-2
854   clefOctavation = #0
855
856   %% Select mensural style font.
857   \override TimeSignature #'style = #'mensural
858   \override KeySignature #'style = #'mensural
859   \override Accidental #'style = #'mensural
860   \override Custos #'style = #'mensural
861   \override Custos #'neutral-position = #3
862   \override Custos #'neutral-direction = #DOWN
863 }
864
865
866 RemoveEmptyRhythmicStaffContext= \context {
867   \RhythmicStaff
868   \remove "Axis_group_engraver"
869   \override VerticalAxisGroup #'remove-empty = ##t
870   \consists "Hara_kiri_engraver"
871 }