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