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