]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/user/ancient.itely
Merge branch 'master' of ssh+git://git.sv.gnu.org/srv/git/lilypond
[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 @c \version "2.11.38"
10
11 @node Ancient notation
12 @section Ancient notation
13
14 @cindex Vaticana, Editio
15 @cindex Medicaea, Editio
16 @cindex hufnagel
17 @cindex Petrucci
18 @cindex mensural
19
20 Support for ancient notation includes features for mensural notation
21 and Gregorian Chant notation.  There is also limited support for
22 figured bass notation.
23
24 Many graphical objects provide a @code{style} property, see
25 @itemize
26 @item
27 @ref{Ancient note heads},
28 @item
29 @ref{Ancient accidentals},
30 @item
31 @ref{Ancient rests},
32 @item
33 @ref{Ancient clefs},
34 @item
35 @ref{Ancient flags},
36 @item
37 @ref{Ancient time signatures}.
38 @end itemize
39
40 By manipulating such a grob property, the typographical appearance of
41 the affected graphical objects can be accommodated for a specific
42 notation flavor without the need for introducing any new notational
43 concept.
44
45 In addition to the standard articulation signs described in
46 section @ref{Articulations and ornamentations}, specific
47 articulation signs for ancient notation are provided.
48
49 @itemize
50 @item
51 @ref{Ancient articulations}
52 @end itemize
53
54 Other aspects of ancient notation can not that easily be expressed
55 in terms of just changing a style property of a graphical object or
56 adding articulation signs.  Some notational concepts are introduced
57 specifically for ancient notation,
58
59 @itemize
60 @item
61 @ref{Custodes},
62 @item
63 @ref{Divisiones},
64 @item
65 @ref{Ligatures}.
66 @end itemize
67
68 If this all is too much of documentation for you, and you just want to
69 dive into typesetting without worrying too much about the details on
70 how to customize a context, you may have a look at the predefined
71 contexts.  Use them to set up predefined style-specific voice and
72 staff contexts, and directly go ahead with the note entry,
73
74 @itemize
75 @item
76 @ref{Gregorian Chant contexts},
77 @item
78 @ref{Mensural contexts}.
79 @end itemize
80
81 There is limited support for figured bass notation which came
82 up during the baroque period.
83
84 @itemize
85 @item
86 @ref{Figured bass}
87 @end itemize
88
89 @c Here are all subtopics at a glance:
90
91 @menu
92 * Alternative note signs for ancient music::
93 * Additional note signs for ancient music::
94 * Pre-defined contexts::
95 * Musica ficta accidentals::
96 * Figured bass::
97 @end menu
98
99 @node Alternative note signs for ancient music
100 @subsection Alternative note signs for ancient music
101
102 @menu
103 * Ancient note heads::          
104 * Ancient accidentals::         
105 * Ancient rests::               
106 * Ancient clefs::               
107 * Ancient flags::               
108 * Ancient time signatures::     
109 @end menu
110
111 @node Ancient note heads
112 @subsubsection 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 mimics 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 @subsubsection 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   \textLengthOn
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 @c @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 Notation Reference: @ref{Pitches}, @ref{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 Internals Reference: @internalsref{KeySignature}.
219
220 Examples: @c @lsrdir{ancient}
221
222 @node Ancient rests
223 @subsubsection 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 @c @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 Notation Reference: @ref{Rests}, gives a general introduction into the use of
255 rests.
256
257
258 @node Ancient clefs
259 @subsubsection 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 Notation Reference: see @ref{Clef}.
490
491 @knownissues
492
493 The mensural g clef is mapped to the Petrucci g clef.
494
495
496
497 @node Ancient flags
498 @subsubsection 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 @knownissues
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 @subsubsection 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   \textLengthOn
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 @knownissues
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
649 @node Additional note signs for ancient music
650 @subsection Additional note signs for ancient music
651
652 @menu
653 * Ancient articulations::       
654 * Custodes::                    
655 * Divisiones::                  
656 * Ligatures::                   
657 * White mensural ligatures::    
658 * Gregorian square neumes ligatures::  
659 @end menu
660
661
662 @node Ancient articulations
663 @subsubsection Ancient articulations
664
665 @cindex articulations
666
667 In addition to the standard articulation signs described in
668 section @ref{Articulations and ornamentations}, articulation signs
669 for ancient notation are provided.  These are specifically
670 designed for use with notation in Editio Vaticana style.
671
672 @lilypond[quote,ragged-right,verbatim]
673 \include "gregorian-init.ly"
674 \score {
675   \new VaticanaVoice {
676     \override TextScript #'font-family = #'typewriter
677     \override TextScript #'font-shape = #'upright
678     \override Script #'padding = #-0.1
679     a\ictus_"ictus" \break
680     a\circulus_"circulus" \break
681     a\semicirculus_"semicirculus" \break
682     a\accentus_"accentus" \break
683     \[ a_"episem" \episemInitium \pes b \flexa a b \episemFinis \flexa a \]
684   }
685 }
686 @end lilypond
687
688 @knownissues
689
690 Some articulations are vertically placed too closely to the
691 corresponding note heads.
692
693 The episem line is not displayed in many cases.  If it is displayed,
694 the right end of the episem line is often too far to the right.
695
696 @node Custodes
697 @subsubsection Custodes
698
699 @cindex custos
700 @cindex custodes
701
702 A @emph{custos} (plural: @emph{custodes}; Latin word for @q{guard}) is a
703 symbol that appears at the end of a staff.  It anticipates the pitch
704 of the first note(s) of the following line thus helping the performer
705 to manage line breaks during performance.
706
707 Custodes were frequently used in music notation until the 17th
708 century.  Nowadays, they have survived only in a few particular forms
709 of musical notation such as contemporary editions of Gregorian chant
710 like the @emph{editio vaticana}.  There are different custos glyphs
711 used in different flavors of notational style.
712
713 For typesetting custodes, just put a @internalsref{Custos_engraver} into the
714 @internalsref{Staff} context when declaring the @code{\layout} block,
715 as shown in the following example
716
717 @example
718 \layout @{
719   \context @{
720     \Staff
721     \consists Custos_engraver
722     Custos \override #'style = #'mensural
723   @}
724 @}
725 @end example
726
727 The result looks like this
728
729 @lilypond[quote,ragged-right]
730 \score {
731 {
732   a'1
733   \override Staff.Custos #'style = #'mensural
734   \break
735   g'
736 }
737 \layout {
738   \context { \Staff \consists Custos_engraver }
739   }
740 }
741 @end lilypond
742
743 The custos glyph is selected by the @code{style} property.  The styles
744 supported are @code{vaticana}, @code{medicaea}, @code{hufnagel}, and
745 @code{mensural}.  They are demonstrated in the following fragment
746
747 @lilypond[quote,ragged-right,fragment]
748 \new Lyrics \lyricmode {
749   \markup { \column {
750     \typewriter "vaticana"
751     \line { " " \musicglyph #"custodes.vaticana.u0" }
752   } }
753   \markup { \column {
754     \typewriter "medicaea"
755     \line { " " \musicglyph #"custodes.medicaea.u0" }
756   }}
757   \markup { \column {
758     \typewriter "hufnagel"
759     \line { " " \musicglyph #"custodes.hufnagel.u0" }
760   }}
761   \markup { \column {
762     \typewriter "mensural"
763     \line { " " \musicglyph #"custodes.mensural.u0" }
764   }}
765 }
766 @end lilypond
767
768 @seealso
769
770 Internals Reference: @internalsref{Custos}.
771
772 Examples:
773 @c @lsr{ancient,custodes@/.ly}.
774
775
776 @node Divisiones
777 @subsubsection Divisiones
778
779 @cindex divisio
780 @cindex divisiones
781 @cindex finalis
782
783 A @emph{divisio} (plural: @emph{divisiones}; Latin word for
784 @q{division}) is a staff context symbol that is used to structure
785 Gregorian music into phrases and sections.  The musical meaning of
786 @emph{divisio minima}, @emph{divisio maior}, and @emph{divisio maxima}
787 can be characterized as short, medium, and long pause, somewhat like
788 the breathmarks from @ref{Breath marks}.  The @emph{finalis} sign not
789 only marks the end of a chant, but is also frequently used within a
790 single antiphonal/responsorial chant to mark the end of each section.
791
792
793 To use divisiones, include the file @file{gregorian@/-init@/.ly}.  It
794 contains definitions that you can apply by just inserting
795 @code{\divisioMinima}, @code{\divisioMaior}, @code{\divisioMaxima},
796 and @code{\finalis} at proper places in the input.  Some editions use
797 @emph{virgula} or @emph{caesura} instead of divisio minima.
798 Therefore, @file{gregorian@/-init@/.ly} also defines @code{\virgula} and
799 @code{\caesura}
800
801 @lilypondfile[quote,ragged-right]{divisiones.ly}
802
803 @predefined
804
805 @funindex \virgula
806 @code{\virgula},
807 @funindex \caesura
808 @code{\caesura},
809 @funindex \divisioMinima
810 @code{\divisioMinima},
811 @funindex \divisioMaior
812 @code{\divisioMaior},
813 @funindex \divisioMaxima
814 @code{\divisioMaxima},
815 @funindex \finalis
816 @code{\finalis}.
817
818 @seealso
819
820 Notation Reference: @ref{Breath marks}.
821
822 Internals Reference: @internalsref{BreathingSign}.
823
824 Examples: @c @lsr{expressive,breathing-sign.ly}.
825
826
827 @node Ligatures
828 @subsubsection Ligatures
829
830 @cindex Ligatures
831
832 @c TODO: Should double check if I recalled things correctly when I wrote
833 @c down the following paragraph by heart.
834
835 A ligature is a graphical symbol that represents at least two distinct
836 notes.  Ligatures originally appeared in the manuscripts of Gregorian
837 chant notation to denote ascending or descending sequences of notes.
838
839 Ligatures are entered by enclosing them in @code{\[} and @code{\]}.
840 Some ligature styles may need additional input syntax specific for
841 this particular type of ligature.  By default, the
842 @internalsref{LigatureBracket} engraver just puts a square bracket
843 above the ligature
844
845 @lilypond[quote,ragged-right,verbatim]
846 \transpose c c' {
847   \[ g c a f d' \]
848   a g f
849   \[ e f a g \]
850 }
851 @end lilypond
852
853 To select a specific style of ligatures, a proper ligature engraver
854 has to be added to the @internalsref{Voice} context, as explained in
855 the following subsections.   Only white mensural ligatures
856 are supported with certain limitations.
857
858
859
860 @knownissues
861
862 Ligatures need special spacing that has not yet been implemented.  As
863 a result, there is too much space between ligatures most of the time,
864 and line breaking often is unsatisfactory.  Also, lyrics do not
865 correctly align with ligatures.
866
867 Accidentals must not be printed within a ligature, but instead need to
868 be collected and printed in front of it.
869
870 The syntax still uses the deprecated infix style @code{\[ music expr
871 \]}.  For consistency reasons, it will eventually be changed to
872 postfix style @code{note\[ ... note\]}.  Alternatively, the file
873 @file{gregorian@/-init@/.ly} can be included; it provides a scheme
874 function
875 @example
876 \ligature @var{music expr}
877 @end example
878 with the same effect and is believed to be stable.
879
880 @menu
881 * White mensural ligatures::    
882 * Gregorian square neumes ligatures::  
883 @end menu
884
885 @node White mensural ligatures
886 @subsubsection White mensural ligatures
887
888 @cindex Mensural ligatures
889 @cindex White mensural ligatures
890
891 There is limited support for white mensural ligatures.
892
893 To engrave white mensural ligatures, in the layout block put the
894 @internalsref{Mensural_ligature_engraver} into the
895 @internalsref{Voice} context, and remove the
896 @internalsref{Ligature_bracket_engraver}, like this
897
898 @example
899 \layout @{
900   \context @{
901     \Voice
902     \remove Ligature_bracket_engraver
903     \consists Mensural_ligature_engraver
904   @}
905 @}
906 @end example
907
908 There is no additional input language to describe the shape of a
909 white mensural ligature.  The shape is rather determined solely from
910 the pitch and duration of the enclosed notes.  While this approach may
911 take a new user a while to get accustomed to, it has the great advantage
912 that the full musical information of the ligature is known internally.
913 This is not only required for correct MIDI output, but also allows for
914 automatic transcription of the ligatures.
915
916 For example,
917
918 @example
919 \set Score.timing = ##f
920 \set Score.defaultBarType = "empty"
921 \override NoteHead #'style = #'neomensural
922 \override Staff.TimeSignature #'style = #'neomensural
923 \clef "petrucci-g"
924 \[ c'\maxima g \]
925 \[ d\longa c\breve f e d \]
926 \[ c'\maxima d'\longa \]
927 \[ e'1 a g\breve \]
928 @end example
929 @lilypond[quote,ragged-right]
930 \score {
931   \transpose c c' {
932     \set Score.timing = ##f
933     \set Score.defaultBarType = "empty"
934     \override NoteHead #'style = #'neomensural
935     \override Staff.TimeSignature #'style = #'neomensural
936     \clef "petrucci-g"
937     \[ c'\maxima g \]
938     \[ d\longa c\breve f e d \]
939     \[ c'\maxima d'\longa \]
940     \[ e'1 a g\breve \]
941   }
942   \layout {
943     \context {
944       \Voice
945       \remove Ligature_bracket_engraver
946       \consists Mensural_ligature_engraver
947     }
948   }
949 }
950 @end lilypond
951
952 Without replacing @internalsref{Ligature_bracket_engraver} with
953 @internalsref{Mensural_ligature_engraver}, the same music transcribes
954 to the following
955
956 @lilypond[quote,ragged-right]
957 \transpose c c' {
958   \set Score.timing = ##f
959   \set Score.defaultBarType = "empty"
960   \override NoteHead #'style = #'neomensural
961   \override Staff.TimeSignature #'style = #'neomensural
962   \clef "petrucci-g"
963   \[ c'\maxima g \]
964   \[ d\longa c\breve f e d \]
965   \[ c'\maxima d'\longa \]
966   \[ e'1 a g\breve \]
967 }
968 @end lilypond
969
970 @knownissues
971
972 Horizontal spacing is poor.
973
974 @node Gregorian square neumes ligatures
975 @subsubsection Gregorian square neumes ligatures
976
977 @cindex Square neumes ligatures
978 @cindex Gregorian square neumes ligatures
979
980 There is limited support for Gregorian square neumes notation
981 (following the style of the Editio Vaticana).  Core ligatures can
982 already be typeset, but essential issues for serious typesetting are
983 still lacking, such as (among others) horizontal alignment of multiple
984 ligatures, lyrics alignment and proper handling of accidentals.
985
986
987 The following table contains the extended neumes table of the 2nd
988 volume of the Antiphonale Romanum (@emph{Liber Hymnarius}), published
989 1983 by the monks of Solesmes.
990
991 @multitable @columnfractions .4 .2 .2 .2
992
993 @item
994 @b{Neuma aut@*
995 Neumarum Elementa}
996 @tab
997 @b{Figurae@*
998 Rectae}
999 @tab
1000 @b{Figurae@*
1001 Liquescentes@*
1002 Auctae}
1003 @tab
1004 @b{Figurae@*
1005 Liquescentes@*
1006 Deminutae}
1007
1008 @c TODO: \layout block is identical in all of the below examples.
1009 @c Therefore, it should somehow be included rather than duplicated all
1010 @c the time. --jr
1011
1012 @c why not make variables in ly/engraver-init.ly? --hwn
1013
1014 @c Because it's just used to typeset plain notes without
1015 @c a staff for demonstration purposes rather than something
1016 @c special of Gregorian chant notation. --jr
1017
1018 @item
1019 @code{1. Punctum}
1020 @tab
1021 @lilypond[staffsize=26,line-width=1.5\cm]
1022 \include "gregorian-init.ly"
1023 \score {
1024   \transpose c c' {
1025     % Punctum
1026     \[ b \]
1027     \noBreak s^\markup {"a"} \noBreak
1028
1029     % Punctum Inclinatum
1030     \[ \inclinatum b \]
1031     \noBreak s^\markup {"b"}
1032   }
1033 \layout { \neumeDemoLayout }}
1034 @end lilypond
1035 @tab
1036 @lilypond[staffsize=26,line-width=2.5\cm]
1037 \include "gregorian-init.ly"
1038 \score {
1039   \transpose c c' {
1040     % Punctum Auctum Ascendens
1041     \[ \auctum \ascendens b \]
1042     \noBreak s^\markup {"c"} \noBreak
1043
1044     % Punctum Auctum Descendens
1045     \[ \auctum \descendens b \]
1046     \noBreak s^\markup {"d"} \noBreak
1047
1048     % Punctum Inclinatum Auctum
1049     \[ \inclinatum \auctum b \]
1050     \noBreak s^\markup {"e"}
1051   }
1052 \layout { \neumeDemoLayout }}
1053 @end lilypond
1054 @tab
1055 @lilypond[staffsize=26,line-width=1.0\cm]
1056 \include "gregorian-init.ly"
1057 \score {
1058   \transpose c c' {
1059     % Punctum Inclinatum Parvum
1060     \[ \inclinatum \deminutum b \]
1061     \noBreak s^\markup {"f"}
1062   }
1063 \layout { \neumeDemoLayout }}
1064 @end lilypond
1065
1066 @item
1067 @code{2. Virga}
1068 @tab
1069 @lilypond[staffsize=26,line-width=1.0\cm]
1070 \include "gregorian-init.ly"
1071 \score {
1072   \transpose c c' {
1073     % Virga
1074     \[ \virga b \]
1075     \noBreak s^\markup {"g"}
1076   }
1077 \layout { \neumeDemoLayout }}
1078 @end lilypond
1079 @tab
1080 @tab
1081
1082 @item
1083 @code{3. Apostropha vel Stropha}
1084 @tab
1085 @lilypond[staffsize=26,line-width=1.0\cm]
1086 \include "gregorian-init.ly"
1087 \score {
1088   \transpose c c' {
1089     % Stropha
1090     \[ \stropha b \]
1091     \noBreak s^\markup {"h"}
1092   }
1093 \layout { \neumeDemoLayout }}
1094 @end lilypond
1095 @tab
1096 @lilypond[staffsize=26,line-width=1.0\cm]
1097 \include "gregorian-init.ly"
1098 \score {
1099   \transpose c c' {
1100     % Stropha Aucta
1101     \[ \stropha \auctum b \]
1102     \noBreak s^\markup {"i"}
1103   }
1104 \layout { \neumeDemoLayout }}
1105 @end lilypond
1106 @tab
1107
1108 @item
1109 @code{4. Oriscus}
1110 @tab
1111 @lilypond[staffsize=26,line-width=1.0\cm]
1112 \include "gregorian-init.ly"
1113 \score {
1114   \transpose c c' {
1115     % Oriscus
1116     \[ \oriscus b \]
1117     \noBreak s^\markup {"j"}
1118   }
1119 \layout { \neumeDemoLayout }}
1120 @end lilypond
1121 @tab
1122 @tab
1123
1124 @item
1125 @code{5. Clivis vel Flexa}
1126 @tab
1127 @lilypond[staffsize=26,line-width=1.0\cm]
1128 \include "gregorian-init.ly"
1129 \score {
1130   \transpose c c' {
1131     % Clivis vel Flexa
1132     \[ b \flexa g \]
1133     s^\markup {"k"}
1134   }
1135 \layout { \neumeDemoLayout }}
1136 @end lilypond
1137 @tab
1138 @lilypond[staffsize=26,line-width=2.0\cm]
1139 \include "gregorian-init.ly"
1140 \score {
1141   \transpose c c' {
1142     % Clivis Aucta Descendens
1143     \[ b \flexa \auctum \descendens g \]
1144     \noBreak s^\markup {"l"} \noBreak
1145
1146     % Clivis Aucta Ascendens
1147     \[ b \flexa \auctum \ascendens g \]
1148     \noBreak s^\markup {"m"}
1149   }
1150 \layout { \neumeDemoLayout }}
1151 @end lilypond
1152 @tab
1153 @lilypond[staffsize=26,line-width=1.0\cm]
1154 \include "gregorian-init.ly"
1155 \score {
1156   \transpose c c' {
1157     % Cephalicus
1158     \[ b \flexa \deminutum g \]
1159     s^\markup {"n"}
1160   }
1161 \layout { \neumeDemoLayout }}
1162 @end lilypond
1163
1164 @item
1165 @code{6. Podatus vel Pes}
1166 @tab
1167 @lilypond[staffsize=26,line-width=1.0\cm]
1168 \include "gregorian-init.ly"
1169 \score {
1170   \transpose c c' {
1171     % Podatus vel Pes
1172     \[ g \pes b \]
1173     s^\markup {"o"}
1174   }
1175 \layout { \neumeDemoLayout }}
1176 @end lilypond
1177 @tab
1178 @lilypond[staffsize=26,line-width=2.0\cm]
1179 \include "gregorian-init.ly"
1180 \score {
1181   \transpose c c' {
1182     % Pes Auctus Descendens
1183     \[ g \pes \auctum \descendens b \]
1184     \noBreak s^\markup {"p"} \noBreak
1185
1186     % Pes Auctus Ascendens
1187     \[ g \pes \auctum \ascendens b \]
1188     \noBreak s^\markup {"q"}
1189   }
1190 \layout { \neumeDemoLayout }}
1191 @end lilypond
1192 @tab
1193 @lilypond[staffsize=26,line-width=1.0\cm]
1194 \include "gregorian-init.ly"
1195 \score {
1196   \transpose c c' {
1197     % Epiphonus
1198     \[ g \pes \deminutum b \]
1199     s^\markup {"r"}
1200   }
1201 \layout { \neumeDemoLayout }}
1202 @end lilypond
1203
1204 @item
1205 @code{7. Pes Quassus}
1206 @tab
1207 @lilypond[staffsize=26,line-width=1.0\cm]
1208 \include "gregorian-init.ly"
1209 \score {
1210   \transpose c c' {
1211     % Pes Quassus
1212     \[ \oriscus g \pes \virga b \]
1213     s^\markup {"s"}
1214   }
1215 \layout { \neumeDemoLayout }}
1216 @end lilypond
1217 @tab
1218 @lilypond[staffsize=26,line-width=1.0\cm]
1219 \include "gregorian-init.ly"
1220 \score {
1221   \transpose c c' {
1222     % Pes Quassus Auctus Descendens
1223     \[ \oriscus g \pes \auctum \descendens b \]
1224     s^\markup {"t"}
1225   }
1226 \layout { \neumeDemoLayout }}
1227 @end lilypond
1228 @tab
1229
1230 @item
1231 @code{8. Quilisma Pes}
1232 @tab
1233 @lilypond[staffsize=26,line-width=1.0\cm]
1234 \include "gregorian-init.ly"
1235 \score {
1236   \transpose c c' {
1237     % Quilisma Pes
1238     \[ \quilisma g \pes b \]
1239     s^\markup {"u"}
1240   }
1241 \layout { \neumeDemoLayout }}
1242 @end lilypond
1243 @tab
1244 @lilypond[staffsize=26,line-width=1.0\cm]
1245 \include "gregorian-init.ly"
1246 \score {
1247   \transpose c c' {
1248     % Quilisma Pes Auctus Descendens
1249     \[ \quilisma g \pes \auctum \descendens b \]
1250     s^\markup {"v"}
1251   }
1252 \layout { \neumeDemoLayout }}
1253 @end lilypond
1254 @tab
1255
1256 @item
1257 @code{9. Podatus Initio Debilis}
1258 @tab
1259 @lilypond[staffsize=26,line-width=1.0\cm]
1260 \include "gregorian-init.ly"
1261 \score {
1262   \transpose c c' {
1263     % Pes Initio Debilis
1264     \[ \deminutum g \pes b \]
1265     s^\markup {"w"}
1266   }
1267 \layout { \neumeDemoLayout }}
1268 @end lilypond
1269 @tab
1270 @lilypond[staffsize=26,line-width=1.0\cm]
1271 \include "gregorian-init.ly"
1272 \score {
1273   \transpose c c' {
1274     % Pes Auctus Descendens Initio Debilis
1275     \[ \deminutum g \pes \auctum \descendens b \]
1276     s^\markup {"x"}
1277   }
1278 \layout { \neumeDemoLayout }}
1279 @end lilypond
1280 @tab
1281
1282 @item
1283 @code{10. Torculus}
1284 @tab
1285 @lilypond[staffsize=26,line-width=1.0\cm]
1286 \include "gregorian-init.ly"
1287 \score {
1288   \transpose c c' {
1289     % Torculus
1290     \[ a \pes b \flexa g \]
1291     s^\markup {"y"}
1292   }
1293 \layout { \neumeDemoLayout }}
1294 @end lilypond
1295 @tab
1296 @lilypond[staffsize=26,line-width=1.0\cm]
1297 \include "gregorian-init.ly"
1298 \score {
1299   \transpose c c' {
1300     % Torculus Auctus Descendens
1301     \[ a \pes b \flexa \auctum \descendens g \]
1302     s^\markup {"z"}
1303   }
1304 \layout { \neumeDemoLayout }}
1305 @end lilypond
1306 @tab
1307 @lilypond[staffsize=26,line-width=1.0\cm]
1308 \include "gregorian-init.ly"
1309 \score {
1310   \transpose c c' {
1311     % Torculus Deminutus
1312     \[ a \pes b \flexa \deminutum g \]
1313     s^\markup {"A"}
1314   }
1315 \layout { \neumeDemoLayout }}
1316 @end lilypond
1317
1318 @item
1319 @code{11. Torculus Initio Debilis}
1320 @tab
1321 @lilypond[staffsize=26,line-width=1.0\cm]
1322 \include "gregorian-init.ly"
1323 \score {
1324   \transpose c c' {
1325     % Torculus Initio Debilis
1326     \[ \deminutum a \pes b \flexa g \]
1327     s^\markup {"B"}
1328   }
1329 \layout { \neumeDemoLayout }}
1330 @end lilypond
1331 @tab
1332 @lilypond[staffsize=26,line-width=1.0\cm]
1333 \include "gregorian-init.ly"
1334 \score {
1335   \transpose c c' {
1336     % Torculus Auctus Descendens Initio Debilis
1337     \[ \deminutum a \pes b \flexa \auctum \descendens g \]
1338     s^\markup {"C"}
1339   }
1340 \layout { \neumeDemoLayout }}
1341 @end lilypond
1342 @tab
1343 @lilypond[staffsize=26,line-width=1.0\cm]
1344 \include "gregorian-init.ly"
1345 \score {
1346   \transpose c c' {
1347     % Torculus Deminutus Initio Debilis
1348     \[ \deminutum a \pes b \flexa \deminutum g \]
1349     s^\markup {"D"}
1350   }
1351 \layout { \neumeDemoLayout }}
1352 @end lilypond
1353
1354 @item
1355 @code{12. Porrectus}
1356 @tab
1357 @lilypond[staffsize=26,line-width=1.0\cm]
1358 \include "gregorian-init.ly"
1359 \score {
1360   \transpose c c' {
1361     % Porrectus
1362     \[ a \flexa g \pes b \]
1363     s^\markup {"E"}
1364   }
1365 \layout { \neumeDemoLayout }}
1366 @end lilypond
1367 @tab
1368 @lilypond[staffsize=26,line-width=1.0\cm]
1369 \include "gregorian-init.ly"
1370 \score {
1371   \transpose c c' {
1372     % Porrectus Auctus Descendens
1373     \[ a \flexa g \pes \auctum \descendens b \]
1374     s^\markup {"F"}
1375   }
1376 \layout { \neumeDemoLayout }}
1377 @end lilypond
1378 @tab
1379 @lilypond[staffsize=26,line-width=1.0\cm]
1380 \include "gregorian-init.ly"
1381 \score {
1382   \transpose c c' {
1383     % Porrectus Deminutus
1384     \[ a \flexa g \pes \deminutum b \]
1385     s^\markup {"G"}
1386   }
1387 \layout { \neumeDemoLayout }}
1388 @end lilypond
1389
1390 @item
1391 @code{13. Climacus}
1392 @tab
1393 @lilypond[staffsize=26,line-width=1.0\cm]
1394 \include "gregorian-init.ly"
1395 \score {
1396   \transpose c c' {
1397     % Climacus
1398     \[ \virga b \inclinatum a \inclinatum g \]
1399     s^\markup {"H"}
1400   }
1401   \layout { \neumeDemoLayout }
1402 }
1403 @end lilypond
1404 @tab
1405 @lilypond[staffsize=26,line-width=1.0\cm]
1406 \include "gregorian-init.ly"
1407 \score {
1408   \transpose c c' {
1409     % Climacus Auctus
1410     \[ \virga b \inclinatum a \inclinatum \auctum g \]
1411     s^\markup {"I"}
1412   }
1413 \layout { \neumeDemoLayout }}
1414 @end lilypond
1415 @tab
1416 @lilypond[staffsize=26,line-width=1.0\cm]
1417 \include "gregorian-init.ly"
1418 \score {
1419   \transpose c c' {
1420     % Climacus Deminutus
1421     \[ \virga b \inclinatum a \inclinatum \deminutum g \]
1422     s^\markup {"J"}
1423   }
1424 \layout { \neumeDemoLayout }}
1425 @end lilypond
1426
1427 @item
1428 @code{14. Scandicus}
1429 @tab
1430 @lilypond[staffsize=26,line-width=1.0\cm]
1431 \include "gregorian-init.ly"
1432 \score {
1433   \transpose c c' {
1434     % Scandicus
1435     \[ g \pes a \virga b \]
1436     s^\markup {"K"}
1437   }
1438 \layout { \neumeDemoLayout }}
1439 @end lilypond
1440 @tab
1441 @lilypond[staffsize=26,line-width=1.0\cm]
1442 \include "gregorian-init.ly"
1443 \score {
1444   \transpose c c' {
1445     % Scandicus Auctus Descendens
1446     \[ g \pes a \pes \auctum \descendens b \]
1447     s^\markup {"L"}
1448   }
1449 \layout { \neumeDemoLayout }}
1450 @end lilypond
1451 @tab
1452 @lilypond[staffsize=26,line-width=1.0\cm]
1453 \include "gregorian-init.ly"
1454 \score {
1455   \transpose c c' {
1456     % Scandicus Deminutus
1457     \[ g \pes a \pes \deminutum b \]
1458     s^\markup {"M"}
1459   }
1460 \layout { \neumeDemoLayout }}
1461 @end lilypond
1462
1463 @item
1464 @code{15. Salicus}
1465 @tab
1466 @lilypond[staffsize=26,line-width=1.0\cm]
1467 \include "gregorian-init.ly"
1468 \score {
1469   \transpose c c' {
1470     % Salicus
1471     \[ g \oriscus a \pes \virga b \]
1472     s^\markup {"N"}
1473   }
1474 \layout { \neumeDemoLayout }}
1475 @end lilypond
1476 @tab
1477 @lilypond[staffsize=26,line-width=1.0\cm]
1478 \include "gregorian-init.ly"
1479 \score {
1480   \transpose c c' {
1481     % Salicus Auctus Descendens
1482     \[ g \oriscus a \pes \auctum \descendens b \]
1483     s^\markup {"O"}
1484   }
1485 \layout { \neumeDemoLayout }}
1486 @end lilypond
1487 @tab
1488
1489 @item
1490 @code{16. Trigonus}
1491 @tab
1492 @lilypond[staffsize=26,line-width=1.0\cm]
1493 \include "gregorian-init.ly"
1494 \score {
1495   \transpose c c' {
1496     % Trigonus
1497     \[ \stropha b \stropha b \stropha a \]
1498     s^\markup {"P"}
1499   }
1500   \layout { \neumeDemoLayout }
1501 }
1502 @end lilypond
1503 @tab
1504 @tab
1505
1506 @end multitable
1507
1508
1509 Unlike most other neumes notation systems, the input language for
1510 neumes does not reflect the typographical appearance, but is designed
1511 to focus on musical meaning.  For example, @code{\[ a \pes b
1512 \flexa g \]} produces a Torculus consisting of three Punctum heads,
1513 while @code{\[ a \flexa g \pes b \]} produces a Porrectus with a
1514 curved flexa shape and only a single Punctum head.  There is no
1515 command to explicitly typeset the curved flexa shape; the decision of
1516 when to typeset a curved flexa shape is based on the musical
1517 input.  The idea of this approach is to separate the musical aspects
1518 of the input from the notation style of the output.  This way, the
1519 same input can be reused to typeset the same music in a different
1520 style of Gregorian chant notation.
1521
1522 The following table shows the code fragments that produce the
1523 ligatures in the above neumes table.  The letter in the first column
1524 in each line of the below table indicates to which ligature in the
1525 above table it refers.  The second column gives the name of the
1526 ligature.  The third column shows the code fragment that produces this
1527 ligature, using @code{g}, @code{a}, and @code{b} as example pitches.
1528
1529 @multitable @columnfractions .02 .31 .67
1530 @item
1531 @b{#}
1532 @tab
1533 @b{Name}
1534 @tab
1535 @b{Input Language}
1536
1537 @item
1538 a
1539 @tab
1540 Punctum
1541 @tab
1542 @code{\[ b \]}
1543
1544 @item
1545 b
1546 @tab
1547 Punctum Inclinatum
1548 @tab
1549 @code{\[ \inclinatum b \]}
1550
1551 @item
1552 c
1553 @tab
1554 Punctum Auctum@*
1555 Ascendens
1556 @tab
1557 @code{\[ \auctum \ascendens b \]}
1558
1559 @item
1560 d
1561 @tab
1562 Punctum Auctum@*
1563 Descendens
1564 @tab
1565 @code{\[ \auctum \descendens b \]}
1566
1567 @item
1568 e
1569 @tab
1570 Punctum Inclinatum@*
1571 Auctum
1572 @tab
1573 @code{\[ \inclinatum \auctum b \]}
1574
1575 @item
1576 f
1577 @tab
1578 Punctum Inclinatum@*
1579 Parvum @tab
1580 @code{\[ \inclinatum \deminutum b \]}
1581
1582 @item
1583 g
1584 @tab
1585 Virga
1586 @tab
1587 @code{\[ \virga b \]}
1588
1589 @item
1590 h
1591 @tab
1592 Stropha
1593 @tab
1594 @code{\[ \stropha b \]}
1595
1596 @item
1597 i
1598 @tab
1599 Stropha Aucta
1600 @tab
1601 @code{\[ \stropha \auctum b \]}
1602
1603 @item
1604 j
1605 @tab
1606 Oriscus
1607 @tab
1608 @code{\[ \oriscus b \]}
1609
1610 @item
1611 k
1612 @tab
1613 Clivis vel Flexa
1614 @tab
1615 @code{\[ b \flexa g \]}
1616
1617 @item
1618 l
1619 @tab
1620 Clivis Aucta@*
1621 Descendens
1622 @tab
1623 @code{\[ b \flexa \auctum \descendens g \]}
1624
1625 @item
1626 m
1627 @tab
1628 Clivis Aucta@*
1629 Ascendens
1630 @tab
1631 @code{\[ b \flexa \auctum \ascendens g \]}
1632
1633 @item
1634 n
1635 @tab
1636 Cephalicus
1637 @tab
1638 @code{\[ b \flexa \deminutum g \]}
1639
1640 @item
1641 o
1642 @tab
1643 Podatus vel Pes
1644 @tab
1645 @code{\[ g \pes b \]}
1646
1647 @item
1648 p
1649 @tab
1650 Pes Auctus@*
1651 Descendens
1652 @tab
1653 @code{\[ g \pes \auctum \descendens b \]}
1654
1655 @item
1656 q
1657 @tab
1658 Pes Auctus@*
1659 Ascendens
1660 @tab
1661 @code{\[ g \pes \auctum \ascendens b \]}
1662
1663 @item
1664 r
1665 @tab
1666 Epiphonus
1667 @tab
1668 @code{\[ g \pes \deminutum b \]}
1669
1670 @item
1671 s
1672 @tab
1673 Pes Quassus
1674 @tab
1675 @code{\[ \oriscus g \pes \virga b \]}
1676
1677 @item
1678 t
1679 @tab
1680 Pes Quassus@*
1681 Auctus Descendens @tab
1682 @code{\[ \oriscus g \pes \auctum \descendens b \]}
1683
1684 @item
1685 u
1686 @tab
1687 Quilisma Pes
1688 @tab
1689 @code{\[ \quilisma g \pes b \]}
1690
1691 @item
1692 v
1693 @tab
1694 Quilisma Pes@*
1695 Auctus Descendens
1696 @tab
1697 @code{\[ \quilisma g \pes \auctum \descendens b \]}
1698
1699 @item
1700 w
1701 @tab
1702 Pes Initio Debilis
1703 @tab
1704 @code{\[ \deminutum g \pes b \]}
1705
1706 @item
1707 x
1708 @tab
1709 Pes Auctus Descendens@*
1710 Initio Debilis
1711 @tab
1712 @code{\[ \deminutum g \pes \auctum \descendens b \]}
1713
1714 @item
1715 y
1716 @tab
1717 Torculus
1718 @tab
1719 @code{\[ a \pes b \flexa g \]}
1720
1721 @item
1722 z
1723 @tab
1724 Torculus Auctus@*
1725 Descendens
1726 @tab
1727 @code{\[ a \pes b \flexa \auctum \descendens g \]}
1728
1729 @item
1730 A
1731 @tab
1732 Torculus Deminutus
1733 @tab
1734 @code{\[ a \pes b \flexa \deminutum g \]}
1735
1736 @item
1737 B
1738 @tab
1739 Torculus Initio Debilis
1740 @tab
1741 @code{\[ \deminutum a \pes b \flexa g \]}
1742
1743 @item
1744 C
1745 @tab
1746 Torculus Auctus@*
1747 Descendens Initio Debilis
1748 @tab
1749 @code{\[ \deminutum a \pes b \flexa \auctum \descendens g \]}
1750
1751 @item
1752 D
1753 @tab
1754 Torculus Deminutus@*
1755 Initio Debilis
1756 @tab
1757 @code{\[ \deminutum a \pes b \flexa \deminutum g \]}
1758
1759 @item
1760 E
1761 @tab
1762 Porrectus
1763 @tab
1764 @code{\[ a \flexa g \pes b \]}
1765
1766 @item
1767 F
1768 @tab
1769 Porrectus Auctus@*
1770 Descendens
1771 @tab
1772 @code{\[ a \flexa g \pes \auctum \descendens b \]}
1773
1774 @item
1775 G
1776 @tab
1777 Porrectus Deminutus
1778 @tab
1779 @code{\[ a \flexa g \pes \deminutum b \]}
1780
1781 @item
1782 H
1783 @tab
1784 Climacus
1785 @tab
1786 @code{\[ \virga b \inclinatum a \inclinatum g \]}
1787
1788 @item
1789 I
1790 @tab
1791 Climacus Auctus
1792 @tab
1793 @code{\[ \virga b \inclinatum a \inclinatum \auctum g \]}
1794
1795 @item
1796 J
1797 @tab
1798 Climacus Deminutus
1799 @tab
1800 @code{\[ \virga b \inclinatum a \inclinatum \deminutum g \]}
1801
1802 @item
1803 K
1804 @tab
1805 Scandicus
1806 @tab
1807 @code{\[ g \pes a \virga b \]}
1808
1809 @item
1810 L
1811 @tab
1812 Scandicus Auctus@*
1813 Descendens
1814 @tab
1815 @code{\[ g \pes a \pes \auctum \descendens b \]}
1816
1817 @item
1818 M
1819 @tab
1820 Scandicus Deminutus
1821 @tab
1822 @code{\[ g \pes a \pes \deminutum b \]}
1823
1824 @item
1825 N
1826 @tab
1827 Salicus
1828 @tab
1829 @code{\[ g \oriscus a \pes \virga b \]}
1830
1831 @item
1832 O
1833 @tab
1834 Salicus Auctus Descendens
1835 @tab
1836 @code{\[ g \oriscus a \pes \auctum \descendens b \]}
1837
1838 @item
1839 P
1840 @tab
1841 Trigonus
1842 @tab
1843 @code{\[ \stropha b \stropha b \stropha a \]}
1844 @end multitable
1845
1846 The ligatures listed above mainly serve as a limited, but still
1847 representative pool of Gregorian ligature examples.  Virtually, within
1848 the ligature delimiters @code{\[} and @code{\]}, any number of heads
1849 may be accumulated to form a single ligature, and head prefixes like
1850 @code{\pes}, @code{\flexa}, @code{\virga}, @code{\inclinatum},
1851 etc. may be mixed in as desired.  The use of the set of rules that
1852 underlies the construction of the ligatures in the above table is
1853 accordingly extrapolated.  This way, infinitely many different
1854 ligatures can be created.
1855
1856 Augmentum dots, also called @emph{morae}, are added with the music
1857 function @code{\augmentum}.  Note that @code{\augmentum} is
1858 implemented as a unary music function rather than as head prefix.  It
1859 applies to the immediately following music expression only.  That is,
1860 @code{\augmentum \virga c} will have no visible effect.  Instead, say
1861 @code{\virga \augmentum c} or @code{\augmentum @{\virga c@}}.  Also
1862 note that you can say @code{\augmentum @{a g@}} as a shortcut for
1863 @code{\augmentum a \augmentum g}.
1864
1865 @lilypond[quote,ragged-right,verbatim]
1866 \include "gregorian-init.ly"
1867 \score {
1868   \new VaticanaVoice {
1869     \[ \augmentum a \flexa \augmentum g \]
1870     \augmentum g
1871   }
1872 }
1873 @end lilypond
1874
1875 @predefined
1876
1877 The following head prefixes are supported
1878
1879 @funindex \virga
1880 @code{\virga},
1881 @funindex \stropha
1882 @code{\stropha},
1883 @funindex \inclinatum
1884 @code{\inclinatum},
1885 @funindex \auctum
1886 @code{\auctum},
1887 @funindex \descendens
1888 @code{\descendens},
1889 @funindex \ascendens
1890 @code{\ascendens},
1891 @funindex \oriscus
1892 @code{\oriscus},
1893 @funindex \quilisma
1894 @code{\quilisma},
1895 @funindex \deminutum
1896 @code{\deminutum},
1897 @funindex \cavum
1898 @code{\cavum},
1899 @funindex \linea
1900 @code{\linea}.
1901
1902 Head prefixes can be accumulated, though restrictions apply.  For
1903 example, either @code{\descendens} or @code{\ascendens} can be applied
1904 to a head, but not both to the same head.
1905
1906 @funindex \pes
1907 @funindex \flexa
1908 Two adjacent heads can be tied together with the @code{\pes} and
1909 @code{\flexa} infix commands for a rising and falling line of melody,
1910 respectively.
1911
1912 @funindex \augmentum
1913 Use the unary music function @code{\augmentum} to add augmentum dots.
1914
1915 @knownissues
1916
1917 When an @code{\augmentum} dot appears at the end of the last staff
1918 within a ligature, it is sometimes vertically placed wrong.  As a
1919 workaround, add an additional skip note (e.g. @code{s8}) as last note
1920 of the staff.
1921
1922 @code{\augmentum} should be implemented as a head prefix rather than a
1923 unary music function, such that @code{\augmentum} can be intermixed
1924 with head prefixes in arbitrary order.
1925
1926
1927 @node Pre-defined contexts
1928 @subsection Pre-defined contexts
1929
1930 @menu
1931 * Gregorian Chant contexts::    
1932 * Mensural contexts::           
1933 @end menu
1934
1935
1936 @node Gregorian Chant contexts
1937 @subsubsection Gregorian Chant contexts
1938
1939 @cindex VaticanaVoiceContext
1940 @cindex VaticanaStaffContext
1941
1942 The predefined @code{VaticanaVoiceContext} and
1943 @code{VaticanaStaffContext} can be used to engrave a piece of
1944 Gregorian Chant in the style of the Editio Vaticana.  These contexts
1945 initialize all relevant context properties and grob properties to
1946 proper values, so you can immediately go ahead entering the chant, as
1947 the following excerpt demonstrates
1948
1949 @lilypond[quote,ragged-right,packed,verbatim]
1950 \include "gregorian-init.ly"
1951 \score {
1952   <<
1953     \new VaticanaVoice = "cantus" {
1954       \[ c'\melisma c' \flexa a \]
1955       \[ a \flexa \deminutum g\melismaEnd \]
1956       f \divisioMinima
1957       \[ f\melisma \pes a c' c' \pes d'\melismaEnd \]
1958       c' \divisioMinima \break
1959       \[ c'\melisma c' \flexa a \]
1960       \[ a \flexa \deminutum g\melismaEnd \] f \divisioMinima
1961     }
1962     \new Lyrics \lyricsto "cantus" {
1963       San- ctus, San- ctus, San- ctus
1964     }
1965   >>
1966 }
1967 @end lilypond
1968
1969
1970 @node Mensural contexts
1971 @subsubsection Mensural contexts
1972
1973 @cindex MensuralVoiceContext
1974 @cindex MensuralStaffContext
1975
1976 The predefined @code{MensuralVoiceContext} and
1977 @code{MensuralStaffContext} can be used to engrave a piece in
1978 mensural style.  These contexts initialize all relevant context
1979 properties and grob properties to proper values, so you can
1980 immediately go ahead entering the chant, as the following excerpt
1981 demonstrates
1982
1983 @lilypond[quote,ragged-right,verbatim]
1984 \score {
1985   <<
1986     \new MensuralVoice = "discantus" \transpose c c' {
1987       \override Score.BarNumber #'transparent = ##t {
1988         c'1\melisma bes a g\melismaEnd
1989         f\breve
1990         \[ f1\melisma a c'\breve d'\melismaEnd \]
1991         c'\longa
1992         c'\breve\melisma a1 g1\melismaEnd
1993         fis\longa^\signumcongruentiae
1994       }
1995     }
1996     \new Lyrics \lyricsto "discantus" {
1997       San -- ctus, San -- ctus, San -- ctus
1998     }
1999   >>
2000 }
2001 @end lilypond
2002
2003 @node Musica ficta accidentals
2004 @subsection Musica ficta accidentals
2005
2006 In European music from before about 1600, singers were often
2007 expected to chromatically alter notes at their own initiative.
2008 This is called @q{Musica Ficta}.  In modern transcriptions, these
2009 accidentals are usually printed over the note.
2010
2011 @cindex Accidental, musica ficta
2012 @cindex Musica ficta
2013
2014 Support for such suggested accidentals is included, and can be
2015 switched on by setting @code{suggestAccidentals} to true.
2016
2017 @funindex suggestAccidentals
2018
2019 @lilypond[verbatim,fragment,relative=1]
2020 fis gis
2021 \set suggestAccidentals = ##t
2022 ais bis
2023 @end lilypond
2024
2025 This will treat @emph{every} subsequent accidentals as
2026 @emph{musica ficta} until it is unset with @code{\set
2027 suggestAccidentals = ##f}.  A more convenient way is to use
2028 @code{\once}:
2029
2030 @lilypond[verbatim,fragment,relative=1]
2031 fis gis
2032 \once \set suggestAccidentals = ##t
2033 ais ais bis
2034 @end lilypond
2035
2036 @seealso
2037
2038 Internals Reference: @internalsref{Accidental_engraver} engraver and
2039 the @internalsref{AccidentalSuggestion} object.
2040
2041 @node Figured bass
2042 @subsection Figured bass
2043
2044 @cindex Basso continuo
2045
2046 @c TODO: musicological blurb about FB
2047
2048
2049 LilyPond has support for figured bass
2050
2051 @lilypond[quote,ragged-right,verbatim,fragment]
2052 <<
2053   \new Voice { \clef bass dis4 c d ais g fis}
2054   \new FiguredBass \figuremode {
2055     < 6 >4 < 7\+ >8 < 6+ [_!] >
2056     < 6 >4 <6 5 [3+] >
2057     < _ >4 < 6 5/>4
2058   }
2059 >>
2060 @end lilypond
2061
2062 The support for figured bass consists of two parts: there is an input
2063 mode, introduced by @code{\figuremode}, where you can enter bass figures
2064 as numbers, and there is a context called @internalsref{FiguredBass} that
2065 takes care of making @internalsref{BassFigure} objects.
2066
2067 In figures input mode, a group of bass figures is delimited by
2068 @code{<} and @code{>}.  The duration is entered after the @code{>}
2069 @example
2070 <4 6>
2071 @end example
2072 @lilypond[quote,ragged-right,fragment]
2073 \new FiguredBass
2074 \figuremode { <4 6> }
2075 @end lilypond
2076
2077 Accidentals are added when you append @code{-}, @code{!}, and @code{+}
2078 to the numbers.  A plus sign is added when you append @code{\+}, and
2079 diminished fifths and sevenths can be obtained with @code{5/} and @code{7/}.
2080
2081 @example
2082 <4- 6+ 7!> <5++> <3--> <7/> r <6\+ 5/>
2083 @end example
2084 @lilypond[quote,ragged-right,fragment]
2085 \figures { <4- 6+ 7!> <5++> <3--> <7/> r <6\+ 5/> }
2086 @end lilypond
2087
2088 Spaces may be inserted by using @code{_}.  Brackets are
2089 introduced with @code{[} and @code{]}.  You can also include text
2090 strings and text markups, see @ref{Text markup commands}.
2091
2092 @example
2093 < [4 6] 8 [_! 12] > < 5 \markup @{ \number 6 \super (1) @} >
2094 @end example
2095 @lilypond[quote,ragged-right,fragment]
2096 \new FiguredBass
2097 \figuremode { < [4 6] 8 [_! 12] > < 5 \markup{ \tiny \number 6 \super (1)} > }
2098 @end lilypond
2099
2100
2101 It is also possible to use continuation lines for repeated figures,
2102
2103 @lilypond[verbatim,relative=1]
2104 <<
2105   \new Staff {
2106     \clef bass
2107     c4 c c
2108   }
2109   \figures {
2110     \set useBassFigureExtenders = ##t
2111     <4 6> <3 6> <3 7>
2112   }
2113 >>
2114 @end lilypond
2115
2116 @noindent
2117 In this case, the extender lines always replace existing figures.
2118
2119 The @code{FiguredBass} context doesn't pay attention to the actual
2120 bass line.  As a consequence, you may have to insert extra figures to
2121 get extender lines below all notes, and you may have to add @code{\!}
2122 to avoid getting an extender line, e.g.
2123
2124 @lilypond[relative=1]
2125 <<
2126   \new Voice
2127   \figures {
2128     \set useBassFigureExtenders = ##t
2129     <6 4->4. <6 4->16. <6 4->32 <5>8. r16 <6>8 <6\! 5->
2130   }
2131   {
2132     \clef bass
2133     f16. g32 f16. g32 f16. g32 f16. g32 f8. es16 d8 es
2134   }
2135 >>
2136 @end lilypond
2137
2138 When using continuation lines, common figures are always put in the
2139 same vertical position.  When this is unwanted, you can insert a rest
2140 with @code{r}.  The rest will clear any previous alignment.  For
2141 example, you can write
2142
2143 @example
2144   <4 6>8 r8
2145 @end example
2146
2147 @noindent
2148 instead of
2149 @example
2150   <4 6>4
2151 @end example
2152
2153 Accidentals and plus signs can appear before or after the numbers,
2154 depending on the @code{figuredBassAlterationDirection} and
2155 @code{figuredBassPlusDirection}
2156 properties
2157
2158 @lilypond
2159   \figures {
2160     <6\+> <5+> <6 4-> r
2161     \set figuredBassAlterationDirection = #1
2162     <6\+> <5+> <6 4-> r
2163     \set figuredBassPlusDirection = #1
2164     <6\+> <5+> <6 4-> r
2165     \set figuredBassAlterationDirection = #-1
2166     <6\+> <5+> <6 4-> r
2167   }
2168 @end lilypond
2169
2170
2171 Although the support for figured bass may superficially resemble chord
2172 support, it is much simpler.  The @code{\figuremode} mode simply
2173 stores the numbers and @internalsref{FiguredBass} context prints them
2174 as entered.  There is no conversion to pitches and no realizations of
2175 the bass are played in the MIDI file.
2176
2177 Internally, the code produces markup texts.  You can use any of the
2178 markup text properties to override formatting.  For example, the
2179 vertical spacing of the figures may be set with @code{baseline-skip}.
2180
2181
2182 Figured bass can also be added to @code{Staff} contexts
2183 directly.  In this case, their vertical position is adjusted
2184 automatically.
2185
2186 @lilypond[ragged-right,fragment,quote]
2187 <<
2188   \new Staff = someUniqueName
2189   \relative c'' {
2190     c4 c'8 r8 c,4 c'
2191   }
2192
2193   %% send to existing Staff.
2194   \context Staff = someUniqueName 
2195   \figuremode {
2196     <4>4 <6 10>8 s8
2197     
2198     \set Staff.useBassFigureExtenders = ##t
2199     <4 6>4 <4 6>
2200   }
2201 >>
2202 @end lilypond
2203
2204
2205 @snippets
2206
2207 By default, this method produces figures above the notes.  To get
2208 figures below the notes, use
2209
2210 @example
2211 \override Staff.BassFigureAlignmentPositioning #'direction = #DOWN
2212 @end example
2213
2214
2215 @knownissues
2216
2217 When using figured bass above the staff with extender lines and
2218 @code{implicitBassFigures} the lines may become swapped around.
2219 Maintaining order consistently will be impossible when multiple figures
2220 have overlapping extender lines.  To avoid this problem, please
2221 use @code{stacking-dir} on @code{BassFigureAlignment}.
2222
2223
2224 @seealso
2225
2226 Internals Reference: @internalsref{NewBassFigure},
2227 @internalsref{BassFigureAlignment}, @internalsref{BassFigureLine},
2228 @internalsref{BassFigureBracket}, and
2229 @internalsref{BassFigureContinuation} objects and
2230 @internalsref{FiguredBass} context.
2231
2232