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