]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/user/ancient.itely
Fix makeinfo --html doc build.
[lilypond.git] / Documentation / user / ancient.itely
1 @c -*- coding: utf-8; mode: texinfo; -*-
2
3 @node Ancient notation
4 @section Ancient notation
5
6 @cindex Vaticana, Editio
7 @cindex Medicaea, Editio
8 @cindex hufnagel
9 @cindex Petrucci
10 @cindex mensural
11
12 Support for ancient notation includes features for mensural notation
13 and Gregorian Chant notation.  There is also limited support for
14 figured bass notation.
15
16 Many graphical objects provide a @code{style} property, see
17 @itemize @bullet
18 @item
19 @ref{Ancient note heads},
20 @item
21 @ref{Ancient accidentals},
22 @item
23 @ref{Ancient rests},
24 @item
25 @ref{Ancient clefs},
26 @item
27 @ref{Ancient flags},
28 @item
29 @ref{Ancient time signatures}.
30 @end itemize
31
32 By manipulating such a grob property, the typographical appearance of
33 the affected graphical objects can be accommodated for a specific
34 notation flavor without the need for introducing any new notational
35 concept.
36
37 In addition to the standard articulation signs described in section
38 @ref{Articulations}, specific articulation signs for ancient notation
39 are provided.
40
41 @itemize @bullet
42 @item
43 @ref{Ancient articulations}
44 @end itemize
45
46 Other aspects of ancient notation can not that easily be expressed
47 in terms of just changing a style property of a graphical object or
48 adding articulation signs.  Some notational concepts are introduced
49 specifically for ancient notation,
50
51 @itemize @bullet
52 @item
53 @ref{Custodes},
54 @item
55 @ref{Divisiones},
56 @item
57 @ref{Ligatures}.
58 @end itemize
59
60 If this all is too much of documentation for you, and you just want to
61 dive into typesetting without worrying too much about the details on
62 how to customize a context, you may have a look at the predefined
63 contexts.  Use them to set up predefined style-specific voice and
64 staff contexts, and directly go ahead with the note entry,
65
66 @itemize @bullet
67 @item
68 @ref{Gregorian Chant contexts},
69 @item
70 @ref{Mensural contexts}.
71 @end itemize
72
73 There is limited support for figured bass notation which came
74 up during the baroque period.
75
76 @itemize @bullet
77 @item
78 @ref{Figured bass}
79 @end itemize
80
81 Here are all subtopics at a glance:
82
83 @menu
84 * Ancient TODO::                
85 @end menu
86
87 @node Ancient TODO
88 @subsection Ancient TODO
89
90
91
92 @menu
93 * Ancient note heads::          
94 * Ancient accidentals::         
95 * Ancient rests::               
96 * Ancient clefs::               
97 * Ancient flags::               
98 * Ancient time signatures::     
99 * Ancient articulations::       
100 * Custodes::                    
101 * Divisiones::                  
102 * Ligatures::                   
103 * White mensural ligatures::    
104 * Gregorian square neumes ligatures::  
105 * Gregorian Chant contexts::    
106 * Mensural contexts::           
107 * Musica ficta accidentals::    
108 * Figured bass::                
109 @end menu
110
111 @node Ancient note heads
112 @unnumberedsubsubsec Ancient note heads
113
114 @cindex note heads, ancient
115
116 For ancient notation, a note head style other than the @code{default}
117 style may be chosen.  This is accomplished by setting the @code{style}
118 property of the @internalsref{NoteHead} object to @code{baroque},
119 @code{neomensural}, @code{mensural} or @code{petrucci}.  The
120 @code{baroque} style differs from the @code{default} style only in
121 using a square shape for @code{\breve} note heads.  The
122 @code{neomensural} style differs from the @code{baroque} style in that
123 it uses rhomboidal heads for whole notes and all smaller durations.
124 Stems are centered on the note heads.  This style is particularly
125 useful when transcribing mensural music, e.g., for the incipit.  The
126 @code{mensural} style produces note heads that mimic the look of note
127 heads in historic printings of the 16th century.  Finally, the
128 @code{petrucci} style also mimicks historic printings, but uses bigger
129 note heads.
130
131 The following example demonstrates the @code{neomensural} style
132
133 @lilypond[quote,fragment,ragged-right,verbatim]
134 \set Score.skipBars = ##t
135 \override NoteHead #'style = #'neomensural
136 a'\longa a'\breve a'1 a'2 a'4 a'8 a'16
137 @end lilypond
138
139 When typesetting a piece in Gregorian Chant notation, the
140 @internalsref{Gregorian_ligature_engraver} will automatically select
141 the proper note heads, so there is no need to explicitly set the
142 note head style.  Still, the note head style can be set, e.g., to
143 @code{vaticana_punctum} to produce punctum neumes.  Similarly, a
144 @internalsref{Mensural_ligature_engraver} is used to automatically
145 assemble mensural ligatures.  See @ref{Ligatures}, for how ligature
146 engravers work.
147
148 @seealso
149
150 @ref{Note head styles}, gives an overview over all available note head styles.
151
152
153 @node Ancient accidentals
154 @unnumberedsubsubsec Ancient accidentals
155
156 @cindex accidentals
157
158
159 Use the @code{glyph-name-alist} property of grob
160 @internalsref{Accidental} and @internalsref{KeySignature} to select
161 ancient accidentals. 
162
163 @lilypond[quote,ragged-right,staffsize=26]
164 \score {
165 {
166   \fatText
167   s^\markup {
168     \column {
169       "vaticana"
170       \line { " " \musicglyph #"accidentals.vaticana-1"
171         " " \musicglyph #"accidentals.vaticana0" }
172     }
173     \column {
174       "medicaea"
175       \line { " " \musicglyph #"accidentals.medicaea-1" }
176     }
177     \column {
178       "hufnagel"
179       \line { " " \musicglyph #"accidentals.hufnagel-1" }
180     }
181     \column {
182       "mensural"
183       \line { " " \musicglyph #"accidentals.mensural-1"
184         " " \musicglyph #"accidentals.mensural1" }
185     }
186   }
187 }
188 \layout {
189   interscoreline = 1
190   \context { \Score \remove "Bar_number_engraver" }
191   \context { \Staff
192       \remove "Clef_engraver"
193       \remove "Key_engraver"
194       \remove "Time_signature_engraver"
195       \remove "Staff_symbol_engraver"
196       \override VerticalAxisGroup #'minimum-Y-extent = ##f
197     }
198   }
199 }
200 @end lilypond
201
202 As shown, not all accidentals are supported by each style.  When
203 trying to access an unsupported accidental, LilyPond will switch to a
204 different style, as demonstrated in
205 @lsr{ancient,ancient-accidentals.ly}.
206
207 Similarly to local accidentals, the style of the key signature can be
208 controlled by the @code{glyph-name-alist} property of the
209 @internalsref{KeySignature} grob.
210
211 @seealso
212
213 In this manual: @ref{Pitches}, @ref{Cautionary accidentals}, and
214 @ref{Automatic accidentals}, give a general introduction of the use of
215 accidentals.  @ref{Key signature}, gives a general introduction of
216 the use of key signatures.
217
218 Program reference: @internalsref{KeySignature}.
219
220 Examples: @lsrdir{ancient}
221
222 @node Ancient rests
223 @unnumberedsubsubsec Ancient rests
224
225 @cindex rests, ancient
226
227
228 Use the @code{style} property of grob @internalsref{Rest} to select
229 ancient rests.   Supported styles are @code{classical},
230 @code{neomensural}, and @code{mensural}.  @code{classical} differs
231 from the @code{default} style only in that the quarter rest looks like
232 a horizontally mirrored 8th rest.  The @code{neomensural} style suits
233 well for, e.g., the incipit of a transcribed mensural piece of music.
234 The @code{mensural} style finally mimics the appearance of rests as
235 in historic prints of the 16th century.
236
237 The following example demonstrates the @code{neomensural} style
238
239 @lilypond[quote,fragment,ragged-right,verbatim]
240 \set Score.skipBars = ##t
241 \override Rest #'style = #'neomensural
242 r\longa r\breve r1 r2 r4 r8 r16
243 @end lilypond
244
245 There are no 32th and 64th rests specifically for the mensural or
246 neo-mensural style.  Instead, the rests from the default style will be
247 taken.  See @lsr{pitches,rests} for a chart of all rests.
248
249 There are no rests in Gregorian Chant notation; instead, it uses
250 @ref{Divisiones}.
251
252 @seealso
253
254 In this manual: @ref{Rests}, gives a general introduction into the use of
255 rests.
256
257
258 @node Ancient clefs
259 @unnumberedsubsubsec Ancient clefs
260
261 @cindex clefs
262
263
264 LilyPond supports a variety of clefs, many of them ancient.
265
266 The following table shows all ancient clefs that are supported via the
267 @code{\clef} command.  Some of the clefs use the same glyph, but
268 differ only with respect to the line they are printed on.  In such
269 cases, a trailing number in the name is used to enumerate these clefs.
270 Still, you can manually force a clef glyph to be typeset on an
271 arbitrary line, as described in @ref{Clef}.  The note printed to the
272 right side of each clef in the example column denotes the @code{c'}
273 with respect to that clef.
274
275 @multitable @columnfractions .4 .4 .2
276 @item
277 @b{Description}
278 @tab
279 @b{Supported Clefs}
280 @tab
281 @b{Example}
282
283 @item
284 modern style mensural C clef
285 @tab
286 @code{neomensural-c1}, @code{neomensural-c2},@*
287 @code{neomensural-c3}, @code{neomensural-c4}
288 @tab
289 @lilypond[fragment,relative=1,notime]
290   \clef "neomensural-c2" c
291 @end lilypond
292
293 @item
294 petrucci style mensural C clefs, for use on different staff lines
295 (the examples show the 2nd staff line C clef)
296 @tab
297 @code{petrucci-c1}, @code{petrucci-c2},@*
298 @code{petrucci-c3}, @code{petrucci-c4},@*
299 @code{petrucci-c5}
300 @tab
301 @lilypond[fragment,relative=1,notime]
302   \clef "petrucci-c2"
303   \override NoteHead #'style = #'mensural
304   c
305 @end lilypond
306
307 @item
308 petrucci style mensural F clef
309 @tab
310 @code{petrucci-f}
311 @tab
312 @lilypond[fragment,relative=1,notime]
313   \clef "petrucci-f"
314   \override NoteHead #'style = #'mensural
315   c
316 @end lilypond
317
318 @item
319 petrucci style mensural G clef
320 @tab
321 @code{petrucci-g}
322 @tab
323 @lilypond[fragment,relative=1,notime]
324   \clef "petrucci-g"
325   \override NoteHead #'style = #'mensural
326   c
327 @end lilypond
328
329 @item
330 historic style mensural C clef
331 @tab
332 @code{mensural-c1}, @code{mensural-c2},@*
333 @code{mensural-c3}, @code{mensural-c4}
334 @tab
335 @lilypond[fragment,relative=1,notime]
336   \clef "mensural-c2"
337   \override NoteHead #'style = #'mensural
338   c
339 @end lilypond
340
341 @item
342 historic style mensural F clef
343 @tab
344 @code{mensural-f}
345 @tab
346 @lilypond[fragment,relative=1,notime]
347   \clef "mensural-f"
348   \override NoteHead #'style = #'mensural
349   c
350 @end lilypond
351
352 @item
353 historic style mensural G clef
354 @tab
355 @code{mensural-g}
356 @tab
357 @lilypond[fragment,relative=1,notime]
358   \clef "mensural-g"
359   \override NoteHead #'style = #'mensural
360   c
361 @end lilypond
362
363 @item
364 Editio Vaticana style do clef
365 @tab
366 @code{vaticana-do1}, @code{vaticana-do2},@*
367 @code{vaticana-do3}
368 @tab
369 @lilypond[fragment,relative=1,notime]
370   \override Staff.StaffSymbol #'line-count = #4
371   \override Staff.StaffSymbol #'color = #red
372   \override Staff.LedgerLineSpanner #'color = #red
373   \override Voice.Stem #'transparent = ##t
374   \override NoteHead #'style = #'vaticana.punctum
375   \clef "vaticana-do2"
376   c
377 @end lilypond
378
379 @item
380 Editio Vaticana style fa clef
381 @tab
382 @code{vaticana-fa1}, @code{vaticana-fa2}
383 @tab
384 @lilypond[fragment,relative=1,notime]
385   \override Staff.StaffSymbol #'line-count = #4
386   \override Staff.StaffSymbol #'color = #red
387   \override Staff.LedgerLineSpanner #'color = #red
388   \override Voice.Stem #'transparent = ##t
389   \override NoteHead #'style = #'vaticana.punctum
390   \clef "vaticana-fa2"
391   c
392 @end lilypond
393
394 @item
395 Editio Medicaea style do clef
396 @tab
397 @code{medicaea-do1}, @code{medicaea-do2},@*
398 @code{medicaea-do3}
399 @tab
400 @lilypond[fragment,relative=1,notime]
401   \override Staff.StaffSymbol #'line-count = #4
402   \override Staff.StaffSymbol #'color = #red
403   \override Staff.LedgerLineSpanner #'color = #red
404   \override Voice.Stem #'transparent = ##t
405   \override NoteHead #'style = #'medicaea.punctum
406   \clef "medicaea-do2"
407   c
408 @end lilypond
409
410 @item
411 Editio Medicaea style fa clef
412 @tab
413 @code{medicaea-fa1}, @code{medicaea-fa2}
414 @tab
415 @lilypond[fragment,relative=1,notime]
416   \override Staff.StaffSymbol #'line-count = #4
417   \override Staff.StaffSymbol #'color = #red
418   \override Staff.LedgerLineSpanner #'color = #red
419   \override Voice.Stem #'transparent = ##t
420   \override NoteHead #'style = #'medicaea.punctum
421   \clef "medicaea-fa2"
422   c
423 @end lilypond
424
425 @item
426 historic style hufnagel do clef
427 @tab
428 @code{hufnagel-do1}, @code{hufnagel-do2},@*
429 @code{hufnagel-do3}
430 @tab
431 @lilypond[fragment,relative=1,notime]
432   \override Staff.StaffSymbol #'line-count = #4
433   \override Staff.StaffSymbol #'color = #red
434   \override Staff.LedgerLineSpanner #'color = #red
435   \override Voice.Stem #'transparent = ##t
436   \override NoteHead #'style = #'hufnagel.punctum
437   \clef "hufnagel-do2"
438   c
439 @end lilypond
440
441 @item
442 historic style hufnagel fa clef
443 @tab
444 @code{hufnagel-fa1}, @code{hufnagel-fa2}
445 @tab
446 @lilypond[fragment,relative=1,notime]
447   \override Staff.StaffSymbol #'line-count = #4
448   \override Staff.StaffSymbol #'color = #red
449   \override Staff.LedgerLineSpanner #'color = #red
450   \override Voice.Stem #'transparent = ##t
451   \override NoteHead #'style = #'hufnagel.punctum
452   \clef "hufnagel-fa2"
453   c
454 @end lilypond
455
456 @item
457 historic style hufnagel combined do/fa clef
458 @tab
459 @code{hufnagel-do-fa}
460 @tab
461 @lilypond[fragment,relative=1,notime]
462   \override Staff.StaffSymbol #'color = #red
463   \override Staff.LedgerLineSpanner #'color = #red
464   \override Voice.Stem #'transparent = ##t
465   \override NoteHead #'style = #'hufnagel.punctum
466   \clef "hufnagel-do-fa"
467   c
468 @end lilypond
469 @end multitable
470
471
472
473 @emph{Modern style} means @qq{as is typeset in contemporary editions of
474 transcribed mensural music.}
475
476 @emph{Petrucci style} means @qq{inspired by printings published by the
477 famous engraver Petrucci (1466-1539).}
478
479 @emph{Historic style} means @qq{as was typeset or written in historic
480 editions (other than those of Petrucci).}
481
482 @emph{Editio XXX style} means @qq{as is/was printed in Editio XXX.}
483
484 Petrucci used C clefs with differently balanced left-side vertical
485 beams, depending on which staff line it is printed.
486
487 @seealso
488
489 In this manual: see @ref{Clef}.
490
491 @refbugs
492
493 The mensural g clef is mapped to the Petrucci g clef.
494
495
496
497 @node Ancient flags
498 @unnumberedsubsubsec Ancient flags
499
500 @cindex flags
501
502
503 Use the @code{flag-style} property of grob @internalsref{Stem} to
504 select ancient flags.  Besides the @code{default} flag style,
505 only the @code{mensural} style is supported
506
507 @lilypond[quote,fragment,ragged-right,verbatim]
508 \override Stem #'flag-style = #'mensural
509 \override Stem #'thickness = #1.0
510 \override NoteHead #'style = #'mensural
511 \autoBeamOff
512 c'8 d'8 e'8 f'8 c'16 d'16 e'16 f'16 c'32 d'32 e'32 f'32 s8
513 c''8 d''8 e''8 f''8 c''16 d''16 e''16 f''16 c''32 d''32 e''32 f''32
514 @end lilypond
515
516 Note that the innermost flare of each mensural flag always is
517 vertically aligned with a staff line.
518
519 There is no particular flag style for neo-mensural notation.  Hence,
520 when typesetting the incipit of a transcribed piece of mensural
521 music, the default flag style should be used.  There are no flags in
522 Gregorian Chant notation.
523
524 @refbugs
525
526 The attachment of ancient flags to stems is slightly off due to a
527 change in early 2.3.x.
528
529 Vertically aligning each flag with a staff line assumes that stems
530 always end either exactly on or exactly in the middle between two
531 staff lines.  This may not always be true when using advanced layout
532 features of classical notation (which however are typically out of
533 scope for mensural notation).
534
535 @node Ancient time signatures
536 @unnumberedsubsubsec Ancient time signatures
537
538 @cindex time signatures
539
540
541 There is limited support for mensural time signatures.   The
542 glyphs are hard-wired to particular time fractions.  In other words,
543 to get a particular mensural signature glyph with the @code{\time n/m}
544 command, @code{n} and @code{m} have to be chosen according to the
545 following table
546
547 @lilypond[quote,ragged-right]
548 \layout {
549   indent = 0.0
550   \context {
551     \Staff
552     \remove Staff_symbol_engraver
553     \remove Clef_engraver
554     \remove Time_signature_engraver
555   }
556 }
557 {
558   \set Score.timing = ##f
559   \set Score.barAlways = ##t
560   s_\markup { "\\time 4/4" }^\markup { "       " \musicglyph
561 #"timesig.neomensural44" }
562   s
563   s_\markup { "\\time 2/2" }^\markup { "       " \musicglyph
564 #"timesig.neomensural22" }
565   s
566   s_\markup { "\\time 6/4" }^\markup { "       " \musicglyph
567 #"timesig.neomensural64" }
568   s
569   s_\markup { "\\time 6/8" }^\markup { "       " \musicglyph
570 #"timesig.neomensural68" }
571   \break
572   s_\markup { "\\time 3/2" }^\markup { "       " \musicglyph
573 #"timesig.neomensural32" }
574   s
575   s_\markup { "\\time 3/4" }^\markup { "       " \musicglyph
576 #"timesig.neomensural34" }
577   s
578   s_\markup { "\\time 9/4" }^\markup { "       " \musicglyph
579 #"timesig.neomensural94" }
580   s
581   s_\markup { "\\time 9/8" }^\markup { "       " \musicglyph
582 #"timesig.neomensural98" }
583   \break
584   s_\markup { "\\time 4/8" }^\markup { "       " \musicglyph
585 #"timesig.neomensural48" }
586   s
587   s_\markup { "\\time 2/4" }^\markup { "       " \musicglyph
588 #"timesig.neomensural24" }
589 }
590 @end lilypond
591
592 Use the @code{style} property of grob @internalsref{TimeSignature} to
593 select ancient time signatures.  Supported styles are
594 @code{neomensural} and @code{mensural}.  The above table uses the
595 @code{neomensural} style.  This style is appropriate for the
596 incipit of transcriptions of mensural pieces.  The @code{mensural}
597 style mimics the look of historical printings of the 16th century.
598
599 The following examples show the differences in style,
600
601 @lilypond[ragged-right,fragment,relative=1,quote]
602 {
603   \fatText
604
605   \time 2/2
606   c1^\markup { \hspace #-2.0 \typewriter default }
607
608   \override Staff.TimeSignature #'style = #'numbered
609   \time 2/2
610   c1^\markup { \hspace #-2.0 \typewriter numbered }
611
612   \override Staff.TimeSignature #'style = #'mensural
613   \time 2/2
614   c1^\markup { \hspace #-2.0 \typewriter mensural }
615
616   \override Staff.TimeSignature #'style = #'neomensural
617   \time 2/2
618   c1^\markup { \hspace #-2.0 \typewriter neomensural }
619   \override Staff.TimeSignature #'style = #'single-digit
620   \time 2/2
621   c1^\markup { \hspace #-2.0 \typewriter single-digit }
622 }
623 @end lilypond
624
625 @seealso
626
627 This manual: @ref{Time signature}, gives a general introduction to
628 the use of time signatures.
629
630 @refbugs
631
632 Ratios of note durations do not change with the time signature.  For
633 example, the ratio of 1 brevis = 3 semibrevis (tempus perfectum) must
634 be made by hand, by setting
635
636 @example
637 breveTP = #(ly:make-duration -1 0 3 2)
638 @dots{}
639 @{ c\breveTP f1 @}
640 @end example
641
642 @noindent
643 This sets @code{breveTP} to 3/2 times 2 = 3 times a whole note.
644
645 The @code{old6/8alt} symbol (an alternate symbol for 6/8) is not
646 addressable with @code{\time}.  Use a @code{\markup} instead
647
648 @node Ancient articulations
649 @unnumberedsubsubsec Ancient articulations
650
651 @cindex articulations
652
653 In addition to the standard articulation signs described in section
654 @ref{Articulations}, articulation signs for ancient notation are
655 provided.  These are specifically designed for use with notation in
656 Editio Vaticana style.
657
658 @lilypond[quote,ragged-right,verbatim]
659 \include "gregorian-init.ly"
660 \score {
661   \new VaticanaVoice {
662     \override TextScript #'font-family = #'typewriter
663     \override TextScript #'font-shape = #'upright
664     \override Script #'padding = #-0.1
665     a\ictus_"ictus" \break
666     a\circulus_"circulus" \break
667     a\semicirculus_"semicirculus" \break
668     a\accentus_"accentus" \break
669     \[ a_"episem" \episemInitium \pes b \flexa a b \episemFinis \flexa a \]
670   }
671 }
672 @end lilypond
673
674 @refbugs
675
676 Some articulations are vertically placed too closely to the
677 corresponding note heads.
678
679 The episem line is not displayed in many cases.  If it is displayed,
680 the right end of the episem line is often too far to the right.
681
682 @node Custodes
683 @unnumberedsubsubsec Custodes
684
685 @cindex custos
686 @cindex custodes
687
688 A @emph{custos} (plural: @emph{custodes}; Latin word for @q{guard}) is a
689 symbol that appears at the end of a staff.  It anticipates the pitch
690 of the first note(s) of the following line thus helping the performer
691 to manage line breaks during performance.
692
693 Custodes were frequently used in music notation until the 17th
694 century.  Nowadays, they have survived only in a few particular forms
695 of musical notation such as contemporary editions of Gregorian chant
696 like the @emph{editio vaticana}.  There are different custos glyphs
697 used in different flavors of notational style.
698
699 For typesetting custodes, just put a @internalsref{Custos_engraver} into the
700 @internalsref{Staff} context when declaring the @code{\layout} block,
701 as shown in the following example
702
703 @example
704 \layout @{
705   \context @{
706     \Staff
707     \consists Custos_engraver
708     Custos \override #'style = #'mensural
709   @}
710 @}
711 @end example
712
713 The result looks like this
714
715 @lilypond[quote,ragged-right]
716 \score {
717 {
718   a'1
719   \override Staff.Custos #'style = #'mensural
720   \break
721   g'
722 }
723 \layout {
724   \context { \Staff \consists Custos_engraver }
725   }
726 }
727 @end lilypond
728
729 The custos glyph is selected by the @code{style} property.  The styles
730 supported are @code{vaticana}, @code{medicaea}, @code{hufnagel}, and
731 @code{mensural}.  They are demonstrated in the following fragment
732
733 @lilypond[quote,ragged-right,fragment]
734 \new Lyrics \lyricmode {
735   \markup { \column {
736     \typewriter "vaticana"
737     \line { " " \musicglyph #"custodes.vaticana.u0" }
738   } }
739   \markup { \column {
740     \typewriter "medicaea"
741     \line { " " \musicglyph #"custodes.medicaea.u0" }
742   }}
743   \markup { \column {
744     \typewriter "hufnagel"
745     \line { " " \musicglyph #"custodes.hufnagel.u0" }
746   }}
747   \markup { \column {
748     \typewriter "mensural"
749     \line { " " \musicglyph #"custodes.mensural.u0" }
750   }}
751 }
752 @end lilypond
753
754 @seealso
755
756 Program reference: @internalsref{Custos}.
757
758 Examples:
759 @lsr{ancient,custodes@/.ly}.
760
761
762 @node Divisiones
763 @unnumberedsubsubsec Divisiones
764
765 @cindex divisio
766 @cindex divisiones
767 @cindex finalis
768
769 A @emph{divisio} (plural: @emph{divisiones}; Latin word for
770 @q{division}) is a staff context symbol that is used to structure
771 Gregorian music into phrases and sections.  The musical meaning of
772 @emph{divisio minima}, @emph{divisio maior}, and @emph{divisio maxima}
773 can be characterized as short, medium, and long pause, somewhat like
774 the breathmarks from @ref{Breath marks}.  The @emph{finalis} sign not
775 only marks the end of a chant, but is also frequently used within a
776 single antiphonal/responsorial chant to mark the end of each section.
777
778
779 To use divisiones, include the file @file{gregorian@/-init@/.ly}.  It
780 contains definitions that you can apply by just inserting
781 @code{\divisioMinima}, @code{\divisioMaior}, @code{\divisioMaxima},
782 and @code{\finalis} at proper places in the input.  Some editions use
783 @emph{virgula} or @emph{caesura} instead of divisio minima.
784 Therefore, @file{gregorian@/-init@/.ly} also defines @code{\virgula} and
785 @code{\caesura}
786
787 @lilypondfile[quote,ragged-right]{divisiones.ly}
788
789 @refcommands
790
791 @funindex \virgula
792 @code{\virgula},
793 @funindex \caesura
794 @code{\caesura},
795 @funindex \divisioMinima
796 @code{\divisioMinima},
797 @funindex \divisioMaior
798 @code{\divisioMaior},
799 @funindex \divisioMaxima
800 @code{\divisioMaxima},
801 @funindex \finalis
802 @code{\finalis}.
803
804 @seealso
805
806 In this manual: @ref{Breath marks}.
807
808 Program reference: @internalsref{BreathingSign}.
809
810 Examples: @lsr{expressive,breathing-sign.ly}.
811
812
813 @node Ligatures
814 @unnumberedsubsubsec Ligatures
815
816 @cindex Ligatures
817
818 @c TODO: Should double check if I recalled things correctly when I wrote
819 @c down the following paragraph by heart.
820
821 A ligature is a graphical symbol that represents at least two distinct
822 notes.  Ligatures originally appeared in the manuscripts of Gregorian
823 chant notation to denote ascending or descending sequences of notes.
824
825 Ligatures are entered by enclosing them in @code{\[} and @code{\]}.
826 Some ligature styles may need additional input syntax specific for
827 this particular type of ligature.  By default, the
828 @internalsref{LigatureBracket} engraver just puts a square bracket
829 above the ligature
830
831 @lilypond[quote,ragged-right,verbatim]
832 \transpose c c' {
833   \[ g c a f d' \]
834   a g f
835   \[ e f a g \]
836 }
837 @end lilypond
838
839 To select a specific style of ligatures, a proper ligature engraver
840 has to be added to the @internalsref{Voice} context, as explained in
841 the following subsections.   Only white mensural ligatures
842 are supported with certain limitations.
843
844
845
846 @refbugs
847
848 Ligatures need special spacing that has not yet been implemented.  As
849 a result, there is too much space between ligatures most of the time,
850 and line breaking often is unsatisfactory.  Also, lyrics do not
851 correctly align with ligatures.
852
853 Accidentals must not be printed within a ligature, but instead need to
854 be collected and printed in front of it.
855
856 The syntax still uses the deprecated infix style @code{\[ music expr
857 \]}.  For consistency reasons, it will eventually be changed to
858 postfix style @code{note\[ ... note\]}.  Alternatively, the file
859 @file{gregorian@/-init@/.ly} can be included; it provides a scheme
860 function
861 @example
862 \ligature @var{music expr}
863 @end example
864 with the same effect and is believed to be stable.
865
866 @menu
867 * White mensural ligatures::    
868 * Gregorian square neumes ligatures::  
869 @end menu
870
871 @node White mensural ligatures
872 @unnumberedsubsubsec White mensural ligatures
873
874 @cindex Mensural ligatures
875 @cindex White mensural ligatures
876
877 There is limited support for white mensural ligatures.
878
879 To engrave white mensural ligatures, in the layout block put the
880 @internalsref{Mensural_ligature_engraver} into the
881 @internalsref{Voice} context, and remove the
882 @internalsref{Ligature_bracket_engraver}, like this
883
884 @example
885 \layout @{
886   \context @{
887     \Voice
888     \remove Ligature_bracket_engraver
889     \consists Mensural_ligature_engraver
890   @}
891 @}
892 @end example
893
894 There is no additional input language to describe the shape of a
895 white mensural ligature.  The shape is rather determined solely from
896 the pitch and duration of the enclosed notes.  While this approach may
897 take a new user a while to get accustomed to, it has the great advantage
898 that the full musical information of the ligature is known internally.
899 This is not only required for correct MIDI output, but also allows for
900 automatic transcription of the ligatures.
901
902 For example,
903
904 @example
905 \set Score.timing = ##f
906 \set Score.defaultBarType = "empty"
907 \override NoteHead #'style = #'neomensural
908 \override Staff.TimeSignature #'style = #'neomensural
909 \clef "petrucci-g"
910 \[ c'\maxima g \]
911 \[ d\longa c\breve f e d \]
912 \[ c'\maxima d'\longa \]
913 \[ e'1 a g\breve \]
914 @end example
915 @lilypond[quote,ragged-right]
916 \score {
917   \transpose c c' {
918     \set Score.timing = ##f
919     \set Score.defaultBarType = "empty"
920     \override NoteHead #'style = #'neomensural
921     \override Staff.TimeSignature #'style = #'neomensural
922     \clef "petrucci-g"
923     \[ c'\maxima g \]
924     \[ d\longa c\breve f e d \]
925     \[ c'\maxima d'\longa \]
926     \[ e'1 a g\breve \]
927   }
928   \layout {
929     \context {
930       \Voice
931       \remove Ligature_bracket_engraver
932       \consists Mensural_ligature_engraver
933     }
934   }
935 }
936 @end lilypond
937
938 Without replacing @internalsref{Ligature_bracket_engraver} with
939 @internalsref{Mensural_ligature_engraver}, the same music transcribes
940 to the following
941
942 @lilypond[quote,ragged-right]
943 \transpose c c' {
944   \set Score.timing = ##f
945   \set Score.defaultBarType = "empty"
946   \override NoteHead #'style = #'neomensural
947   \override Staff.TimeSignature #'style = #'neomensural
948   \clef "petrucci-g"
949   \[ c'\maxima g \]
950   \[ d\longa c\breve f e d \]
951   \[ c'\maxima d'\longa \]
952   \[ e'1 a g\breve \]
953 }
954 @end lilypond
955
956 @refbugs
957
958 Horizontal spacing is poor.
959
960 @node Gregorian square neumes ligatures
961 @unnumberedsubsubsec Gregorian square neumes ligatures
962
963 @cindex Square neumes ligatures
964 @cindex Gregorian square neumes ligatures
965
966 There is limited support for Gregorian square neumes notation
967 (following the style of the Editio Vaticana).  Core ligatures can
968 already be typeset, but essential issues for serious typesetting are
969 still lacking, such as (among others) horizontal alignment of multiple
970 ligatures, lyrics alignment and proper handling of accidentals.
971
972
973 The following table contains the extended neumes table of the 2nd
974 volume of the Antiphonale Romanum (@emph{Liber Hymnarius}), published
975 1983 by the monks of Solesmes.
976
977 @multitable @columnfractions .4 .2 .2 .2
978
979 @item
980 @b{Neuma aut@*
981 Neumarum Elementa}
982 @tab
983 @b{Figurae@*
984 Rectae}
985 @tab
986 @b{Figurae@*
987 Liquescentes@*
988 Auctae}
989 @tab
990 @b{Figurae@*
991 Liquescentes@*
992 Deminutae}
993
994 @c TODO: \layout block is identical in all of the below examples.
995 @c Therefore, it should somehow be included rather than duplicated all
996 @c the time. --jr
997
998 @c why not make identifiers in ly/engraver-init.ly? --hwn
999
1000 @c Because it's just used to typeset plain notes without
1001 @c a staff for demonstration purposes rather than something
1002 @c special of Gregorian chant notation. --jr
1003
1004 @item
1005 @code{1. Punctum}
1006 @tab
1007 @lilypond[staffsize=26,line-width=1.5\cm]
1008 \include "gregorian-init.ly"
1009 \score {
1010   \transpose c c' {
1011     % Punctum
1012     \[ b \]
1013     \noBreak s^\markup {"a"} \noBreak
1014
1015     % Punctum Inclinatum
1016     \[ \inclinatum b \]
1017     \noBreak s^\markup {"b"}
1018   }
1019 \layout { \neumeDemoLayout }}
1020 @end lilypond
1021 @tab
1022 @lilypond[staffsize=26,line-width=2.5\cm]
1023 \include "gregorian-init.ly"
1024 \score {
1025   \transpose c c' {
1026     % Punctum Auctum Ascendens
1027     \[ \auctum \ascendens b \]
1028     \noBreak s^\markup {"c"} \noBreak
1029
1030     % Punctum Auctum Descendens
1031     \[ \auctum \descendens b \]
1032     \noBreak s^\markup {"d"} \noBreak
1033
1034     % Punctum Inclinatum Auctum
1035     \[ \inclinatum \auctum b \]
1036     \noBreak s^\markup {"e"}
1037   }
1038 \layout { \neumeDemoLayout }}
1039 @end lilypond
1040 @tab
1041 @lilypond[staffsize=26,line-width=1.0\cm]
1042 \include "gregorian-init.ly"
1043 \score {
1044   \transpose c c' {
1045     % Punctum Inclinatum Parvum
1046     \[ \inclinatum \deminutum b \]
1047     \noBreak s^\markup {"f"}
1048   }
1049 \layout { \neumeDemoLayout }}
1050 @end lilypond
1051
1052 @item
1053 @code{2. Virga}
1054 @tab
1055 @lilypond[staffsize=26,line-width=1.0\cm]
1056 \include "gregorian-init.ly"
1057 \score {
1058   \transpose c c' {
1059     % Virga
1060     \[ \virga b \]
1061     \noBreak s^\markup {"g"}
1062   }
1063 \layout { \neumeDemoLayout }}
1064 @end lilypond
1065 @tab
1066 @tab
1067
1068 @item
1069 @code{3. Apostropha vel Stropha}
1070 @tab
1071 @lilypond[staffsize=26,line-width=1.0\cm]
1072 \include "gregorian-init.ly"
1073 \score {
1074   \transpose c c' {
1075     % Stropha
1076     \[ \stropha b \]
1077     \noBreak s^\markup {"h"}
1078   }
1079 \layout { \neumeDemoLayout }}
1080 @end lilypond
1081 @tab
1082 @lilypond[staffsize=26,line-width=1.0\cm]
1083 \include "gregorian-init.ly"
1084 \score {
1085   \transpose c c' {
1086     % Stropha Aucta
1087     \[ \stropha \auctum b \]
1088     \noBreak s^\markup {"i"}
1089   }
1090 \layout { \neumeDemoLayout }}
1091 @end lilypond
1092 @tab
1093
1094 @item
1095 @code{4. Oriscus}
1096 @tab
1097 @lilypond[staffsize=26,line-width=1.0\cm]
1098 \include "gregorian-init.ly"
1099 \score {
1100   \transpose c c' {
1101     % Oriscus
1102     \[ \oriscus b \]
1103     \noBreak s^\markup {"j"}
1104   }
1105 \layout { \neumeDemoLayout }}
1106 @end lilypond
1107 @tab
1108 @tab
1109
1110 @item
1111 @code{5. Clivis vel Flexa}
1112 @tab
1113 @lilypond[staffsize=26,line-width=1.0\cm]
1114 \include "gregorian-init.ly"
1115 \score {
1116   \transpose c c' {
1117     % Clivis vel Flexa
1118     \[ b \flexa g \]
1119     s^\markup {"k"}
1120   }
1121 \layout { \neumeDemoLayout }}
1122 @end lilypond
1123 @tab
1124 @lilypond[staffsize=26,line-width=2.0\cm]
1125 \include "gregorian-init.ly"
1126 \score {
1127   \transpose c c' {
1128     % Clivis Aucta Descendens
1129     \[ b \flexa \auctum \descendens g \]
1130     \noBreak s^\markup {"l"} \noBreak
1131
1132     % Clivis Aucta Ascendens
1133     \[ b \flexa \auctum \ascendens g \]
1134     \noBreak s^\markup {"m"}
1135   }
1136 \layout { \neumeDemoLayout }}
1137 @end lilypond
1138 @tab
1139 @lilypond[staffsize=26,line-width=1.0\cm]
1140 \include "gregorian-init.ly"
1141 \score {
1142   \transpose c c' {
1143     % Cephalicus
1144     \[ b \flexa \deminutum g \]
1145     s^\markup {"n"}
1146   }
1147 \layout { \neumeDemoLayout }}
1148 @end lilypond
1149
1150 @item
1151 @code{6. Podatus vel Pes}
1152 @tab
1153 @lilypond[staffsize=26,line-width=1.0\cm]
1154 \include "gregorian-init.ly"
1155 \score {
1156   \transpose c c' {
1157     % Podatus vel Pes
1158     \[ g \pes b \]
1159     s^\markup {"o"}
1160   }
1161 \layout { \neumeDemoLayout }}
1162 @end lilypond
1163 @tab
1164 @lilypond[staffsize=26,line-width=2.0\cm]
1165 \include "gregorian-init.ly"
1166 \score {
1167   \transpose c c' {
1168     % Pes Auctus Descendens
1169     \[ g \pes \auctum \descendens b \]
1170     \noBreak s^\markup {"p"} \noBreak
1171
1172     % Pes Auctus Ascendens
1173     \[ g \pes \auctum \ascendens b \]
1174     \noBreak s^\markup {"q"}
1175   }
1176 \layout { \neumeDemoLayout }}
1177 @end lilypond
1178 @tab
1179 @lilypond[staffsize=26,line-width=1.0\cm]
1180 \include "gregorian-init.ly"
1181 \score {
1182   \transpose c c' {
1183     % Epiphonus
1184     \[ g \pes \deminutum b \]
1185     s^\markup {"r"}
1186   }
1187 \layout { \neumeDemoLayout }}
1188 @end lilypond
1189
1190 @item
1191 @code{7. Pes Quassus}
1192 @tab
1193 @lilypond[staffsize=26,line-width=1.0\cm]
1194 \include "gregorian-init.ly"
1195 \score {
1196   \transpose c c' {
1197     % Pes Quassus
1198     \[ \oriscus g \pes \virga b \]
1199     s^\markup {"s"}
1200   }
1201 \layout { \neumeDemoLayout }}
1202 @end lilypond
1203 @tab
1204 @lilypond[staffsize=26,line-width=1.0\cm]
1205 \include "gregorian-init.ly"
1206 \score {
1207   \transpose c c' {
1208     % Pes Quassus Auctus Descendens
1209     \[ \oriscus g \pes \auctum \descendens b \]
1210     s^\markup {"t"}
1211   }
1212 \layout { \neumeDemoLayout }}
1213 @end lilypond
1214 @tab
1215
1216 @item
1217 @code{8. Quilisma Pes}
1218 @tab
1219 @lilypond[staffsize=26,line-width=1.0\cm]
1220 \include "gregorian-init.ly"
1221 \score {
1222   \transpose c c' {
1223     % Quilisma Pes
1224     \[ \quilisma g \pes b \]
1225     s^\markup {"u"}
1226   }
1227 \layout { \neumeDemoLayout }}
1228 @end lilypond
1229 @tab
1230 @lilypond[staffsize=26,line-width=1.0\cm]
1231 \include "gregorian-init.ly"
1232 \score {
1233   \transpose c c' {
1234     % Quilisma Pes Auctus Descendens
1235     \[ \quilisma g \pes \auctum \descendens b \]
1236     s^\markup {"v"}
1237   }
1238 \layout { \neumeDemoLayout }}
1239 @end lilypond
1240 @tab
1241
1242 @item
1243 @code{9. Podatus Initio Debilis}
1244 @tab
1245 @lilypond[staffsize=26,line-width=1.0\cm]
1246 \include "gregorian-init.ly"
1247 \score {
1248   \transpose c c' {
1249     % Pes Initio Debilis
1250     \[ \deminutum g \pes b \]
1251     s^\markup {"w"}
1252   }
1253 \layout { \neumeDemoLayout }}
1254 @end lilypond
1255 @tab
1256 @lilypond[staffsize=26,line-width=1.0\cm]
1257 \include "gregorian-init.ly"
1258 \score {
1259   \transpose c c' {
1260     % Pes Auctus Descendens Initio Debilis
1261     \[ \deminutum g \pes \auctum \descendens b \]
1262     s^\markup {"x"}
1263   }
1264 \layout { \neumeDemoLayout }}
1265 @end lilypond
1266 @tab
1267
1268 @item
1269 @code{10. Torculus}
1270 @tab
1271 @lilypond[staffsize=26,line-width=1.0\cm]
1272 \include "gregorian-init.ly"
1273 \score {
1274   \transpose c c' {
1275     % Torculus
1276     \[ a \pes b \flexa g \]
1277     s^\markup {"y"}
1278   }
1279 \layout { \neumeDemoLayout }}
1280 @end lilypond
1281 @tab
1282 @lilypond[staffsize=26,line-width=1.0\cm]
1283 \include "gregorian-init.ly"
1284 \score {
1285   \transpose c c' {
1286     % Torculus Auctus Descendens
1287     \[ a \pes b \flexa \auctum \descendens g \]
1288     s^\markup {"z"}
1289   }
1290 \layout { \neumeDemoLayout }}
1291 @end lilypond
1292 @tab
1293 @lilypond[staffsize=26,line-width=1.0\cm]
1294 \include "gregorian-init.ly"
1295 \score {
1296   \transpose c c' {
1297     % Torculus Deminutus
1298     \[ a \pes b \flexa \deminutum g \]
1299     s^\markup {"A"}
1300   }
1301 \layout { \neumeDemoLayout }}
1302 @end lilypond
1303
1304 @item
1305 @code{11. Torculus Initio Debilis}
1306 @tab
1307 @lilypond[staffsize=26,line-width=1.0\cm]
1308 \include "gregorian-init.ly"
1309 \score {
1310   \transpose c c' {
1311     % Torculus Initio Debilis
1312     \[ \deminutum a \pes b \flexa g \]
1313     s^\markup {"B"}
1314   }
1315 \layout { \neumeDemoLayout }}
1316 @end lilypond
1317 @tab
1318 @lilypond[staffsize=26,line-width=1.0\cm]
1319 \include "gregorian-init.ly"
1320 \score {
1321   \transpose c c' {
1322     % Torculus Auctus Descendens Initio Debilis
1323     \[ \deminutum a \pes b \flexa \auctum \descendens g \]
1324     s^\markup {"C"}
1325   }
1326 \layout { \neumeDemoLayout }}
1327 @end lilypond
1328 @tab
1329 @lilypond[staffsize=26,line-width=1.0\cm]
1330 \include "gregorian-init.ly"
1331 \score {
1332   \transpose c c' {
1333     % Torculus Deminutus Initio Debilis
1334     \[ \deminutum a \pes b \flexa \deminutum g \]
1335     s^\markup {"D"}
1336   }
1337 \layout { \neumeDemoLayout }}
1338 @end lilypond
1339
1340 @item
1341 @code{12. Porrectus}
1342 @tab
1343 @lilypond[staffsize=26,line-width=1.0\cm]
1344 \include "gregorian-init.ly"
1345 \score {
1346   \transpose c c' {
1347     % Porrectus
1348     \[ a \flexa g \pes b \]
1349     s^\markup {"E"}
1350   }
1351 \layout { \neumeDemoLayout }}
1352 @end lilypond
1353 @tab
1354 @lilypond[staffsize=26,line-width=1.0\cm]
1355 \include "gregorian-init.ly"
1356 \score {
1357   \transpose c c' {
1358     % Porrectus Auctus Descendens
1359     \[ a \flexa g \pes \auctum \descendens b \]
1360     s^\markup {"F"}
1361   }
1362 \layout { \neumeDemoLayout }}
1363 @end lilypond
1364 @tab
1365 @lilypond[staffsize=26,line-width=1.0\cm]
1366 \include "gregorian-init.ly"
1367 \score {
1368   \transpose c c' {
1369     % Porrectus Deminutus
1370     \[ a \flexa g \pes \deminutum b \]
1371     s^\markup {"G"}
1372   }
1373 \layout { \neumeDemoLayout }}
1374 @end lilypond
1375
1376 @item
1377 @code{13. Climacus}
1378 @tab
1379 @lilypond[staffsize=26,line-width=1.0\cm]
1380 \include "gregorian-init.ly"
1381 \score {
1382   \transpose c c' {
1383     % Climacus
1384     \[ \virga b \inclinatum a \inclinatum g \]
1385     s^\markup {"H"}
1386   }
1387   \layout { \neumeDemoLayout }
1388 }
1389 @end lilypond
1390 @tab
1391 @lilypond[staffsize=26,line-width=1.0\cm]
1392 \include "gregorian-init.ly"
1393 \score {
1394   \transpose c c' {
1395     % Climacus Auctus
1396     \[ \virga b \inclinatum a \inclinatum \auctum g \]
1397     s^\markup {"I"}
1398   }
1399 \layout { \neumeDemoLayout }}
1400 @end lilypond
1401 @tab
1402 @lilypond[staffsize=26,line-width=1.0\cm]
1403 \include "gregorian-init.ly"
1404 \score {
1405   \transpose c c' {
1406     % Climacus Deminutus
1407     \[ \virga b \inclinatum a \inclinatum \deminutum g \]
1408     s^\markup {"J"}
1409   }
1410 \layout { \neumeDemoLayout }}
1411 @end lilypond
1412
1413 @item
1414 @code{14. Scandicus}
1415 @tab
1416 @lilypond[staffsize=26,line-width=1.0\cm]
1417 \include "gregorian-init.ly"
1418 \score {
1419   \transpose c c' {
1420     % Scandicus
1421     \[ g \pes a \virga b \]
1422     s^\markup {"K"}
1423   }
1424 \layout { \neumeDemoLayout }}
1425 @end lilypond
1426 @tab
1427 @lilypond[staffsize=26,line-width=1.0\cm]
1428 \include "gregorian-init.ly"
1429 \score {
1430   \transpose c c' {
1431     % Scandicus Auctus Descendens
1432     \[ g \pes a \pes \auctum \descendens b \]
1433     s^\markup {"L"}
1434   }
1435 \layout { \neumeDemoLayout }}
1436 @end lilypond
1437 @tab
1438 @lilypond[staffsize=26,line-width=1.0\cm]
1439 \include "gregorian-init.ly"
1440 \score {
1441   \transpose c c' {
1442     % Scandicus Deminutus
1443     \[ g \pes a \pes \deminutum b \]
1444     s^\markup {"M"}
1445   }
1446 \layout { \neumeDemoLayout }}
1447 @end lilypond
1448
1449 @item
1450 @code{15. Salicus}
1451 @tab
1452 @lilypond[staffsize=26,line-width=1.0\cm]
1453 \include "gregorian-init.ly"
1454 \score {
1455   \transpose c c' {
1456     % Salicus
1457     \[ g \oriscus a \pes \virga b \]
1458     s^\markup {"N"}
1459   }
1460 \layout { \neumeDemoLayout }}
1461 @end lilypond
1462 @tab
1463 @lilypond[staffsize=26,line-width=1.0\cm]
1464 \include "gregorian-init.ly"
1465 \score {
1466   \transpose c c' {
1467     % Salicus Auctus Descendens
1468     \[ g \oriscus a \pes \auctum \descendens b \]
1469     s^\markup {"O"}
1470   }
1471 \layout { \neumeDemoLayout }}
1472 @end lilypond
1473 @tab
1474
1475 @item
1476 @code{16. Trigonus}
1477 @tab
1478 @lilypond[staffsize=26,line-width=1.0\cm]
1479 \include "gregorian-init.ly"
1480 \score {
1481   \transpose c c' {
1482     % Trigonus
1483     \[ \stropha b \stropha b \stropha a \]
1484     s^\markup {"P"}
1485   }
1486   \layout { \neumeDemoLayout }
1487 }
1488 @end lilypond
1489 @tab
1490 @tab
1491
1492 @end multitable
1493
1494
1495 Unlike most other neumes notation systems, the input language for
1496 neumes does not reflect the typographical appearance, but is designed
1497 to focus on musical meaning.  For example, @code{\[ a \pes b
1498 \flexa g \]} produces a Torculus consisting of three Punctum heads,
1499 while @code{\[ a \flexa g \pes b \]} produces a Porrectus with a
1500 curved flexa shape and only a single Punctum head.  There is no
1501 command to explicitly typeset the curved flexa shape; the decision of
1502 when to typeset a curved flexa shape is based on the musical
1503 input.  The idea of this approach is to separate the musical aspects
1504 of the input from the notation style of the output.  This way, the
1505 same input can be reused to typeset the same music in a different
1506 style of Gregorian chant notation.
1507
1508 The following table shows the code fragments that produce the
1509 ligatures in the above neumes table.  The letter in the first column
1510 in each line of the below table indicates to which ligature in the
1511 above table it refers.  The second column gives the name of the
1512 ligature.  The third column shows the code fragment that produces this
1513 ligature, using @code{g}, @code{a}, and @code{b} as example pitches.
1514
1515 @multitable @columnfractions .02 .31 .67
1516 @item
1517 @b{#}
1518 @tab
1519 @b{Name}
1520 @tab
1521 @b{Input Language}
1522
1523 @item
1524 a
1525 @tab
1526 Punctum
1527 @tab
1528 @code{\[ b \]}
1529
1530 @item
1531 b
1532 @tab
1533 Punctum Inclinatum
1534 @tab
1535 @code{\[ \inclinatum b \]}
1536
1537 @item
1538 c
1539 @tab
1540 Punctum Auctum@*
1541 Ascendens
1542 @tab
1543 @code{\[ \auctum \ascendens b \]}
1544
1545 @item
1546 d
1547 @tab
1548 Punctum Auctum@*
1549 Descendens
1550 @tab
1551 @code{\[ \auctum \descendens b \]}
1552
1553 @item
1554 e
1555 @tab
1556 Punctum Inclinatum@*
1557 Auctum
1558 @tab
1559 @code{\[ \inclinatum \auctum b \]}
1560
1561 @item
1562 f
1563 @tab
1564 Punctum Inclinatum@*
1565 Parvum @tab
1566 @code{\[ \inclinatum \deminutum b \]}
1567
1568 @item
1569 g
1570 @tab
1571 Virga
1572 @tab
1573 @code{\[ \virga b \]}
1574
1575 @item
1576 h
1577 @tab
1578 Stropha
1579 @tab
1580 @code{\[ \stropha b \]}
1581
1582 @item
1583 i
1584 @tab
1585 Stropha Aucta
1586 @tab
1587 @code{\[ \stropha \auctum b \]}
1588
1589 @item
1590 j
1591 @tab
1592 Oriscus
1593 @tab
1594 @code{\[ \oriscus b \]}
1595
1596 @item
1597 k
1598 @tab
1599 Clivis vel Flexa
1600 @tab
1601 @code{\[ b \flexa g \]}
1602
1603 @item
1604 l
1605 @tab
1606 Clivis Aucta@*
1607 Descendens
1608 @tab
1609 @code{\[ b \flexa \auctum \descendens g \]}
1610
1611 @item
1612 m
1613 @tab
1614 Clivis Aucta@*
1615 Ascendens
1616 @tab
1617 @code{\[ b \flexa \auctum \ascendens g \]}
1618
1619 @item
1620 n
1621 @tab
1622 Cephalicus
1623 @tab
1624 @code{\[ b \flexa \deminutum g \]}
1625
1626 @item
1627 o
1628 @tab
1629 Podatus vel Pes
1630 @tab
1631 @code{\[ g \pes b \]}
1632
1633 @item
1634 p
1635 @tab
1636 Pes Auctus@*
1637 Descendens
1638 @tab
1639 @code{\[ g \pes \auctum \descendens b \]}
1640
1641 @item
1642 q
1643 @tab
1644 Pes Auctus@*
1645 Ascendens
1646 @tab
1647 @code{\[ g \pes \auctum \ascendens b \]}
1648
1649 @item
1650 r
1651 @tab
1652 Epiphonus
1653 @tab
1654 @code{\[ g \pes \deminutum b \]}
1655
1656 @item
1657 s
1658 @tab
1659 Pes Quassus
1660 @tab
1661 @code{\[ \oriscus g \pes \virga b \]}
1662
1663 @item
1664 t
1665 @tab
1666 Pes Quassus@*
1667 Auctus Descendens @tab
1668 @code{\[ \oriscus g \pes \auctum \descendens b \]}
1669
1670 @item
1671 u
1672 @tab
1673 Quilisma Pes
1674 @tab
1675 @code{\[ \quilisma g \pes b \]}
1676
1677 @item
1678 v
1679 @tab
1680 Quilisma Pes@*
1681 Auctus Descendens
1682 @tab
1683 @code{\[ \quilisma g \pes \auctum \descendens b \]}
1684
1685 @item
1686 w
1687 @tab
1688 Pes Initio Debilis
1689 @tab
1690 @code{\[ \deminutum g \pes b \]}
1691
1692 @item
1693 x
1694 @tab
1695 Pes Auctus Descendens@*
1696 Initio Debilis
1697 @tab
1698 @code{\[ \deminutum g \pes \auctum \descendens b \]}
1699
1700 @item
1701 y
1702 @tab
1703 Torculus
1704 @tab
1705 @code{\[ a \pes b \flexa g \]}
1706
1707 @item
1708 z
1709 @tab
1710 Torculus Auctus@*
1711 Descendens
1712 @tab
1713 @code{\[ a \pes b \flexa \auctum \descendens g \]}
1714
1715 @item
1716 A
1717 @tab
1718 Torculus Deminutus
1719 @tab
1720 @code{\[ a \pes b \flexa \deminutum g \]}
1721
1722 @item
1723 B
1724 @tab
1725 Torculus Initio Debilis
1726 @tab
1727 @code{\[ \deminutum a \pes b \flexa g \]}
1728
1729 @item
1730 C
1731 @tab
1732 Torculus Auctus@*
1733 Descendens Initio Debilis
1734 @tab
1735 @code{\[ \deminutum a \pes b \flexa \auctum \descendens g \]}
1736
1737 @item
1738 D
1739 @tab
1740 Torculus Deminutus@*
1741 Initio Debilis
1742 @tab
1743 @code{\[ \deminutum a \pes b \flexa \deminutum g \]}
1744
1745 @item
1746 E
1747 @tab
1748 Porrectus
1749 @tab
1750 @code{\[ a \flexa g \pes b \]}
1751
1752 @item
1753 F
1754 @tab
1755 Porrectus Auctus@*
1756 Descendens
1757 @tab
1758 @code{\[ a \flexa g \pes \auctum \descendens b \]}
1759
1760 @item
1761 G
1762 @tab
1763 Porrectus Deminutus
1764 @tab
1765 @code{\[ a \flexa g \pes \deminutum b \]}
1766
1767 @item
1768 H
1769 @tab
1770 Climacus
1771 @tab
1772 @code{\[ \virga b \inclinatum a \inclinatum g \]}
1773
1774 @item
1775 I
1776 @tab
1777 Climacus Auctus
1778 @tab
1779 @code{\[ \virga b \inclinatum a \inclinatum \auctum g \]}
1780
1781 @item
1782 J
1783 @tab
1784 Climacus Deminutus
1785 @tab
1786 @code{\[ \virga b \inclinatum a \inclinatum \deminutum g \]}
1787
1788 @item
1789 K
1790 @tab
1791 Scandicus
1792 @tab
1793 @code{\[ g \pes a \virga b \]}
1794
1795 @item
1796 L
1797 @tab
1798 Scandicus Auctus@*
1799 Descendens
1800 @tab
1801 @code{\[ g \pes a \pes \auctum \descendens b \]}
1802
1803 @item
1804 M
1805 @tab
1806 Scandicus Deminutus
1807 @tab
1808 @code{\[ g \pes a \pes \deminutum b \]}
1809
1810 @item
1811 N
1812 @tab
1813 Salicus
1814 @tab
1815 @code{\[ g \oriscus a \pes \virga b \]}
1816
1817 @item
1818 O
1819 @tab
1820 Salicus Auctus Descendens
1821 @tab
1822 @code{\[ g \oriscus a \pes \auctum \descendens b \]}
1823
1824 @item
1825 P
1826 @tab
1827 Trigonus
1828 @tab
1829 @code{\[ \stropha b \stropha b \stropha a \]}
1830 @end multitable
1831
1832 The ligatures listed above mainly serve as a limited, but still
1833 representative pool of Gregorian ligature examples.  Virtually, within
1834 the ligature delimiters @code{\[} and @code{\]}, any number of heads
1835 may be accumulated to form a single ligature, and head prefixes like
1836 @code{\pes}, @code{\flexa}, @code{\virga}, @code{\inclinatum},
1837 etc. may be mixed in as desired.  The use of the set of rules that
1838 underlies the construction of the ligatures in the above table is
1839 accordingly extrapolated.  This way, infinitely many different
1840 ligatures can be created.
1841
1842 Augmentum dots, also called @emph{morae}, are added with the music
1843 function @code{\augmentum}.  Note that @code{\augmentum} is
1844 implemented as a unary music function rather than as head prefix.  It
1845 applies to the immediately following music expression only.  That is,
1846 @code{\augmentum \virga c} will have no visible effect.  Instead, say
1847 @code{\virga \augmentum c} or @code{\augmentum @{\virga c@}}.  Also
1848 note that you can say @code{\augmentum @{a g@}} as a shortcut for
1849 @code{\augmentum a \augmentum g}.
1850
1851 @lilypond[quote,ragged-right,verbatim]
1852 \include "gregorian-init.ly"
1853 \score {
1854   \new VaticanaVoice {
1855     \[ \augmentum a \flexa \augmentum g \]
1856     \augmentum g
1857   }
1858 }
1859 @end lilypond
1860
1861 @refcommands
1862
1863 The following head prefixes are supported
1864
1865 @funindex \virga
1866 @code{\virga},
1867 @funindex \stropha
1868 @code{\stropha},
1869 @funindex \inclinatum
1870 @code{\inclinatum},
1871 @funindex \auctum
1872 @code{\auctum},
1873 @funindex \descendens
1874 @code{\descendens},
1875 @funindex \ascendens
1876 @code{\ascendens},
1877 @funindex \oriscus
1878 @code{\oriscus},
1879 @funindex \quilisma
1880 @code{\quilisma},
1881 @funindex \deminutum
1882 @code{\deminutum},
1883 @funindex \cavum
1884 @code{\cavum},
1885 @funindex \linea
1886 @code{\linea}.
1887
1888 Head prefixes can be accumulated, though restrictions apply.  For
1889 example, either @code{\descendens} or @code{\ascendens} can be applied
1890 to a head, but not both to the same head.
1891
1892 @funindex \pes
1893 @funindex \flexa
1894 Two adjacent heads can be tied together with the @code{\pes} and
1895 @code{\flexa} infix commands for a rising and falling line of melody,
1896 respectively.
1897
1898 @funindex \augmentum
1899 Use the unary music function @code{\augmentum} to add augmentum dots.
1900
1901 @refbugs
1902
1903 When an @code{\augmentum} dot appears at the end of the last staff
1904 within a ligature, it is sometimes vertically placed wrong.  As a
1905 workaround, add an additional skip note (e.g. @code{s8}) as last note
1906 of the staff.
1907
1908 @code{\augmentum} should be implemented as a head prefix rather than a
1909 unary music function, such that @code{\augmentum} can be intermixed
1910 with head prefixes in arbitrary order.
1911
1912 @node Gregorian Chant contexts
1913 @unnumberedsubsubsec Gregorian Chant contexts
1914
1915 @cindex VaticanaVoiceContext
1916 @cindex VaticanaStaffContext
1917
1918 The predefined @code{VaticanaVoiceContext} and
1919 @code{VaticanaStaffContext} can be used to engrave a piece of
1920 Gregorian Chant in the style of the Editio Vaticana.  These contexts
1921 initialize all relevant context properties and grob properties to
1922 proper values, so you can immediately go ahead entering the chant, as
1923 the following excerpt demonstrates
1924
1925 @lilypond[quote,ragged-right,packed,verbatim]
1926 \include "gregorian-init.ly"
1927 \score {
1928   <<
1929     \new VaticanaVoice = "cantus" {
1930       \[ c'\melisma c' \flexa a \]
1931       \[ a \flexa \deminutum g\melismaEnd \]
1932       f \divisioMinima
1933       \[ f\melisma \pes a c' c' \pes d'\melismaEnd \]
1934       c' \divisioMinima \break
1935       \[ c'\melisma c' \flexa a \]
1936       \[ a \flexa \deminutum g\melismaEnd \] f \divisioMinima
1937     }
1938     \new Lyrics \lyricsto "cantus" {
1939       San- ctus, San- ctus, San- ctus
1940     }
1941   >>
1942 }
1943 @end lilypond
1944
1945
1946 @node Mensural contexts
1947 @unnumberedsubsubsec Mensural contexts
1948
1949 @cindex MensuralVoiceContext
1950 @cindex MensuralStaffContext
1951
1952 The predefined @code{MensuralVoiceContext} and
1953 @code{MensuralStaffContext} can be used to engrave a piece in mensural
1954 style.  These contexts initialize all relevant context properties and
1955 grob properties to proper values, so you can immediately go ahead
1956 entering the chant, as the following excerpt demonstrates
1957
1958 @lilypond[quote,ragged-right,verbatim]
1959 \score {
1960   <<
1961     \new MensuralVoice = "discantus" \transpose c c' {
1962       \override Score.BarNumber #'transparent = ##t {
1963         c'1\melisma bes a g\melismaEnd
1964         f\breve
1965         \[ f1\melisma a c'\breve d'\melismaEnd \]
1966         c'\longa
1967         c'\breve\melisma a1 g1\melismaEnd
1968         fis\longa^\signumcongruentiae
1969       }
1970     }
1971     \new Lyrics \lyricsto "discantus" {
1972       San -- ctus, San -- ctus, San -- ctus
1973     }
1974   >>
1975 }
1976 @end lilypond
1977
1978 @node Musica ficta accidentals
1979 @unnumberedsubsubsec Musica ficta accidentals
1980
1981 In European music from before about 1600, singers were often expected
1982 to chromatically alter notes at their own initiative. This is called
1983 @q{Musica Ficta}. In modern transcriptions, these accidentals are
1984 usually printed over the note.
1985
1986 @cindex Accidental, musica ficta
1987 @cindex Musica ficta
1988
1989 Support for such suggested accidentals is included, and can be
1990 switched on by setting @code{suggestAccidentals} to true.
1991
1992 @funindex suggestAccidentals
1993
1994 @lilypond[verbatim,fragment,relative=1]
1995 fis gis
1996 \set suggestAccidentals = ##t
1997 ais bis
1998 @end lilypond
1999
2000 @seealso
2001
2002 Program reference: @internalsref{Accidental_engraver} engraver and the
2003 @internalsref{AccidentalSuggestion} object.
2004
2005 @node Figured bass
2006 @unnumberedsubsubsec Figured bass
2007
2008 @cindex Basso continuo
2009
2010 @c TODO: musicological blurb about FB
2011
2012
2013 LilyPond has support for figured bass
2014
2015 @lilypond[quote,ragged-right,verbatim,fragment]
2016 <<
2017   \new Voice { \clef bass dis4 c d ais g fis}
2018   \new FiguredBass \figuremode {
2019     < 6 >4 < 7\+ >8 < 6+ [_!] >
2020     < 6 >4 <6 5 [3+] >
2021     < _ >4 < 6 5/>4
2022   }
2023 >>
2024 @end lilypond
2025
2026 The support for figured bass consists of two parts: there is an input
2027 mode, introduced by @code{\figuremode}, where you can enter bass figures
2028 as numbers, and there is a context called @internalsref{FiguredBass} that
2029 takes care of making @internalsref{BassFigure} objects.
2030
2031 In figures input mode, a group of bass figures is delimited by
2032 @code{<} and @code{>}.  The duration is entered after the @code{>}
2033 @example
2034 <4 6>
2035 @end example
2036 @lilypond[quote,ragged-right,fragment]
2037 \new FiguredBass
2038 \figuremode { <4 6> }
2039 @end lilypond
2040
2041 Accidentals are added when you append @code{-}, @code{!}, and @code{+}
2042 to the numbers.  A plus sign is added when you append @code{\+}, and
2043 diminished fifths and sevenths can be obtained with @code{5/} and @code{7/}.
2044
2045 @example
2046 <4- 6+ 7!> <5++> <3--> <7/> r <6\+ 5/>
2047 @end example
2048 @lilypond[quote,ragged-right,fragment]
2049 \figures { <4- 6+ 7!> <5++> <3--> <7/> r <6\+ 5/> }
2050 @end lilypond
2051
2052 Spaces may be inserted by using @code{_}.  Brackets are
2053 introduced with @code{[} and @code{]}. You can also include text
2054 strings and text markups, see @ref{Overview of text markup commands}.
2055
2056 @example
2057 < [4 6] 8 [_! 12] > < 5 \markup @{ \number 6 \super (1) @} >
2058 @end example
2059 @lilypond[quote,ragged-right,fragment]
2060 \new FiguredBass
2061 \figuremode { < [4 6] 8 [_! 12] > < 5 \markup{ \tiny \number 6 \super (1)} > }
2062 @end lilypond
2063
2064
2065 It is also possible to use continuation lines for repeated figures,
2066
2067 @lilypond[verbatim,relative=1]
2068 <<
2069   \new Staff {
2070     \clef bass
2071     c4 c c
2072   }
2073   \figures {
2074     \set useBassFigureExtenders = ##t
2075     <4 6> <3 6> <3 7>
2076   }
2077 >>
2078 @end lilypond
2079
2080 @noindent
2081 In this case, the extender lines always replace existing figures.
2082
2083 The @code{FiguredBass} context doesn't pay attention to the actual
2084 bass line. As a consequence, you may have to insert extra figures to
2085 get extender lines below all notes, and you may have to add @code{\!}
2086 to avoid getting an extender line, e.g.
2087
2088 @lilypond[relative=1]
2089 <<
2090   \new Voice
2091   \figures {
2092     \set useBassFigureExtenders = ##t
2093     <6 4->4. <6 4->16. <6 4->32 <5>8. r16 <6>8 <6\! 5->
2094   }
2095   {
2096     \clef bass
2097     f16. g32 f16. g32 f16. g32 f16. g32 f8. es16 d8 es
2098   }
2099 >>
2100 @end lilypond
2101
2102 When using continuation lines, common figures are always put in the
2103 same vertical position. When this is unwanted, you can insert a rest
2104 with @code{r}. The rest will clear any previous alignment.  For
2105 example, you can write
2106
2107 @example
2108   <4 6>8 r8
2109 @end example
2110
2111 @noindent
2112 instead of
2113 @example
2114   <4 6>4
2115 @end example
2116
2117 Accidentals and plus signs can appear before or after the numbers,
2118 depending on the @code{figuredBassAlterationDirection} and
2119 @code{figuredBassPlusDirection}
2120 properties
2121
2122 @lilypond
2123   \figures {
2124     <6\+> <5+> <6 4-> r
2125     \set figuredBassAlterationDirection = #1
2126     <6\+> <5+> <6 4-> r
2127     \set figuredBassPlusDirection = #1
2128     <6\+> <5+> <6 4-> r
2129     \set figuredBassAlterationDirection = #-1
2130     <6\+> <5+> <6 4-> r
2131   }
2132 @end lilypond
2133
2134
2135 Although the support for figured bass may superficially resemble chord
2136 support, it is much simpler.  The @code{\figuremode} mode simply
2137 stores the numbers and @internalsref{FiguredBass} context prints them
2138 as entered.  There is no conversion to pitches and no realizations of
2139 the bass are played in the MIDI file.
2140
2141 Internally, the code produces markup texts.  You can use any of the
2142 markup text properties to override formatting.  For example, the
2143 vertical spacing of the figures may be set with @code{baseline-skip}.
2144
2145
2146 Figured bass can also be added to @code{Staff} contexts
2147 directly.  In this case, their vertical position is adjusted
2148 automatically.
2149
2150 @lilypond[ragged-right,fragment,quote]
2151 <<
2152   \new Staff = someUniqueName
2153   \relative c'' {
2154     c4 c'8 r8 c,4 c'
2155   }
2156
2157   %% send to existing Staff.
2158   \context Staff = someUniqueName 
2159   \figuremode {
2160     <4>4 <6 10>8 s8
2161     
2162     \set Staff.useBassFigureExtenders = ##t
2163     <4 6>4 <4 6>
2164   }
2165 >>
2166 @end lilypond
2167
2168
2169 @commonprop
2170
2171 By default, this method produces figures above the notes.  To get
2172 figures below the notes, use
2173
2174 @example
2175 \override Staff.BassFigureAlignmentPositioning #'direction = #DOWN
2176 @end example
2177
2178
2179 @refbugs
2180
2181 When using figured bass above the staff with extender lines and
2182 @code{implicitBassFigures} the lines may become swapped around.
2183 Maintaining order consistently will be impossible when multiple figures
2184 have overlapping extender lines.  To avoid this problem, please
2185 use @code{stacking-dir} on @code{BassFigureAlignment}.
2186
2187
2188 @seealso
2189
2190 Program reference: @internalsref{NewBassFigure},
2191 @internalsref{BassFigureAlignment}, @internalsref{BassFigureLine},
2192 @internalsref{BassFigureBracket}, and
2193 @internalsref{BassFigureContinuation} objects and
2194 @internalsref{FiguredBass} context.
2195
2196