]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/notation/ancient.itely
Run scripts/auxiliar/update-with-convert-ly.sh -f 2.19.20
[lilypond.git] / Documentation / notation / ancient.itely
1 @c -*- coding: utf-8; mode: texinfo; -*-
2 @c vim: foldmethod=marker
3 @ignore
4     Translation of GIT committish: FILL-IN-HEAD-COMMITTISH
5
6     When revising a translation, copy the HEAD committish of the
7     version that you are working on.  For details, see the Contributors'
8     Guide, node Updating translation committishes..
9 @end ignore
10
11 @c \version "2.19.21"
12
13
14 @node Ancient notation
15 @section Ancient notation
16
17 @lilypondfile[quote]{ancient-headword.ly}
18
19 @cindex Vaticana, Editio
20 @cindex Medicaea, Editio
21 @cindex hufnagel
22 @cindex Petrucci
23 @cindex mensural
24
25
26 @menu
27 * Overview of the supported styles::
28 * Ancient notation---common features::
29 * Typesetting mensural music::
30 * Typesetting Gregorian chant::
31 * Typesetting Kievan square notation::
32 * Working with ancient music---scenarios and solutions::
33 @end menu
34
35
36 Support for ancient notation includes features for mensural
37 notation, Gregorian chant notation, and Kievan square notation.
38 These features can be accessed either by modifying style
39 properties of graphical objects such as note heads and rests,
40 or by using one of the pre-defined contexts for these styles.
41
42 Many graphical objects, such as note heads and flags, accidentals,
43 time signatures, and rests, provide a @code{style} property, which
44 can be changed to emulate several different styles of ancient
45 notation.  See
46
47 @itemize
48 @item @ref{Mensural note heads},
49 @item @ref{Mensural accidentals and key signatures},
50 @item @ref{Mensural rests},
51 @item @ref{Mensural clefs},
52 @item @ref{Gregorian clefs},
53 @item @ref{Mensural flags},
54 @item @ref{Mensural time signatures}.
55 @end itemize
56
57 Some notational concepts are introduced specifically for ancient
58 notation,
59
60 @itemize
61 @item @ref{Custodes},
62 @item @ref{Divisiones},
63 @item @ref{Ligatures}.
64 @end itemize
65
66 @seealso
67 Music Glossary:
68 @rglos{custos},
69 @rglos{ligature},
70 @rglos{mensural notation}.
71
72 Notation Reference:
73 @ref{Mensural note heads},
74 @ref{Mensural accidentals and key signatures},
75 @ref{Mensural rests},
76 @ref{Gregorian clefs},
77 @ref{Mensural flags},
78 @ref{Mensural time signatures},
79 @ref{Custodes},
80 @ref{Divisiones},
81 @ref{Ligatures}.
82
83
84 @node Overview of the supported styles
85 @subsection Overview of the supported styles
86
87 Three styles are available for typesetting Gregorian chant:
88
89 @itemize
90 @item @emph{Editio Vaticana} is a complete style for
91 Gregorian chant, following the appearance of the Solesmes
92 editions, the official chant books of the Vatican since 1904.
93 LilyPond has support for all the notational signs used in this
94 style, including ligatures, @emph{custodes}, and special signs
95 such as the quilisma and the oriscus.
96
97 @cindex Solesmes
98 @cindex Vaticana, Editio
99
100 @item The @emph{Editio Medicaea} style offers certain features
101 used in the Medicaea (or Ratisbona) editions which were used prior
102 to the Solesmes editions.  The most significant differences from
103 the @emph{Vaticana} style are the clefs, which have
104 downward-slanted strokes, and the note heads, which are square and
105 regular.
106
107 @cindex Ratisbona, Editio
108 @cindex Medicaea, Editio
109
110 @item The @emph{Hufnagel} (@qq{horseshoe nail}) or @emph{Gothic}
111 style mimics the writing style in chant manuscripts from Germany
112 and Central Europe during the middle ages.  It is named after the
113 basic note shape (the @emph{virga}), which looks like a small
114 nail.
115 @cindex hufnagel
116 @end itemize
117
118 Three styles emulate the appearance of late-medieval and
119 renaissance manuscripts and prints of mensural music:
120
121 @itemize
122 @item The @emph{Mensural} style most closely resembles the
123 writing style used in late-medieval and early renaissance
124 manuscripts, with its small and narrow, diamond-shaped note heads
125 and its rests which approach a hand-drawn style.
126
127 @cindex mensural
128
129 @item The @emph{Neomensural} style is a modernized and
130 stylized version of the former: the note heads are broader and the
131 rests are made up of straight lines.  This style is particularly
132 suited, e.g., for incipits of transcribed pieces of mensural
133 music.
134
135 @cindex neomensural
136
137 @item The @emph{Petrucci} style is named after Ottaviano Petrucci
138 (1466-1539), the first printer to use movable type for music (in
139 his @emph{Harmonice musices odhecaton}, 1501).  The style uses
140 larger note heads than the other mensural styles.
141
142 @cindex Petrucci
143
144 @end itemize
145
146 @emph{Baroque} and @emph{Classical} are not complete styles
147 but differ from the default style only in some details: certain
148 note heads (Baroque) and the quarter rest (Classical).
149
150 Only the mensural style has alternatives for all aspects of the
151 notation.  Thus, there are no rests or flags in the Gregorian
152 styles, since these signs are not used in plainchant notation, and
153 the Petrucci style has no flags or accidentals of its own.
154
155 Each element of the notation can be changed independently of the
156 others, so that one can use mensural flags, petrucci note heads,
157 classical rests and vaticana clefs in the same piece, if one
158 wishes.
159
160 @seealso
161 Music Glossary:
162 @rglos{mensural notation},
163 @rglos{flag}.
164
165
166 @node Ancient notation---common features
167 @subsection Ancient notation---common features
168
169 @menu
170 * Pre-defined contexts::
171 * Ligatures::
172 * Custodes::
173 @end menu
174
175
176 @node Pre-defined contexts
177 @unnumberedsubsubsec Pre-defined contexts
178
179 For Gregorian chant and mensural notation, there are pre-defined
180 voice and staff contexts available, which set all the various
181 notation signs to values suitable for these styles.  If one is
182 satisfied with these defaults, one can proceed directly with note
183 entry without worrying about the details on how to customize a
184 context.  See one of the  pre-defined contexts
185 @code{VaticanaVoice}, @code{VaticanaStaff}, @code{MensuralVoice},
186 and @code{MensuralStaff}.  See further
187
188 @itemize
189 @item @ref{Gregorian chant contexts},
190 @item @ref{Mensural contexts}.
191 @end itemize
192
193 @seealso
194 Music Glossary:
195 @rglos{mensural notation}.
196
197 Notation Reference:
198 @ref{Gregorian chant contexts},
199 @ref{Mensural contexts}.
200
201
202 @node Ligatures
203 @unnumberedsubsubsec Ligatures
204
205 @cindex Ligatures
206
207 @c TODO: Should double check if I recalled things correctly when I wrote
208 @c down the following paragraph by heart.
209
210 A ligature is a graphical symbol that represents at least two
211 distinct notes.  Ligatures originally appeared in the manuscripts
212 of Gregorian chant notation to denote ascending or descending
213 sequences of notes on the same syllable.  They are also used in
214 mensural notation.
215
216 Ligatures are entered by @emph{enclosing} them in @code{\[} and
217 @code{\]}.  Some ligature styles may need additional input syntax
218 specific for this particular type of ligature.  By default, the
219 @code{LigatureBracket} engraver just puts a square bracket
220 above the ligature.
221
222 @lilypond[quote,ragged-right,verbatim]
223 \relative {
224   \[ g' c, a' f d' \]
225   a g f
226   \[ e f a g \]
227 }
228 @end lilypond
229
230 Two other ligature styles are available: the Vaticana for
231 Gregorian chant, and the Mensural for mensural music (only white
232 mensural ligatures are supported for mensural music, and with
233 certain limitations).  To use any of these styles, the default
234 @code{Ligature_bracket_engraver} has to be replaced with one of the
235 specialized ligature engravers in the @code{Voice} context,
236 as explained in @ref{White mensural ligatures} and
237 @ref{Gregorian square neume ligatures}.
238
239 @seealso
240 Music Glossary:
241 @rglos{ligature}.
242
243 Notation Reference:
244 @ref{White mensural ligatures},
245 @ref{Gregorian square neume ligatures}.
246
247 @knownissues
248 Ligatures need special spacing that has not yet been implemented.  As
249 a result, there is too much space between ligatures most of the time,
250 and line breaking often is unsatisfactory.  Also, lyrics do not
251 correctly align with ligatures.
252
253 Accidentals must not be printed within a ligature, but instead need to
254 be collected and printed in front of it.
255
256 The syntax still uses the deprecated infix style
257 @code{\[ music expr \]}.  For consistency reasons, it will eventually
258 be changed to postfix style @code{note\[ @dots{} note\]}.
259
260 @c Alternatively, the file
261 @c @file{gregorian-init.ly} can be included; it provides a scheme
262 @c function
263 @c @example
264 @c \ligature @var{music expr}
265 @c @end example
266 @c with the same effect and is believed to be stable.
267
268 @c TODO: this does not seem to work at the moment.
269 @c -- eo
270
271
272 @node Custodes
273 @unnumberedsubsubsec Custodes
274
275 @cindex custos
276 @cindex custodes
277
278 A @emph{custos} (plural: @emph{custodes}; Latin word for @qq{guard})
279 is a symbol that appears at the end of a staff.  It anticipates the
280 pitch of the first note of the following line, thus helping the performer
281 to manage line breaks during performance.
282
283 Custodes were frequently used in music notation until the
284 seventeenth century.  Nowadays, they have survived only in a few
285 particular forms of musical notation such as contemporary editions
286 of Gregorian chant like the @emph{Editio Vaticana}.  There are
287 different custos glyphs used in different flavors of notational
288 style.
289
290 For typesetting custodes, just put a @code{Custos_engraver} into the
291 @code{Staff} context when declaring the @code{\layout} block,
292 and change the style of the custos with an @code{\override} if
293 desired, as shown in the following example:
294
295 @lilypond[quote,ragged-right]
296 \score {
297   \relative {
298     a'1
299     \break
300     g
301   }
302   \layout {
303     \context {
304       \Staff
305       \consists "Custos_engraver"
306       \override Custos.style = #'mensural
307     }
308   }
309 }
310 @end lilypond
311
312 The custos glyph is selected by the @code{style} property.  The styles
313 supported are @code{vaticana}, @code{medicaea}, @code{hufnagel}, and
314 @code{mensural}.  They are demonstrated in the following fragment.
315
316 @lilypond[quote,ragged-right,fragment]
317 \new Lyrics \lyricmode {
318   \markup { \column {
319     \typewriter "vaticana "
320     \line { " " \musicglyph #"custodes.vaticana.u0" }
321   } }
322   \markup { \column {
323     \typewriter "medicaea "
324     \line { " " \musicglyph #"custodes.medicaea.u0" }
325   }}
326   \markup { \column {
327     \typewriter "hufnagel "
328     \line { " " \musicglyph #"custodes.hufnagel.u0" }
329   }}
330   \markup { \column {
331     \typewriter "mensural "
332     \line { " " \musicglyph #"custodes.mensural.u0" }
333   }}
334 }
335 @end lilypond
336
337 @seealso
338 Music Glossary:
339 @rglos{custos}.
340
341 Snippets:
342 @rlsr{Ancient notation}.
343
344 Internals Reference:
345 @rinternals{Custos}.
346
347 @node Typesetting mensural music
348 @subsection Typesetting mensural music
349
350 @menu
351 * Mensural contexts::
352 * Mensural clefs::
353 * Mensural time signatures::
354 * Mensural note heads::
355 * Mensural flags::
356 * Mensural rests::
357 * Mensural accidentals and key signatures::
358 * Annotational accidentals (musica ficta)::
359 * White mensural ligatures::
360 @end menu
361
362
363 @node Mensural contexts
364 @unnumberedsubsubsec Mensural contexts
365
366 @cindex MensuralVoiceContext
367 @cindex MensuralStaffContext
368
369 The predefined @code{MensuralVoice} and @code{MensuralStaff}
370 contexts can be used to engrave a piece in mensural style.  These
371 contexts initialize all relevant context properties and grob
372 properties to proper values, so you can immediately go ahead
373 entering the chant, as the following excerpt demonstrates:
374
375 @lilypond[quote,ragged-right,verbatim]
376 \score {
377   <<
378     \new MensuralVoice = "discantus" \relative {
379       \hide Score.BarNumber {
380         c''1\melisma bes a g\melismaEnd
381         f\breve
382         \[ f1\melisma a c\breve d\melismaEnd \]
383         c\longa
384         c\breve\melisma a1 g1\melismaEnd
385         fis\longa^\signumcongruentiae
386       }
387     }
388     \new Lyrics \lyricsto "discantus" {
389       San -- ctus, San -- ctus, San -- ctus
390     }
391   >>
392 }
393 @end lilypond
394
395 @seealso
396 Music Glossary:
397 @rglos{mensural notation}.
398
399
400 @node Mensural clefs
401 @unnumberedsubsubsec Mensural clefs
402
403 @cindex clefs
404
405 The following table shows all mensural clefs that are supported via
406 the @code{\clef} command.  Some of the clefs use the same glyph,
407 but differ only with respect to the line they are printed on.  In
408 such cases, a trailing number in the name is used to enumerate
409 these clefs, numbered from the lowest to the highest line.
410 You can manually force a clef glyph to be typeset on an arbitrary
411 line, as described in @ref{Clef}.  The note printed to the right
412 side of each clef in the example column denotes the @code{c'} with
413 respect to that clef.
414
415 Petrucci used C clefs with differently balanced left-side vertical
416 beams, depending on which staff line it is printed.
417
418 @multitable @columnfractions .4 .4 .2
419 @item
420 @b{Description}
421 @tab
422 @b{Supported Clefs}
423 @tab
424 @b{Example}
425
426 @item
427 mensural C clef
428 @tab
429 @code{mensural-c1}, @code{mensural-c2},@*
430 @code{mensural-c3}, @code{mensural-c4},@*
431 @code{mensural-c5}
432 @tab
433 @lilypond[relative=1,notime]
434   \clef "mensural-c2"
435   \override NoteHead.style = #'mensural
436   c1
437 @end lilypond
438
439 @item
440 mensural F clef
441 @tab
442 @code{mensural-f}
443 @tab
444 @lilypond[relative=1,notime]
445   \clef "mensural-f"
446   \override NoteHead.style = #'mensural
447   c1
448 @end lilypond
449
450 @item
451 mensural G clef
452 @tab
453 @code{mensural-g}
454 @tab
455 @lilypond[relative=1,notime]
456   \clef "mensural-g"
457   \override NoteHead.style = #'mensural
458   c1
459 @end lilypond
460
461 @item
462 black mensural C clef
463 @tab
464 @code{blackmensural-c1}, @code{blackmensural-c2},@*
465 @code{blackmensural-c3}, @code{blackmensural-c4},@*
466 @code{blackmensural-c5}
467 @tab
468 @lilypond[relative=1,notime]
469   \clef "blackmensural-c2"
470   \override NoteHead.style = #'mensural
471   c1
472 @end lilypond
473
474 @item
475 neomensural C clef
476 @tab
477 @code{neomensural-c1}, @code{neomensural-c2},@*
478 @code{neomensural-c3}, @code{neomensural-c4}
479 @tab
480 @lilypond[relative=1,notime]
481   \clef "neomensural-c2" c1
482 @end lilypond
483
484 @item
485 petrucci style C clefs, for use on different staff lines
486 (the example shows the 2nd staff line C clef)
487 @tab
488 @code{petrucci-c1}, @code{petrucci-c2},@*
489 @code{petrucci-c3}, @code{petrucci-c4},@*
490 @code{petrucci-c5}
491 @tab
492 @lilypond[relative=1,notime]
493   \clef "petrucci-c2"
494   \override NoteHead.style = #'mensural
495   c1
496 @end lilypond
497
498 @item
499 petrucci style F clefs, for use on different staff lines
500 (the example shows the 3rd staff line F clef)
501 @tab
502 @code{petrucci-f3}, @code{petrucci-f4},@*
503 @code{petrucci-f5}
504 @tab
505 @lilypond[relative=1,notime]
506   \clef "petrucci-f3"
507   \override NoteHead.style = #'mensural
508   c1
509 @end lilypond
510
511 @item
512 petrucci style G clef
513 @tab
514 @code{petrucci-g}
515 @tab
516 @lilypond[relative=1,notime]
517   \clef "petrucci-g"
518   \override NoteHead.style = #'mensural
519   c1
520 @end lilypond
521 @end multitable
522
523 @seealso
524 Music Glossary:
525 @rglos{mensural notation},
526 @rglos{clef}.
527
528 Notation Reference:
529 @ref{Clef}.
530
531 @knownissues
532 The mensural g clef is mapped to the Petrucci g clef.
533
534
535 @node Mensural time signatures
536 @unnumberedsubsubsec Mensural time signatures
537
538 @cindex mensuration sign
539 @cindex time signature, mensural
540 @cindex time signature style
541
542 There is limited support for mensuration signs (which are similar to,
543 but not exactly the same as time signatures).  The glyphs are hard-wired
544 to particular time fractions.  In other words, to get a particular mensuration sign with the @code{\time n/m} command, @code{n} and
545 @code{m} have to be chosen according to the 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   \textLengthOn
561   s^\markup { "\\time 4/4" }_\markup { "       " \musicglyph
562 #"timesig.neomensural44" }
563   s
564   s^\markup { "\\time 2/2" }_\markup { "       " \musicglyph
565 #"timesig.neomensural22" }
566   s
567   s^\markup { "\\time 6/4" }_\markup { "       " \musicglyph
568 #"timesig.neomensural64" }
569   s
570   s^\markup { "\\time 6/8" }_\markup { "       " \musicglyph
571 #"timesig.neomensural68" }
572   \break
573   s^\markup { "\\time 3/2" }_\markup { "       " \musicglyph
574 #"timesig.neomensural32" }
575   s
576   s^\markup { "\\time 3/4" }_\markup { "       " \musicglyph
577 #"timesig.neomensural34" }
578   s
579   s^\markup { "\\time 9/4" }_\markup { "       " \musicglyph
580 #"timesig.neomensural94" }
581   s
582   s^\markup { "\\time 9/8" }_\markup { "       " \musicglyph
583 #"timesig.neomensural98" }
584   \break
585   s^\markup { "\\time 4/8" }_\markup { "       " \musicglyph
586 #"timesig.neomensural48" }
587   s
588   s^\markup { "\\time 2/4" }_\markup { "       " \musicglyph
589 #"timesig.neomensural24" }
590 }
591 @end lilypond
592
593 Use the @code{style} property of grob @code{TimeSignature}
594 to select ancient time signatures.  Supported styles are
595 @code{neomensural} and @code{mensural}.  The above table uses the
596 @code{neomensural} style.  The following examples show the
597 differences in style:
598
599 @lilypond[ragged-right,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 @ref{Time signature}, gives a general introduction to
624 the use of time signatures.
625
626 @seealso
627 Music Glossary:
628 @rglos{mensural notation}.
629
630 Notation Reference:
631 @ref{Time signature}.
632
633 @knownissues
634 Ratios of note durations cannot change with the time signature,
635 as those are not constant.  For
636 example, the ratio of 1@tie{}breve = 3@tie{}semibreves
637 (@emph{tempus perfectum}) can be made by hand, by setting
638
639 @example
640 breveTP = #(ly:make-duration -1 0 3/2)
641 @dots{}
642 @{ c\breveTP f1 @}
643 @end example
644
645 @noindent
646 This sets @code{breveTP} to 3/2 times 2 = 3 times a whole note.
647
648 The @code{mensural68alt} and @code{neomensural68alt} symbols
649 (alternate symbols for 6/8) are not addressable with @code{\time}.
650 Use @code{\markup @{\musicglyph #"timesig.mensural68alt" @}} instead.
651
652
653 @node Mensural note heads
654 @unnumberedsubsubsec Mensural note heads
655
656 @cindex note heads, ancient
657
658 For ancient notation, a note head style other than the
659 @code{default} style may be chosen.  This is accomplished by setting
660 the @code{style} property of the @code{NoteHead} object to
661 @code{baroque}, @code{neomensural}, @code{mensural},
662 @code{petrucci}, @code{blackpetrucci} or @code{semipetrucci}.
663
664 The @code{baroque} style differs from the @code{default} style by:
665
666 @itemize
667 @item Providing a @code{maxima} note head, and
668 @item Using a square shape for @code{\breve} note heads.
669 @end itemize
670
671 The @code{neomensural}, @code{mensural}, and @code{petrucci} styles
672 differ from the @code{baroque} style by:
673
674 @itemize
675 @item Using rhomboidal heads for semibreves and all smaller durations,
676 and
677 @item Centering the stems on the note heads.
678 @end itemize
679
680 The @code{blackpetrucci} style produces note heads usable in black
681 mensural notation or coloratio sections in white mensural notation.
682 Because note head style does not influence flag count, in
683 this style a semiminima should be notated as @code{a8*2}, not
684 @code{a4}, otherwise it will look like a minima.
685 The multiplier can be different if coloratio is used e.g. to notate
686 triplets.
687
688 Use @code{semipetrucci} style to draw half-colored
689 note heads (breves, longas and maximas).
690
691
692 The following example demonstrates the @code{petrucci} style:
693
694 @c Renaissance music doesn't use bar lines ...  but they do help to
695 @c separate the notes for easier identification.
696
697 @lilypond[quote,fragment,ragged-right,verbatim]
698 \set Score.skipBars = ##t
699 \autoBeamOff
700 \override NoteHead.style = #'petrucci
701 a'\maxima a'\longa a'\breve a'1 a'2 a'4 a'8 a'16 a'
702 \override NoteHead.style = #'semipetrucci
703 a'\breve*5/6
704 \override NoteHead.style = #'blackpetrucci
705 a'8*4/3 a'
706 \override NoteHead.style = #'petrucci
707 a'\longa
708 @end lilypond
709
710
711 @ref{Note head styles}, gives an overview of all available note head
712 styles.
713
714 @seealso
715 Music Glossary:
716 @rglos{mensural notation},
717 @rglos{note head}.
718
719 Notation Reference:
720 @ref{Note head styles}.
721
722
723 @node Mensural flags
724 @unnumberedsubsubsec Mensural flags
725
726 @cindex flags
727
728 Use the @code{flag-style} property of grob @code{Stem} to
729 select ancient flags.  Besides the @code{default} flag style,
730 only the @code{mensural} style is supported.
731
732 @lilypond[quote,fragment,ragged-right,verbatim,relative=1]
733 \override Flag.style = #'mensural
734 \override Stem.thickness = #1.0
735 \override NoteHead.style = #'mensural
736 \autoBeamOff
737 c8 d e f c16 d e f c32 d e f s8
738 c'8 d e f c16 d e f c32 d e f
739 @end lilypond
740
741 Note that the innermost flare of each mensural flag is
742 vertically aligned with a staff line.
743
744 There is no particular flag style for neo-mensural or Petrucci notation.
745 There are no flags in Gregorian chant notation.
746
747 @seealso
748 Music Glossary:
749 @rglos{mensural notation},
750 @rglos{flag}.
751
752 @knownissues
753 Vertically aligning each flag with a staff line assumes that stems
754 always end either exactly on or exactly in the middle of two
755 staff lines.  This may not always be true when using advanced layout
756 features of classical notation (which however are typically out of
757 scope for mensural notation).
758
759
760 @node Mensural rests
761 @unnumberedsubsubsec Mensural rests
762
763 @cindex rests, ancient
764
765 Use the @code{style} property of grob @code{Rest} to select
766 ancient rests.  Supported ancient styles are
767 @code{neomensural}, and @code{mensural}.
768
769 The following example demonstrates these styles:
770
771 @lilypond[quote,fragment,ragged-right,verbatim]
772 \set Score.skipBars = ##t
773 \override Rest.style = #'mensural
774 r\longa^"mensural" r\breve r1 r2 r4 r8 r16 s \break
775 \override Rest.style = #'neomensural
776 r\longa^"neomensural" r\breve r1 r2 r4 r8 r16
777 @end lilypond
778
779 There are no 32nd and 64th rests specifically for the mensural or
780 neo-mensural styles.  Rests from the default style are used.
781
782 @seealso
783 Music Glossary:
784 @rglos{mensural notation}.
785
786 Notation Reference:
787 @ref{Rests}.
788
789 Snippets:
790 @rlsr{Ancient notation}.
791
792 @knownissues
793 The glyph for the maxima rest in mensural style is actually a perfect
794 longa rest; use two (or three) longa rests to print a maxima rest.
795 Longa rests are not grouped automatically, so have to be done manually by
796 using pitched rests.
797
798
799 @node Mensural accidentals and key signatures
800 @unnumberedsubsubsec Mensural accidentals and key signatures
801
802 @cindex accidentals
803 @cindex key signature
804
805 The @code{mensural} style provides a sharp and a flat sign
806 different from the default style.  Mensural notation rarely used a natural
807 sign: instead the appropriate sharp or flat is used.  For example, a B
808 natural in the key of F major would be indicated with a sharp.  However,
809 if specifically called for, the natural sign is taken from the @code{vaticana}
810 style.
811
812 @lilypond[quote,ragged-right,staffsize=26]
813 \markup {
814   \column {
815     "mensural"
816     \line { " " \musicglyph #"accidentals.mensural-1"
817       " " \musicglyph #"accidentals.mensural1" }
818   }
819 }
820 @end lilypond
821
822 The style for accidentals and key signatures is controlled by the
823 @code{glyph-name-alist} property of the grobs @code{Accidental} and
824 @code{KeySignature}, respectively; e.g.:
825
826 @example
827 \override Staff.Accidental.glyph-name-alist =
828   #alteration-mensural-glyph-name-alist
829 @end example
830
831 @seealso
832 Music Glossary:
833 @rglos{mensural notation},
834 @rglos{Pitch names},
835 @rglos{accidental},
836 @rglos{key signature}.
837
838 Notation Reference:
839 @ref{Pitches},
840 @ref{Accidentals},
841 @ref{Automatic accidentals},
842 @ref{Key signature}.
843
844 Internals Reference:
845 @rinternals{KeySignature}.
846
847
848 @node Annotational accidentals (musica ficta)
849 @unnumberedsubsubsec Annotational accidentals (@emph{musica ficta})
850
851 In European music from before about 1600, singers were expected to
852 chromatically alter notes at their own initiative according to
853 certain rules.  This is called @notation{musica ficta}.  In modern
854 transcriptions, these accidentals are usually printed over the
855 note.
856
857 @cindex Accidental, musica ficta
858 @cindex Musica ficta
859
860 Support for such suggested accidentals is included, and can be
861 switched on by setting @code{suggestAccidentals} to true.
862
863 @funindex suggestAccidentals
864
865 @lilypond[verbatim,relative=1]
866 fis gis
867 \set suggestAccidentals = ##t
868 ais bis
869 @end lilypond
870
871 This will treat @emph{every} subsequent accidental as
872 @emph{musica ficta} until it is unset with
873 @code{\set suggestAccidentals = ##f}.  A more practical way is to
874 use @code{\once \set suggestAccidentals = ##t}, which can even be
875 defined as a convenient shorthand:
876
877 @lilypond[quote,verbatim]
878 ficta = { \once \set suggestAccidentals = ##t }
879 \score { \relative
880   \new MensuralVoice  {
881     \once \set suggestAccidentals = ##t
882     bes'4 a2 g2 \ficta fis8 \ficta e! fis2 g1
883   }
884 }
885 @end lilypond
886
887 @seealso
888 Internals Reference:
889 @rinternals{Accidental_engraver},
890 @rinternals{AccidentalSuggestion}.
891
892
893 @node White mensural ligatures
894 @unnumberedsubsubsec White mensural ligatures
895
896 @cindex Mensural ligatures
897 @cindex White mensural ligatures
898
899 There is limited support for white mensural ligatures.
900
901 To engrave white mensural ligatures, in the layout block, replace
902 the @code{Ligature_bracket_engraver} with the
903 @code{Mensural_ligature_engraver} in the @code{Voice}
904 context:
905
906 @example
907 \layout @{
908   \context @{
909     \Voice
910     \remove "Ligature_bracket_engraver"
911     \consists "Mensural_ligature_engraver"
912   @}
913 @}
914 @end example
915
916 There is no additional input language to describe the shape of a
917 white mensural ligature.  The shape is rather determined solely from
918 the pitch and duration of the enclosed notes.  While this approach may
919 take a new user a while to get accustomed to, it has the great advantage
920 that the full musical information of the ligature is known internally.
921 This is not only required for correct MIDI output, but also allows for
922 automatic transcription of the ligatures.
923
924 At certain places two consecutive notes can be represented either as
925 two squares or as an oblique parallelogram (flexa shape).  In such
926 cases the default is the two squares, but a flexa can be required by
927 setting the @code{ligature-flexa} property of the @emph{second} note
928 head.  The length of a flexa can be set by the note head property
929 @code{flexa-width}.
930
931 For example,
932
933 @lilypond[quote,ragged-right,verbatim]
934 \score {
935   \relative {
936     \set Score.timing = ##f
937     \set Score.defaultBarType = "-"
938     \override NoteHead.style = #'petrucci
939     \override Staff.TimeSignature.style = #'mensural
940     \clef "petrucci-g"
941     \[ c''\maxima g \]
942     \[ d'\longa
943        \override NoteHead.ligature-flexa = ##t
944        \once \override NoteHead.flexa-width = #3.2
945        c\breve f e d \]
946     \[ c\maxima d\longa \]
947     \[ e1 a, g\breve \]
948   }
949   \layout {
950     \context {
951       \Voice
952       \remove "Ligature_bracket_engraver"
953       \consists "Mensural_ligature_engraver"
954     }
955   }
956 }
957 @end lilypond
958
959 Without replacing @code{Ligature_bracket_engraver} with
960 @code{Mensural_ligature_engraver}, the same music looks as follows:
961
962 @lilypond[quote,ragged-right]
963 \relative {
964   \set Score.timing = ##f
965   \set Score.defaultBarType = "-"
966   \override NoteHead.style = #'petrucci
967   \override Staff.TimeSignature.style = #'mensural
968   \clef "petrucci-g"
969   \[ c''\maxima g \]
970   \[ d'\longa
971      \override NoteHead.ligature-flexa = ##t
972      \once \override NoteHead.flexa-width = #3.2
973      c\breve f e d \]
974   \[ c\maxima d\longa \]
975   \[ e1 a, g\breve \]
976 }
977 @end lilypond
978
979 @seealso
980 Music Glossary:
981 @rglos{ligature}.
982
983 Notation Reference:
984 @ref{Gregorian square neume ligatures},
985 @ref{Ligatures}.
986
987 @knownissues
988 Horizontal spacing of ligatures may be poor.
989 Accidentals may collide with previous notes.
990
991
992 @node Typesetting Gregorian chant
993 @subsection Typesetting Gregorian chant
994
995 @menu
996 * Gregorian chant contexts::
997 * Gregorian clefs::
998 * Gregorian accidentals and key signatures::
999 * Divisiones::
1000 * Gregorian articulation signs::
1001 * Augmentum dots (morae)::
1002 * Gregorian square neume ligatures::
1003 @end menu
1004
1005 When typesetting a piece in Gregorian chant notation, the
1006 @code{Vaticana_ligature_engraver} automatically selects the
1007 proper note heads, so there is no need to explicitly set the note
1008 head style.  Still, the note head style can be set, e.g., to
1009 @code{vaticana_punctum} to produce punctum neumes.  Similarly, the
1010 @code{Mensural_ligature_engraver} automatically assembles
1011 mensural ligatures.
1012
1013 @seealso
1014 Music Glossary:
1015 @rglos{ligature}.
1016
1017 Notation Reference:
1018 @ref{White mensural ligatures},
1019 @ref{Ligatures}.
1020
1021
1022 @node Gregorian chant contexts
1023 @unnumberedsubsubsec Gregorian chant contexts
1024
1025 @cindex VaticanaVoiceContext
1026 @cindex VaticanaStaffContext
1027
1028 The predefined @code{VaticanaVoiceContext} and
1029 @code{VaticanaStaffContext} can be used to engrave a piece of
1030 Gregorian chant in the style of the Editio Vaticana.  These contexts
1031 initialize all relevant context properties and grob properties to
1032 proper values, so you can immediately go ahead entering the chant, as
1033 the following excerpt demonstrates:
1034
1035 @lilypond[quote,ragged-right,verbatim]
1036 \include "gregorian.ly"
1037 \score {
1038   <<
1039     \new VaticanaVoice = "cantus" {
1040       \[ c'\melisma c' \flexa a \]
1041       \[ a \flexa \deminutum g\melismaEnd \]
1042       f \divisioMinima
1043       \[ f\melisma \pes a c' c' \pes d'\melismaEnd \]
1044       c' \divisioMinima \break
1045       \[ c'\melisma c' \flexa a \]
1046       \[ a \flexa \deminutum g\melismaEnd \] f \divisioMinima
1047     }
1048     \new Lyrics \lyricsto "cantus" {
1049       San- ctus, San- ctus, San- ctus
1050     }
1051   >>
1052 }
1053 @end lilypond
1054
1055
1056 @c @seealso
1057 @c TODO: nothing here yet ...
1058
1059
1060 @node Gregorian clefs
1061 @unnumberedsubsubsec Gregorian clefs
1062
1063 @cindex clefs
1064
1065 The following table shows all Gregorian clefs that are supported via
1066 the @code{\clef} command.  Some of the clefs use the same glyph,
1067 but differ only with respect to the line they are printed on.  In
1068 such cases, a trailing number in the name is used to enumerate
1069 these clefs, numbered from the lowest to the highest line.  Still,
1070 you can manually force a clef glyph to be typeset on an arbitrary
1071 line, as described in @ref{Clef}.  The note printed to the right
1072 side of each clef in the example column denotes the @code{c'} with
1073 respect to that clef.
1074
1075 @multitable @columnfractions .4 .4 .2
1076 @item
1077 @b{Description}
1078 @tab
1079 @b{Supported Clefs}
1080 @tab
1081 @b{Example}
1082
1083 @item
1084 Editio Vaticana style do clef
1085 @tab
1086 @code{vaticana-do1}, @code{vaticana-do2},@*
1087 @code{vaticana-do3}
1088 @tab
1089 @lilypond[relative=1,notime]
1090   \override Staff.StaffSymbol.line-count = #4
1091   \override Staff.StaffSymbol.color = #red
1092   \override Staff.LedgerLineSpanner.color = #red
1093   \hide Voice.Stem
1094   \override NoteHead.style = #'vaticana.punctum
1095   \clef "vaticana-do2"
1096   c
1097 @end lilypond
1098
1099 @item
1100 Editio Vaticana style fa clef
1101 @tab
1102 @code{vaticana-fa1}, @code{vaticana-fa2}
1103 @tab
1104 @lilypond[relative=1,notime]
1105   \override Staff.StaffSymbol.line-count = #4
1106   \override Staff.StaffSymbol.color = #red
1107   \override Staff.LedgerLineSpanner.color = #red
1108   \hide Voice.Stem
1109   \override NoteHead.style = #'vaticana.punctum
1110   \clef "vaticana-fa2"
1111   c
1112 @end lilypond
1113
1114 @item
1115 Editio Medicaea style do clef
1116 @tab
1117 @code{medicaea-do1}, @code{medicaea-do2},@*
1118 @code{medicaea-do3}
1119 @tab
1120 @lilypond[relative=1,notime]
1121   \override Staff.StaffSymbol.line-count = #4
1122   \override Staff.StaffSymbol.color = #red
1123   \override Staff.LedgerLineSpanner.color = #red
1124   \hide Voice.Stem
1125   \override NoteHead.style = #'medicaea.punctum
1126   \clef "medicaea-do2"
1127   c
1128 @end lilypond
1129
1130 @item
1131 Editio Medicaea style fa clef
1132 @tab
1133 @code{medicaea-fa1}, @code{medicaea-fa2}
1134 @tab
1135 @lilypond[relative=1,notime]
1136   \override Staff.StaffSymbol.line-count = #4
1137   \override Staff.StaffSymbol.color = #red
1138   \override Staff.LedgerLineSpanner.color = #red
1139   \hide Voice.Stem
1140   \override NoteHead.style = #'medicaea.punctum
1141   \clef "medicaea-fa2"
1142   c
1143 @end lilypond
1144
1145 @item
1146 hufnagel style do clef
1147 @tab
1148 @code{hufnagel-do1}, @code{hufnagel-do2},@*
1149 @code{hufnagel-do3}
1150 @tab
1151 @lilypond[relative=1,notime]
1152   \override Staff.StaffSymbol.line-count = #4
1153   \override Staff.StaffSymbol.color = #red
1154   \override Staff.LedgerLineSpanner.color = #red
1155   \hide Voice.Stem
1156   \override NoteHead.style = #'hufnagel.punctum
1157   \clef "hufnagel-do2"
1158   c
1159 @end lilypond
1160
1161 @item
1162 hufnagel style fa clef
1163 @tab
1164 @code{hufnagel-fa1}, @code{hufnagel-fa2}
1165 @tab
1166 @lilypond[relative=1,notime]
1167   \override Staff.StaffSymbol.line-count = #4
1168   \override Staff.StaffSymbol.color = #red
1169   \override Staff.LedgerLineSpanner.color = #red
1170   \hide Voice.Stem
1171   \override NoteHead.style = #'hufnagel.punctum
1172   \clef "hufnagel-fa2"
1173   c
1174 @end lilypond
1175
1176 @item
1177 hufnagel style combined do/fa clef
1178 @tab
1179 @code{hufnagel-do-fa}
1180 @tab
1181 @lilypond[relative=1,notime]
1182   \override Staff.StaffSymbol.color = #red
1183   \override Staff.LedgerLineSpanner.color = #red
1184   \hide Voice.Stem
1185   \override NoteHead.style = #'hufnagel.punctum
1186   \clef "hufnagel-do-fa"
1187   c
1188 @end lilypond
1189 @end multitable
1190
1191 @seealso
1192 Music Glossary:
1193 @rglos{clef}.
1194
1195 Notation Reference:
1196 @ref{Clef}.
1197
1198
1199 @node Gregorian accidentals and key signatures
1200 @unnumberedsubsubsec Gregorian accidentals and key signatures
1201
1202 @cindex accidentals
1203 @cindex key signature
1204
1205 Accidentals for the three different Gregorian styles are available:
1206
1207 @lilypond[quote,ragged-right,staffsize=26]
1208 \markup {
1209   \column {
1210     "vaticana"
1211     \line { " " \musicglyph #"accidentals.vaticana-1"
1212       " " \musicglyph #"accidentals.vaticana0" }
1213   }
1214   \column {
1215     "medicaea"
1216     \line { " " \musicglyph #"accidentals.medicaea-1" }
1217   }
1218   \column {
1219     "hufnagel"
1220     \line { " " \musicglyph #"accidentals.hufnagel-1" }
1221   }
1222 }
1223 @end lilypond
1224
1225 As shown, not all accidentals are supported by each style.  When
1226 trying to access an unsupported accidental, LilyPond will switch to a
1227 different style.
1228
1229 @c @lilypondfile[verbatim,quote,texidoc,doctitle]
1230 @c {ancient-accidentals.ly}
1231
1232 The style for accidentals and key signatures is controlled by the
1233 @code{glyph-name-alist} property of the grobs @code{Accidental} and
1234 @code{KeySignature}, respectively; e.g.:
1235
1236 @example
1237 \override Staff.Accidental.glyph-name-alist =
1238   #alteration-mensural-glyph-name-alist
1239 @end example
1240
1241 @seealso
1242 Music Glossary:
1243 @rglos{accidental},
1244 @rglos{key signature}.
1245
1246 Notation Reference:
1247 @ref{Pitches},
1248 @ref{Accidentals},
1249 @ref{Automatic accidentals},
1250 @ref{Key signature}.
1251
1252 Internals Reference:
1253 @rinternals{KeySignature}.
1254
1255
1256 @node Divisiones
1257 @unnumberedsubsubsec Divisiones
1258
1259 @cindex divisio
1260 @cindex divisiones
1261 @cindex finalis
1262
1263 There are no rests in Gregorian chant notation; instead, it uses
1264 @ref{Divisiones}.
1265
1266 A @emph{divisio} (plural: @emph{divisiones}; Latin word for
1267 @q{division}) is a staff context symbol that is used to indicate
1268 the phrase and section structure of Gregorian music.  The musical
1269 meaning of @emph{divisio minima}, @emph{divisio maior}, and
1270 @emph{divisio maxima} can be characterized as short, medium, and
1271 long pause, somewhat like the breath marks from @ref{Breath marks}.
1272 The  @emph{finalis} sign not only marks the end of a chant, but is
1273 also frequently used within a single antiphonal/responsorial chant
1274 to mark the end of each section.
1275
1276 To use divisiones, include the file @file{gregorian.ly}.  It
1277 contains definitions that you can apply by just inserting
1278 @code{\divisioMinima}, @code{\divisioMaior}, @code{\divisioMaxima},
1279 and @code{\finalis} at proper places in the input.  Some editions use
1280 @emph{virgula} or @emph{caesura} instead of divisio minima.
1281 Therefore, @file{gregorian.ly} also defines @code{\virgula} and
1282 @code{\caesura}
1283
1284 @lilypond[quote,ragged-right]
1285 \include "gregorian.ly"
1286 \score {
1287   <<
1288     \context VaticanaVoice {
1289       \override TextScript.padding = #3
1290       g a g
1291       s^\markup { "divisio minima" }
1292       \divisioMinima
1293       g a g
1294       s^\markup { "divisio maior" }
1295       \divisioMaior
1296       g a g
1297       s^\markup { "divisio maxima" }
1298       \divisioMaxima
1299       \break
1300       g a g
1301       s^\markup { "finalis" }
1302       \finalis
1303       g a g
1304       s^\markup { "virgula" }
1305       \virgula
1306       g a g
1307       s^\markup { "caesura" }
1308       \caesura
1309       g a g
1310     }
1311   >>
1312 }
1313 @end lilypond
1314
1315
1316 @predefined
1317 @funindex \virgula
1318 @code{\virgula},
1319 @funindex \caesura
1320 @code{\caesura},
1321 @funindex \divisioMinima
1322 @code{\divisioMinima},
1323 @funindex \divisioMaior
1324 @code{\divisioMaior},
1325 @funindex \divisioMaxima
1326 @code{\divisioMaxima},
1327 @funindex \finalis
1328 @code{\finalis}.
1329 @endpredefined
1330
1331 @seealso
1332 Music Glossary:
1333 @rglos{caesura},
1334 @rglos{divisio}.
1335
1336 Notation Reference:
1337 @ref{Breath marks}.
1338
1339 Installed Files:
1340 @file{ly/gregorian.ly}.
1341
1342
1343 @node Gregorian articulation signs
1344 @unnumberedsubsubsec Gregorian articulation signs
1345
1346 @cindex articulations
1347
1348 In addition to the standard articulation signs described in
1349 section @ref{Articulations and ornamentations}, articulation signs
1350 specifically designed for use with notation in
1351 @emph{Editio Vaticana} style are provided.
1352
1353 @lilypond[quote,ragged-right,verbatim]
1354 \include "gregorian.ly"
1355 \score {
1356   \new VaticanaVoice {
1357     \override TextScript.font-family = #'typewriter
1358     \override TextScript.font-shape = #'upright
1359     \override Script.padding = #-0.1
1360     a\ictus_"ictus " \bar "" \break
1361     a\circulus_"circulus " \bar "" \break
1362     a\semicirculus_"semicirculus " \bar "" \break
1363     a\accentus_"accentus " \bar "" \break
1364     \[ a_"episema" \episemInitium \pes b \flexa a b \episemFinis \flexa a \]
1365   }
1366 }
1367 @end lilypond
1368
1369 @seealso
1370 Notation Reference:
1371 @ref{Articulations and ornamentations}.
1372
1373 Snippets:
1374 @rlsr{Ancient notation}.
1375
1376 Internals Reference:
1377 @rinternals{Episema},
1378 @rinternals{EpisemaEvent},
1379 @rinternals{Episema_engraver},
1380 @rinternals{Script},
1381 @rinternals{ScriptEvent},
1382 @rinternals{Script_engraver}.
1383
1384 @knownissues
1385 Some articulations are vertically placed too closely to the
1386 corresponding note heads.
1387
1388
1389 @node Augmentum dots (morae)
1390 @unnumberedsubsubsec Augmentum dots (@emph{morae})
1391
1392 Augmentum dots, also called @emph{morae}, are added with the music
1393 function @code{\augmentum}.  Note that @code{\augmentum} is
1394 implemented as a unary music function rather than as head prefix.  It
1395 applies to the immediately following music expression only.  That is,
1396 @code{\augmentum \virga c} will have no visible effect.  Instead, say
1397 @code{\virga \augmentum c} or @code{\augmentum @{\virga c@}}.  Also
1398 note that you can say @code{\augmentum @{a g@}} as a shortcut for
1399 @code{\augmentum a \augmentum g}.
1400
1401 @lilypond[quote,ragged-right,verbatim]
1402 \include "gregorian.ly"
1403 \score {
1404   \new VaticanaVoice {
1405     \[ \augmentum a \flexa \augmentum g \]
1406     \augmentum g
1407   }
1408 }
1409 @end lilypond
1410
1411 @seealso
1412 Notation Reference:
1413 @ref{Breath marks}.
1414
1415 Internals Reference:
1416 @rinternals{BreathingSign}.
1417
1418 Snippets:
1419 @rlsr{Ancient notation}.
1420
1421
1422 @node Gregorian square neume ligatures
1423 @unnumberedsubsubsec Gregorian square neume ligatures
1424
1425 @cindex Square neumes ligatures
1426 @cindex Gregorian square neumes ligatures
1427
1428 There is limited support for Gregorian square neumes notation
1429 (following the style of the Editio Vaticana).  Core ligatures can
1430 already be typeset, but essential issues for serious typesetting are
1431 still lacking, such as (among others) horizontal alignment of multiple
1432 ligatures, lyrics alignment, and proper handling of accidentals.
1433
1434 The support for Gregorian neumes is enabled by @code{\include}ing
1435 @file{gregorian.ly} at the beginning of the file.  This makes available
1436 a number of extra commands to produce the neume symbols used in
1437 plainchant notation.
1438
1439
1440
1441 Note heads can be @emph{modified} and/or @emph{joined}.
1442
1443 @itemize
1444 @item The shape of
1445 the note head can be modified by @emph{prefixing} the note name
1446 with any of the following commands:
1447 @funindex \virga
1448 @code{\virga},
1449 @funindex \stropha
1450 @code{\stropha},
1451 @funindex \inclinatum
1452 @code{\inclinatum},
1453 @funindex \auctum
1454 @code{\auctum},
1455 @funindex \descendens
1456 @code{\descendens},
1457 @funindex \ascendens
1458 @code{\ascendens},
1459 @funindex \oriscus
1460 @code{\oriscus},
1461 @funindex \quilisma
1462 @code{\quilisma},
1463 @funindex \deminutum
1464 @code{\deminutum},
1465 @funindex \cavum
1466 @code{\cavum},
1467 @funindex \linea
1468 @code{\linea}.
1469
1470 @item Ligatures, properly speaking (i.e. notes joined together), are
1471 produced by placing one of the joining commands @code{\pes} or
1472 @code{\flexa}, for upwards and downwards movement, respectively,
1473 @emph{between} the notes to be joined.
1474 @end itemize
1475
1476 A note name without any qualifiers will produce a @emph{punctum}.
1477 All other neumes, including the single-note neumes with a
1478 different shape such as the @emph{virga}, are in principle
1479 considered as ligatures and should therefore be placed
1480 between @code{\[@dots{}\]}.
1481 @c Regarding the @emph{punctum}, @code{b} and @code{\[ b \]} are
1482 @c equivalent.
1483
1484 @noindent
1485 Single-note neumes:
1486
1487 @itemize
1488 @item The @emph{punctum} is the basic note shape (in the
1489 @emph{Vaticana} style: a square with some curvation for
1490 typographical finesse).  In addition to the regular
1491 @emph{punctum}, there is also the oblique @emph{punctum
1492 inclinatum}, produced with the prefix @code{\inclinatum}.  The
1493 regular @emph{punctum} can be modified with @code{\cavum}, which
1494 produces a hollow note, and @code{\linea}, which draws vertical
1495 lines on either side of the note.
1496
1497 @item The @emph{virga} has a descending stem on the right side.  It is
1498 produced by the modifier @code{\virga}.
1499 @end itemize
1500
1501 @noindent
1502 Ligatures
1503
1504 Unlike most other neumes notation systems, the typographical
1505 appearance of ligatures is not directly dictated by the input
1506 commands, but follows certain conventions dependent on musical
1507 meaning.  For example, a three-note ligature with the musical shape
1508 low-high-low, such as @code{\[ a \pes b \flexa g \]}, produces a
1509 Torculus consisting of three Punctum heads, while the shape
1510 high-low-high, such as @code{\[ a \flexa g \pes b \]}, produces a
1511 Porrectus with a curved flexa shape and only a single Punctum
1512 head.  There is no command to explicitly typeset the curved flexa
1513 shape; the decision of when to typeset a curved flexa shape is
1514 based on the musical input.  The idea of this approach is to
1515 separate the musical aspects of the input from the notation style
1516 of the output.  This way, the same input can be reused to typeset
1517 the same music in a different style of Gregorian chant notation.
1518
1519 @noindent
1520 Liquescent neumes
1521
1522 Another main category of notes in Gregorian chant is the so-called
1523 liquescent neumes.  They are used under certain circumstances at
1524 the end of a syllable which ends in a @q{liquescent} letter, i.e.
1525 the sounding consonants that can hold a tone (the nasals, l, r, v,
1526 j, and their diphthong equivalents).  Thus, the liquescent neumes
1527 are never used alone (although some of them can be produced), and
1528 they always fall at the end of a ligature.
1529
1530 Liquescent neumes are represented graphically in two different,
1531 more or less interchangeable ways: with a smaller note or by
1532 @q{twisting} the main note upwards or downwards.  The first is
1533 produced by making a regular @code{pes} or @code{flexa} and
1534 modifying the shape of the second note:
1535 @code{\[ a \pes \deminutum b \] }, the second by modifying the shape
1536 of a single-note neume with @code{\auctum} and one of the direction
1537 markers @code{\descendens} or @code{\ascendens}, e.g.,
1538 @code{ \[ \auctum \descendens a \] }.
1539
1540 @noindent
1541 Special signs
1542
1543 A third category of signs is made up of a small number of signs
1544 with a special meaning (which, incidentally, in most cases is only
1545 vaguely known): the @emph{quilisma}, the @emph{oriscus}, and the
1546 @emph{strophicus}.  These are all produced by prefixing a note name
1547 with the corresponding modifier, @code{\quilisma},
1548 @code{\oriscus}, or @code{\stropha}.
1549
1550 Virtually, within the ligature delimiters @code{\[} and @code{\]},
1551 any number of heads may be accumulated to form a single ligature,
1552 and head prefixes like @code{\pes}, @code{\flexa}, @code{\virga},
1553 @code{\inclinatum}, etc. may be mixed in as desired.  The use of
1554 the set of rules that underlies the construction of the ligatures
1555 in the above table is accordingly extrapolated.  This way,
1556 infinitely many different ligatures can be created.
1557
1558 Note that the use of these signs in the music itself follows
1559 certain rules, which are not checked by LilyPond.  E.g., the
1560 @emph{quilisma} is always the middle note of an ascending
1561 ligature, and usually falls on a half-tone step, but it is
1562 perfectly possible, although incorrect, to make a single-note
1563 quilisma.
1564
1565 In addition to the note signs, @file{gregorian.ly} also defines the
1566 commands @code{\versus}, @code{\responsum}, @code{\ij},
1567 @code{\iij}, @code{\IJ}, and @code{\IIJ}, that will produce the
1568 corresponding characters, e.g., for use in lyrics, as section
1569 markers, etc.  These commands use special Unicode characters and
1570 will only work if a font is used which supports them.
1571
1572
1573 @c neume table
1574
1575 The following table shows a limited, but still representative pool
1576 of Gregorian ligatures, together with the code fragments that
1577 produce the ligatures.  The table is based on the extended neumes
1578 table of the 2nd volume of the Antiphonale Romanum
1579 (@emph{Liber Hymnarius}), published 1983 by the monks of Solesmes.
1580 The first column gives the name of the ligature, with the main form in
1581 boldface and the liquescent forms in italics.  The third column
1582 shows the code fragment that produces this ligature, using
1583 @code{g}, @code{a}, and @code{b} as example pitches.
1584
1585
1586 @b{Single-note neums}
1587
1588 @multitable @columnfractions .4 .2 .4
1589
1590 @item
1591 @b{Basic} and @emph{Liquescent} forms
1592 @tab
1593 @b{Output}
1594 @tab
1595 @b{LilyPond@*
1596 code}
1597
1598 @c TODO: \layout block is identical in all of the below examples.
1599 @c Therefore, it should somehow be included rather than duplicated all
1600 @c the time.  --jr
1601
1602 @c why not make variables in ly/engraver-init.ly? --hwn
1603
1604 @c Because it's just used to typeset plain notes without
1605 @c a staff for demonstration purposes rather than something
1606 @c special of Gregorian chant notation.  --jr
1607
1608
1609 @item
1610 @b{Punctum}
1611 @tab
1612 @lilypond[staffsize=26,line-width=1.5\cm]
1613 \include "gregorian.ly"
1614 \score {
1615   \relative {
1616     % Punctum
1617     \[ b' \]
1618   }
1619 \layout { \neumeDemoLayout }}
1620 @end lilypond
1621 @tab
1622 @code{\[ b \]}
1623
1624 @item
1625 @tab
1626 @lilypond[staffsize=26,line-width=1.5\cm]
1627 \include "gregorian.ly"
1628 \score {
1629   \relative {
1630     % Punctum
1631     \[ \cavum b' \]
1632   }
1633 \layout { \neumeDemoLayout }}
1634 @end lilypond
1635 @tab
1636 @code{\[ \cavum b \]}
1637
1638 @item
1639 @tab
1640 @lilypond[staffsize=26,line-width=1.5\cm]
1641 \include "gregorian.ly"
1642 \score {
1643   \relative {
1644     % Punctum
1645     \[ \linea b' \]
1646   }
1647 \layout { \neumeDemoLayout }}
1648 @end lilypond
1649 @tab
1650 @code{\[ \linea b \]}
1651
1652 @item
1653 @emph{Punctum Auctum Ascendens}
1654 @tab
1655 @lilypond[staffsize=26,line-width=2.5\cm]
1656 \include "gregorian.ly"
1657 \score {
1658   \relative {
1659     % Punctum Auctum Ascendens
1660     \[ \auctum \ascendens b' \]
1661   }
1662 \layout { \neumeDemoLayout }}
1663 @end lilypond
1664 @tab
1665 @code{\[ \auctum \ascendens b \]}
1666
1667 @item
1668 @emph{Punctum Auctum Descendens}
1669 @tab
1670 @lilypond[staffsize=26,line-width=2.5\cm]
1671 \include "gregorian.ly"
1672 \score {
1673   \relative {
1674     % Punctum Auctum Descendens
1675     \[ \auctum \descendens b' \]
1676   }
1677 \layout { \neumeDemoLayout }}
1678 @end lilypond
1679 @tab
1680 @code{\[ \auctum \descendens b \]}
1681
1682 @item
1683 @b{Punctum inclinatum}
1684 @tab
1685 @lilypond[staffsize=26,line-width=1.5\cm]
1686 \include "gregorian.ly"
1687 \score {
1688   \relative {
1689     % Punctum Inclinatum
1690     \[ \inclinatum b' \]
1691   }
1692 \layout { \neumeDemoLayout }}
1693 @end lilypond
1694 @tab
1695 @code{\[ \inclinatum b \]}
1696
1697 @item
1698 @emph{Punctum Inclinatum Auctum}
1699 @tab
1700 @lilypond[staffsize=26,line-width=2.5\cm]
1701 \include "gregorian.ly"
1702 \score {
1703   \relative {
1704     % Punctum Inclinatum Auctum
1705     \[ \inclinatum \auctum b' \]
1706   }
1707 \layout { \neumeDemoLayout }}
1708 @end lilypond
1709 @tab
1710 @code{\[ \inclinatum \auctum b \]}
1711
1712 @item
1713 @emph{Punctum Inclinatum Parvum}
1714 @tab
1715 @lilypond[staffsize=26,line-width=1.0\cm]
1716 \include "gregorian.ly"
1717 \score {
1718   \relative {
1719     % Punctum Inclinatum Parvum
1720     \[ \inclinatum \deminutum b' \]
1721   }
1722 \layout { \neumeDemoLayout }}
1723 @end lilypond
1724 @tab
1725 @code{\[ \inclinatum \deminutum b \]}
1726
1727 @item
1728 @b{Virga}
1729 @tab
1730 @lilypond[staffsize=26,line-width=1.0\cm]
1731 \include "gregorian.ly"
1732 \score {
1733   \relative {
1734     % Virga
1735     \[ \virga b' \]
1736   }
1737 \layout { \neumeDemoLayout }}
1738 @end lilypond
1739 @tab
1740
1741 @end multitable
1742
1743 @noindent
1744 @b{Two-note ligatures}
1745
1746 @multitable @columnfractions .4 .2 .4
1747
1748 @item
1749 @b{Clivis vel Flexa}
1750 @tab
1751 @lilypond[staffsize=26,line-width=1.0\cm]
1752 \include "gregorian.ly"
1753 \score {
1754   \relative {
1755     % Clivis vel Flexa
1756     \[ b' \flexa g \]
1757   }
1758 \layout { \neumeDemoLayout }}
1759 @end lilypond
1760 @tab
1761 @code{\[ b \flexa g \]}
1762
1763
1764 @item
1765 @emph{Clivis Aucta Descendens}
1766 @tab
1767 @lilypond[staffsize=26,line-width=2.0\cm]
1768 \include "gregorian.ly"
1769 \score {
1770   \relative {
1771     % Clivis Aucta Descendens
1772     \[ b' \flexa \auctum \descendens g \]
1773   }
1774 \layout { \neumeDemoLayout }}
1775 @end lilypond
1776 @tab
1777 @code{\[ b \flexa \auctum \descendens g \]}
1778
1779 @item
1780 @emph{Clivis Aucta Ascendens}
1781 @tab
1782 @lilypond[staffsize=26,line-width=2.0\cm]
1783 \include "gregorian.ly"
1784 \score {
1785   \relative {
1786     % Clivis Aucta Ascendens
1787     \[ b' \flexa \auctum \ascendens g \]
1788   }
1789 \layout { \neumeDemoLayout }}
1790 @end lilypond
1791 @tab
1792 @code{\[ b \flexa \auctum \ascendens g \]}
1793
1794 @item
1795 @emph{Cephalicus}
1796 @tab
1797 @lilypond[staffsize=26,line-width=2.0\cm]
1798 \include "gregorian.ly"
1799 \score {
1800   \relative {
1801     % Cephalicus
1802     \[ b' \flexa \deminutum g \]
1803   }
1804 \layout { \neumeDemoLayout }}
1805 @end lilypond
1806 @tab
1807 @code{\[ b \flexa \deminutum g \]}
1808
1809 @item
1810 @b{Podatus/Pes}
1811 @tab
1812 @lilypond[staffsize=26,line-width=1.0\cm]
1813 \include "gregorian.ly"
1814 \score {
1815   \relative {
1816     % Podatus vel Pes
1817     \[ g' \pes b \]
1818   }
1819 \layout { \neumeDemoLayout }}
1820 @end lilypond
1821 @tab
1822 @code{\[ g \pes b \]}
1823
1824 @item
1825 @emph{Pes Auctus Descendens}
1826 @tab
1827 @lilypond[staffsize=26,line-width=1.0\cm]
1828 \include "gregorian.ly"
1829 \score {
1830   \relative {
1831     % Pes Auctus Descendens
1832     \[ g' \pes \auctum \descendens b \]
1833   }
1834 \layout { \neumeDemoLayout }}
1835 @end lilypond
1836 @tab
1837 @code{\[ g \pes \auctum \descendens b \]}
1838
1839 @item
1840 @emph{Pes Auctus Ascendens}
1841 @tab
1842 @lilypond[staffsize=26,line-width=1.0\cm]
1843 \include "gregorian.ly"
1844 \score {
1845   \relative {
1846     % Pes Auctus Ascendens
1847     \[ g' \pes \auctum \ascendens b \]
1848   }
1849 \layout { \neumeDemoLayout }}
1850 @end lilypond
1851 @tab
1852 @code{\[ g \pes \auctum \ascendens b \]}
1853
1854 @item
1855 @emph{Epiphonus}
1856 @tab
1857 @lilypond[staffsize=26,line-width=1.0\cm]
1858 \include "gregorian.ly"
1859 \score {
1860   \relative {
1861     % Epiphonus
1862     \[ g' \pes \deminutum b \]
1863   }
1864 \layout { \neumeDemoLayout }}
1865 @end lilypond
1866 @tab
1867 @code{\[ g \pes \deminutum b \]}
1868
1869 @item
1870 @emph{Pes Initio Debilis}
1871 @tab
1872 @lilypond[staffsize=26,line-width=1.0\cm]
1873 \include "gregorian.ly"
1874 \score {
1875   \relative {
1876     % Pes Initio Debilis
1877     \[ \deminutum g' \pes b \]
1878   }
1879 \layout { \neumeDemoLayout }}
1880 @end lilypond
1881 @tab
1882 @code{\[ \deminutum g \pes b \]}
1883
1884 @item
1885 @emph{Pes Auctus Descendens Initio Debilis}
1886 @tab
1887 @lilypond[staffsize=26,line-width=1.0\cm]
1888 \include "gregorian.ly"
1889 \score {
1890   \relative {
1891     % Pes Auctus Descendens Initio Debilis
1892     \[ \deminutum g' \pes \auctum \descendens b \]
1893   }
1894 \layout { \neumeDemoLayout }}
1895 @end lilypond
1896 @tab
1897 @code{\[ \deminutum g \pes \auctum \descendens b \]}
1898
1899 @end multitable
1900
1901 @noindent
1902 @b{Multi-note ligatures}
1903
1904 @multitable @columnfractions .4 .2 .4
1905
1906 @item
1907 @b{Torculus}
1908 @tab
1909 @lilypond[staffsize=26,line-width=1.0\cm]
1910 \include "gregorian.ly"
1911 \score {
1912   \relative {
1913     % Torculus
1914     \[ a' \pes b \flexa g \]
1915   }
1916 \layout { \neumeDemoLayout }}
1917 @end lilypond
1918 @tab
1919 @code{\[ a \pes b \flexa g \]}
1920
1921 @item
1922 @emph{Torculus Auctus Descendens}
1923 @tab
1924 @lilypond[staffsize=26,line-width=1.0\cm]
1925 \include "gregorian.ly"
1926 \score {
1927   \relative {
1928     % Torculus Auctus Descendens
1929     \[ a' \pes b \flexa \auctum \descendens g \]
1930   }
1931 \layout { \neumeDemoLayout }}
1932 @end lilypond
1933 @tab
1934 @code{\[ a \pes b \flexa \auctum \descendens g \]}
1935
1936 @item
1937 @emph{Torculus Deminutus}
1938 @tab
1939 @lilypond[staffsize=26,line-width=1.0\cm]
1940 \include "gregorian.ly"
1941 \score {
1942   \relative {
1943     % Torculus Deminutus
1944     \[ a' \pes b \flexa \deminutum g \]
1945   }
1946 \layout { \neumeDemoLayout }}
1947 @end lilypond
1948 @tab
1949 @code{\[ a \pes b \flexa \deminutum g \]}
1950
1951 @item
1952 @emph{Torculus Initio Debilis}
1953 @tab
1954 @lilypond[staffsize=26,line-width=1.0\cm]
1955 \include "gregorian.ly"
1956 \score {
1957   \relative {
1958     % Torculus Initio Debilis
1959     \[ \deminutum a' \pes b \flexa g \]
1960   }
1961 \layout { \neumeDemoLayout }}
1962 @end lilypond
1963 @tab
1964 @code{\[ \deminutum a \pes b \flexa g \]}
1965
1966 @item
1967 @emph{Torculus Auctus Descendens Initio Debilis}
1968 @tab
1969 @lilypond[staffsize=26,line-width=1.0\cm]
1970 \include "gregorian.ly"
1971 \score {
1972   \relative {
1973     % Torculus Auctus Descendens Initio Debilis
1974     \[ \deminutum a' \pes b \flexa \auctum \descendens g \]
1975   }
1976 \layout { \neumeDemoLayout }}
1977 @end lilypond
1978 @tab
1979 @code{\[ \deminutum a \pes b \flexa \auctum \descendens g \]}
1980
1981 @item
1982 @emph{Torculus Deminutus Initio Debilis}
1983 @tab
1984 @lilypond[staffsize=26,line-width=1.0\cm]
1985 \include "gregorian.ly"
1986 \score {
1987   \relative {
1988     % Torculus Deminutus Initio Debilis
1989     \[ \deminutum a' \pes b \flexa \deminutum g \]
1990   }
1991 \layout { \neumeDemoLayout }}
1992 @end lilypond
1993 @tab
1994 @code{\[ \deminutum a \pes b \flexa \deminutum g \]}
1995
1996 @item
1997 @b{Porrectus}
1998 @tab
1999 @lilypond[staffsize=26,line-width=1.0\cm]
2000 \include "gregorian.ly"
2001 \score {
2002   \relative {
2003     % Porrectus
2004     \[ a' \flexa g \pes b \]
2005   }
2006 \layout { \neumeDemoLayout }}
2007 @end lilypond
2008 @tab
2009 @code{\[ a \flexa g \pes b \]}
2010
2011 @item
2012 @emph{Porrectus Auctus Descendens}
2013 @tab
2014 @lilypond[staffsize=26,line-width=1.0\cm]
2015 \include "gregorian.ly"
2016 \score {
2017   \relative {
2018     % Porrectus Auctus Descendens
2019     \[ a' \flexa g \pes \auctum \descendens b \]
2020   }
2021 \layout { \neumeDemoLayout }}
2022 @end lilypond
2023 @tab
2024 @code{\[ a \flexa g \pes \auctum \descendens b \]}
2025
2026 @item
2027 @emph{Porrectus Deminutus}
2028 @tab
2029 @lilypond[staffsize=26,line-width=1.0\cm]
2030 \include "gregorian.ly"
2031 \score {
2032   \relative {
2033     % Porrectus Deminutus
2034     \[ a' \flexa g \pes \deminutum b \]
2035   }
2036 \layout { \neumeDemoLayout }}
2037 @end lilypond
2038 @tab
2039 @code{\[ a \flexa g \pes \deminutum b \]}
2040
2041 @item
2042 @b{Climacus}
2043 @tab
2044 @lilypond[staffsize=26,line-width=1.0\cm]
2045 \include "gregorian.ly"
2046 \score {
2047   \relative {
2048     % Climacus
2049     \[ \virga b' \inclinatum a \inclinatum g \]
2050   }
2051 \layout { \neumeDemoLayout }}
2052 @end lilypond
2053 @tab
2054 @code{\[ \virga b \inclinatum a \inclinatum g \]}
2055
2056 @item
2057 @emph{Climacus Auctus}
2058 @tab
2059 @lilypond[staffsize=26,line-width=1.0\cm]
2060 \include "gregorian.ly"
2061 \score {
2062   \relative {
2063     % Climacus Auctus
2064     \[ \virga b' \inclinatum a \inclinatum \auctum g \]
2065   }
2066 \layout { \neumeDemoLayout }}
2067 @end lilypond
2068 @tab
2069 @code{\[ \virga b \inclinatum a \inclinatum \auctum g \]}
2070
2071 @item
2072 @emph{Climacus Deminutus}
2073 @tab
2074 @lilypond[staffsize=26,line-width=1.0\cm]
2075 \include "gregorian.ly"
2076 \score {
2077   \relative {
2078     % Climacus Deminutus
2079     \[ \virga b' \inclinatum a \inclinatum \deminutum g \]
2080   }
2081 \layout { \neumeDemoLayout }}
2082 @end lilypond
2083 @tab
2084 @code{\[ \virga b \inclinatum a \inclinatum \deminutum g \]}
2085
2086 @item
2087 @b{Scandicus}
2088 @tab
2089 @lilypond[staffsize=26,line-width=1.0\cm]
2090 \include "gregorian.ly"
2091 \score {
2092   \relative {
2093     % Scandicus
2094     \[ g' \pes a \virga b \]
2095   }
2096 \layout { \neumeDemoLayout }}
2097 @end lilypond
2098 @tab
2099 @code{\[ g \pes a \virga b \]}
2100
2101 @item
2102 @emph{Scandicus Auctus Descendens}
2103 @tab
2104 @lilypond[staffsize=26,line-width=1.0\cm]
2105 \include "gregorian.ly"
2106 \score {
2107   \relative {
2108     % Scandicus Auctus Descendens
2109     \[ g' \pes a \pes \auctum \descendens b \]
2110   }
2111 \layout { \neumeDemoLayout }}
2112 @end lilypond
2113 @tab
2114 @code{\[ g \pes a \pes \auctum \descendens b \]}
2115
2116 @item
2117 @emph{Scandicus Deminutus}
2118 @tab
2119 @lilypond[staffsize=26,line-width=1.0\cm]
2120 \include "gregorian.ly"
2121 \score {
2122   \relative {
2123     % Scandicus Deminutus
2124     \[ g' \pes a \pes \deminutum b \]
2125   }
2126 \layout { \neumeDemoLayout }}
2127 @end lilypond
2128 @tab
2129 @code{\[ g \pes a \pes \deminutum b \]}
2130
2131 @end multitable
2132
2133 @noindent
2134 @b{Special Signs}
2135
2136 @multitable @columnfractions .4 .2 .4
2137
2138 @item
2139 @b{Quilisma}
2140 @tab
2141 @lilypond[staffsize=26,line-width=1.0\cm]
2142 \include "gregorian.ly"
2143 \score {
2144   \relative {
2145     % Quilisma
2146     \[ g' \pes \quilisma a \pes b \]
2147   }
2148 \layout { \neumeDemoLayout }}
2149 @end lilypond
2150 @tab
2151 @code{\[ g \pes \quilisma a \pes b \]}
2152
2153 @item
2154 @emph{Quilisma Pes Auctus Descendens}
2155 @tab
2156 @lilypond[staffsize=26,line-width=1.0\cm]
2157 \include "gregorian.ly"
2158 \score {
2159   \relative {
2160     % Quilisma Pes Auctus Descendens
2161     \[ g' \quilisma a \pes \auctum \descendens b \]
2162   }
2163 \layout { \neumeDemoLayout }}
2164 @end lilypond
2165 @tab
2166 @code{\[ \quilisma g \pes \auctum \descendens b \]}
2167
2168 @item
2169 @b{Oriscus}
2170 @tab
2171 @lilypond[staffsize=26,line-width=1.0\cm]
2172 \include "gregorian.ly"
2173 \score {
2174   \relative {
2175     % Oriscus
2176     \[ \oriscus b' \]
2177   }
2178 \layout { \neumeDemoLayout }}
2179 @end lilypond
2180 @tab
2181 @code{\[ \oriscus b \]}
2182
2183 @item
2184 @emph{Pes Quassus}
2185 @tab
2186 @lilypond[staffsize=26,line-width=1.0\cm]
2187 \include "gregorian.ly"
2188 \score {
2189   \relative {
2190     % Pes Quassus
2191     \[ \oriscus g' \pes \virga b \]
2192   }
2193 \layout { \neumeDemoLayout }}
2194 @end lilypond
2195 @tab
2196 @code{\[ \oriscus g \pes \virga b \]}
2197
2198 @item
2199 @emph{Pes Quassus Auctus Descendens}
2200 @tab
2201 @lilypond[staffsize=26,line-width=1.0\cm]
2202 \include "gregorian.ly"
2203 \score {
2204   \relative {
2205     % Pes Quassus Auctus Descendens
2206     \[ \oriscus g' \pes \auctum \descendens b \]
2207   }
2208 \layout { \neumeDemoLayout }}
2209 @end lilypond
2210 @tab
2211 @code{\[ \oriscus g \pes \auctum \descendens b \]}
2212
2213 @item
2214 @b{Salicus}
2215 @tab
2216 @lilypond[staffsize=26,line-width=1.0\cm]
2217 \include "gregorian.ly"
2218 \score {
2219   \relative {
2220     % Salicus
2221     \[ g' \oriscus a \pes \virga b \]
2222   }
2223 \layout { \neumeDemoLayout }}
2224 @end lilypond
2225 @tab
2226 @code{\[ g \oriscus a \pes \virga b \]}
2227
2228 @item
2229 @emph{Salicus Auctus Descendens}
2230 @tab
2231 @lilypond[staffsize=26,line-width=1.0\cm]
2232 \include "gregorian.ly"
2233 \score {
2234   \relative {
2235     % Salicus Auctus Descendens
2236     \[ g' \oriscus a \pes \auctum \descendens b \]
2237   }
2238 \layout { \neumeDemoLayout }}
2239 @end lilypond
2240 @tab
2241 @code{\[ g \oriscus a \pes \auctum \descendens b \]}
2242
2243 @item
2244 @b{(Apo)stropha}
2245 @tab
2246 @lilypond[staffsize=26,line-width=1.0\cm]
2247 \include "gregorian.ly"
2248 \score {
2249   \relative {
2250     % Stropha
2251     \[ \stropha b' \]
2252   }
2253 \layout { \neumeDemoLayout }}
2254 @end lilypond
2255 @tab
2256 @code{\[ \stropha b \]}
2257
2258 @item
2259 @emph{Stropha Aucta}
2260 @tab
2261 @lilypond[staffsize=26,line-width=1.0\cm]
2262 \include "gregorian.ly"
2263 \score {
2264   \relative {
2265     % Stropha Aucta
2266     \[ \stropha \auctum b' \]
2267   }
2268 \layout { \neumeDemoLayout }}
2269 @end lilypond
2270 @tab
2271 @code{\[ \stropha \auctum b \]}
2272
2273 @item
2274 @b{Bistropha}
2275 @tab
2276 @lilypond[staffsize=26,line-width=1.0\cm]
2277 \include "gregorian.ly"
2278 \score {
2279   \relative {
2280     % Bistropha
2281     \[ \stropha b' \stropha b \]
2282   }
2283 \layout { \neumeDemoLayout }}
2284 @end lilypond
2285 @tab
2286 @code{\[ \stropha b \stropha b \]}
2287
2288 @item
2289 @b{Tristropha}
2290 @tab
2291 @lilypond[staffsize=26,line-width=1.0\cm]
2292 \include "gregorian.ly"
2293 \score {
2294   \relative {
2295     % Tristropha
2296     \[ \stropha b' \stropha b \stropha b \]
2297   }
2298 \layout { \neumeDemoLayout }}
2299 @end lilypond
2300 @tab
2301 @code{\[ \stropha b \stropha b \stropha b \]}
2302
2303 @item
2304 @emph{Trigonus}
2305 @tab
2306 @lilypond[staffsize=26,line-width=1.0\cm]
2307 \include "gregorian.ly"
2308 \score {
2309   \relative {
2310     % Trigonus
2311     \[ \stropha b' \stropha b \stropha a \]
2312   }
2313   \layout { \neumeDemoLayout }
2314 }
2315 @end lilypond
2316 @tab
2317 @code{\[ \stropha b \stropha b \stropha a \]}
2318
2319 @end multitable
2320
2321
2322 @predefined
2323 The following head prefixes are supported:
2324 @funindex \virga
2325 @code{\virga},
2326 @funindex \stropha
2327 @code{\stropha},
2328 @funindex \inclinatum
2329 @code{\inclinatum},
2330 @funindex \auctum
2331 @code{\auctum},
2332 @funindex \descendens
2333 @code{\descendens},
2334 @funindex \ascendens
2335 @code{\ascendens},
2336 @funindex \oriscus
2337 @code{\oriscus},
2338 @funindex \quilisma
2339 @code{\quilisma},
2340 @funindex \deminutum
2341 @code{\deminutum},
2342 @funindex \cavum
2343 @code{\cavum},
2344 @funindex \linea
2345 @code{\linea}.
2346 @endpredefined
2347
2348 Head prefixes can be accumulated, though restrictions apply.  For
2349 example, either @code{\descendens} or @code{\ascendens} can be applied
2350 to a head, but not both to the same head.
2351
2352 @funindex \pes
2353 @funindex \flexa
2354
2355 Two adjacent heads can be tied together with the @code{\pes} and
2356 @code{\flexa} infix commands for a rising and falling line of melody,
2357 respectively.
2358
2359 @funindex \augmentum
2360
2361 Use the unary music function @code{\augmentum} to add augmentum dots.
2362
2363 @seealso
2364 Music Glossary:
2365 @rglos{ligature}.
2366
2367 Notation Reference:
2368 @ref{Gregorian square neume ligatures},
2369 @ref{White mensural ligatures},
2370 @ref{Ligatures}.
2371
2372 @knownissues
2373 When an @code{\augmentum} dot appears at the end of the last staff
2374 within a ligature, it is sometimes vertically placed wrong.  As a
2375 workaround, add an additional skip note (e.g., @code{s8}) as last note
2376 of the staff.
2377
2378 @code{\augmentum} should be implemented as a head prefix rather than a
2379 unary music function, such that @code{\augmentum} can be intermixed
2380 with head prefixes in arbitrary order.
2381
2382 @node Typesetting Kievan square notation
2383 @subsection Typesetting Kievan square notation
2384
2385 @menu
2386 * Kievan contexts::
2387 * Kievan clefs::
2388 * Kievan notes::
2389 * Kievan accidentals::
2390 * Kievan bar line::
2391 * Kievan melismata::
2392 @end menu
2393
2394 @node Kievan contexts
2395 @unnumberedsubsubsec Kievan contexts
2396
2397 @cindex KievanVoiceContext
2398 @cindex KievanStaffContext
2399
2400 As with Mensural and Gregorian notation, the predefined
2401 @code{KievanVoice} and @code{KievanStaff} contexts can be used
2402 to engrave a piece in square notation.  These contexts initialize
2403 all relevant context properties and grob properties to proper
2404 values, so you can immediately go ahead entering the chant:
2405
2406 @lilypond[quote,ragged-right,verbatim]
2407 \score {
2408   <<
2409     \new KievanVoice = "melody" \relative c' {
2410       \cadenzaOn
2411         c4 c c c c2 b\longa
2412         \bar "k"
2413     }
2414     \new Lyrics \lyricsto "melody" {
2415       Го -- спо -- ди по -- ми -- луй.
2416     }
2417   >>
2418 }
2419 @end lilypond
2420
2421 @seealso
2422 Music Glossary:
2423 @rglos{kievan notation}.
2424
2425 @knownissues
2426 LilyPond supports Kievan notation of the Synodal style, as used in
2427 the corpus of chantbooks printed by the Russian Holy Synod in the
2428 1910's and recently reprinted by the Moscow Patriarchate Publishing
2429 House.  LilyPond does not support the older (less common) forms of
2430 Kievan notation that were used in Galicia to notate Rusyn plainchant.
2431
2432 @node Kievan clefs
2433 @unnumberedsubsubsec Kievan clefs
2434
2435 @cindex clefs
2436
2437 There is only one clef used in Kievan notation (the Tse-fa-ut Clef).
2438 It is used to indicate the position of @code{c}:
2439
2440 @lilypond[quote,relative=1,notime,verbatim]
2441   \clef "kievan-do"
2442   \kievanOn
2443   c
2444 @end lilypond
2445
2446 @seealso
2447 Music Glossary:
2448 @rglos{kievan notation},
2449 @rglos{clef}.
2450
2451 Notation Reference:
2452 @ref{Clef}.
2453
2454 @node Kievan notes
2455 @unnumberedsubsubsec Kievan notes
2456
2457 @cindex note heads, ancient
2458
2459 For Kievan square notation, the appropriate note head style needs
2460 to be chosen and the flags and stems need to be turned off.
2461 This is accomplished by calling the @code{\kievanOn} function,
2462 which sets the appropriate properties of the note head, stems,
2463 and flags. Once Kievan note heads are not needed, these
2464 properties can be reverted by calling the @code{\kievanOff}
2465 function.
2466
2467 The Kievan final note, which usually comes at the end of a piece
2468 of music, may be selected by setting the duration to
2469 @code{\longa}.  The Kievan recitative mark, used to indicate
2470 the chanting of several syllables on one note, may be selected by
2471 setting the duration to @code{\breve}.  The following example
2472 demonstrates the various Kievan note heads:
2473
2474 @lilypond[quote,fragment,ragged-right,verbatim]
2475 \autoBeamOff
2476 \cadenzaOn
2477 \kievanOn
2478 b'1 b'2 b'4 b'8 b'\breve b'\longa
2479 \kievanOff
2480 b'2
2481 @end lilypond
2482
2483 @seealso
2484 Music Glossary:
2485 @rglos{kievan notation},
2486 @rglos{note head}.
2487
2488 Notation Reference:
2489 @ref{Note head styles}.
2490
2491 @knownissues
2492 LilyPond automatically determines if the stem up or stem down
2493 form of a note is drawn.  When setting chant in square notation,
2494 however, it is customary to have the stems point in the same
2495 direction within a single melisma.  This can be done manually by
2496 setting the @code{direction} property of the @code{Stem} object.
2497
2498 @node Kievan accidentals
2499 @unnumberedsubsubsec Kievan accidentals
2500
2501 @cindex accidentals
2502
2503 The @code{kievan} style for accidentals is selected with the
2504 @code{glyph-name-alist} property of the grob @code{Accidental}.
2505 The @code{kievan} style provides a sharp and a flat sign
2506 different from the default style.  There is no natural sign
2507 in Kievan notation.  The sharp sign is not used in Synodal music
2508 but may occur in earlier manuscripts.  It has been included
2509 primarily for the sake of compatibility.
2510
2511 @lilypond[quote,relative=1,notime,verbatim]
2512 \clef "kievan-do"
2513 \override Accidental.glyph-name-alist =
2514  #alteration-kievan-glyph-name-alist
2515 bes' dis,
2516 @end lilypond
2517
2518 @seealso
2519 Music Glossary:
2520 @rglos{kievan notation},
2521 @rglos{accidental}.
2522
2523 Notation Reference:
2524 @ref{Accidentals},
2525 @ref{Automatic accidentals},
2526 @ref{The Feta font}
2527
2528 @node Kievan bar line
2529 @unnumberedsubsubsec Kievan bar line
2530
2531 A decorative figure is commonly placed at the end of a piece of
2532 Kievan notation, which may be called the Kievan final bar line.
2533 It can be invoked as @code{\bar "k"}.
2534
2535 @lilypond[quote,relative=1,notime,verbatim]
2536   \kievanOn
2537   \clef "kievan-do"
2538   c \bar "k"
2539 @end lilypond
2540
2541 @seealso
2542 @ref{Bars},
2543 @ref{The Feta font}
2544
2545 @node Kievan melismata
2546 @unnumberedsubsubsec Kievan melismata
2547
2548 @cindex Ligatures
2549
2550 Notes within a Kievan melisma are usually placed close to each other
2551 and the melismata separated by whitespace. This is done to allow
2552 the chanter to quickly identify the melodic structures of Znamenny
2553 chant. In LilyPond, melismata are treated as ligatures and the
2554 spacing is implemented by the @code{Kievan_ligature_engraver}.
2555
2556 When the @code{KievanVoice} and @code{KievanStaff} contexts are used,
2557 the @code{Kievan_ligature_engraver} is enabled by default. In other
2558 contexts, it can be invoked by replacing the @code{Ligature_bracket_engraver}
2559 with the @code{Kievan_ligature_engraver} in the layout block:
2560
2561 @example
2562 \layout @{
2563   \context @{
2564     \Voice
2565     \remove "Ligature_bracket_engraver"
2566     \consists "Kievan_ligature_engraver"
2567   @}
2568 @}
2569 @end example
2570
2571 The spacing between the notes within a Kievan ligature can be controlled
2572 by setting the @code{padding} property of the @code{KievanLigature}.
2573
2574 The following example demonstrates the use of Kievan ligatures:
2575
2576 @lilypond[quote,ragged-right,verbatim]
2577 \score {
2578   <<
2579     \new KievanVoice = "melody" \relative c' {
2580       \cadenzaOn
2581         e2 \[ e4( d4 ) \] \[ c4( d e  d ) \] e1 \bar "k"
2582     }
2583     \new Lyrics \lyricsto "melody" {
2584       Га -- врі -- и -- лу
2585     }
2586   >>
2587 }
2588 @end lilypond
2589
2590 @seealso
2591 Music Glossary:
2592 @rglos{ligature}.
2593
2594 Notation Reference:
2595 @ref{White mensural ligatures},
2596 @ref{Gregorian square neume ligatures},
2597 @ref{Ligatures}.
2598
2599 @knownissues
2600 Horizontal spacing of ligatures is poor.
2601
2602 @node Working with ancient music---scenarios and solutions
2603 @subsection Working with ancient music---scenarios and solutions
2604
2605 @menu
2606 * Incipits::
2607 * Mensurstriche layout::
2608 * Transcribing Gregorian chant::
2609 * Ancient and modern from one source::
2610 * Editorial markings::
2611 @end menu
2612
2613 Working with ancient music frequently involves particular tasks
2614 which differ considerably from the modern notation for which
2615 LilyPond is designed.  In the rest of this section, a number of
2616 typical scenarios are outlined, with suggestions of solutions.
2617 These involve:
2618
2619 @itemize
2620 @item how to make incipits (i.e. prefatory material to indicate
2621 what the original has looked like) to modern transcriptions of
2622 mensural music;
2623 @item how to achieve the @emph{Mensurstriche} layout frequently
2624 used for modern transcriptions of polyphonic music;
2625 @item how to transcribe Gregorian chant in modern notation;
2626 @item how to generate both ancient and modern notation from the
2627 same source.
2628 @end itemize
2629
2630
2631 @node Incipits
2632 @unnumberedsubsubsec Incipits
2633 @funindex \incipit
2634 @funindex incipit
2635 @cindex incipits, adding
2636
2637 It is customary when transcribing mensural music into modern notation to place
2638 an indication of how the initial rests and note or notes of the original version
2639 appeared - including the original clefs.  This is called an @emph{incipit}.  The
2640 @code{\incipit} command uses the @code{indent} of the main staff to set the
2641 width occupied by the incipit, and @code{incipit-width} to set the width of the
2642 incipit staff.
2643
2644 @lilypond[verbatim,quote,ragged-right]
2645 \score {
2646   \new Staff <<
2647     \new Voice = Tenor {
2648       \set Staff.instrumentName = #"Tenor"
2649       \override Staff.InstrumentName.self-alignment-X = #RIGHT
2650       \incipit { \clef "mensural-c4" \key f \major r\breve r1 c'1 }
2651       \clef "treble_8"
2652       \key f \major
2653       R1 r2 c'2 |
2654       a4. c'8
2655     }
2656     \new Lyrics \lyricsto Tenor { Cyn -- thia your }
2657   >>
2658   \layout
2659   {
2660     indent = 5\cm
2661     incipit-width = 3\cm
2662   }
2663 }
2664 @end lilypond
2665
2666 @knownissues
2667 Note that instrumentName must be set in the music for the incipit to be
2668 produced.  If no instrument name is required then use
2669 @code{\set Staff.instrumentName = #""}.
2670
2671 @c @seealso
2672 @c ... and reference to other sections ...
2673
2674
2675 @node Mensurstriche layout
2676 @unnumberedsubsubsec Mensurstriche layout
2677
2678 @emph{Mensurstriche} (@q{mensuration lines}) is the accepted term
2679 for bar lines that are drawn between the staves of a system but
2680 not through the staves themselves.  It is a common way to preserve
2681 the rhythmic appearance of the original, i.e. not having to break
2682 syncopated notes at bar lines, while still providing the
2683 orientation aids that bar lines give.
2684
2685
2686 @lilypondfile[verbatim,quote,texidoc]
2687 {mensurstriche-layout-bar-lines-between-the-staves.ly}
2688
2689 @c This simple setup will take care of the
2690 @c TODO Add text about lyrics to the lowest line, to be placed
2691 @c outside the StaffGroup.
2692 @c from lsr and -user
2693 @c TBC
2694
2695 @c @seealso
2696 @c ... and reference to other sections ...
2697
2698
2699 @node Transcribing Gregorian chant
2700 @unnumberedsubsubsec Transcribing Gregorian chant
2701
2702 Gregorian chant can be transcribed into modern notation with a
2703 number of simple tweaks.
2704
2705 @b{Stems}.  Stems can be left out altogether by @code{\remove}-ing
2706 the @code{Stem_engraver} from the Voice context:
2707
2708 @example
2709 \layout @{
2710   @dots{}
2711   \context @{
2712     \Voice
2713       \remove "Stem_engraver"
2714   @}
2715 @}
2716 @end example
2717
2718 @b{Timing.} For unmetered chant, there are several alternatives.
2719
2720 The Time_signature_engraver can be removed from the Staff context
2721 without any negative side effects.  The alternative, to make it
2722 transparent, will leave an empty space in the score, since the
2723 invisible signature will still take up space.
2724
2725 In many cases, @code{\set Score.timing = ##f} will give good
2726 results.  Another alternative is to use @code{\cadenzaOn} and
2727 @code{\cadenzaOff}.
2728
2729 To remove the bar lines, the radical approach is to @code{\remove}
2730 the Bar_engraver from the Staff context.  Again, one may want to
2731 use @code{\hide BarLine} instead, if an
2732 occasional barline is wanted.
2733
2734 A common type of transcription is recitativic chant where the
2735 repeated notes are indicated with a single breve.  The text to
2736 the recitation tone can  be dealt with in two different ways:
2737 either set as a single, left-aligned syllable:
2738
2739 @lilypond[verbatim,ragged-right]
2740 \include "gregorian.ly"
2741 chant = \relative {
2742   \clef "G_8"
2743   c'\breve c4 b4 a c2 c4  \divisioMaior
2744   c\breve c4 c f, f \finalis
2745 }
2746
2747 verba = \lyricmode {
2748   \once \override LyricText.self-alignment-X = #-1
2749   "Noctem quietam et" fi -- nem per -- fec -- tum
2750   \once \override LyricText.self-alignment-X = #-1
2751   "concedat nobis Dominus" om -- ni -- po -- tens.
2752 }
2753 \score {
2754   \new Staff <<
2755   \new Voice = "melody" \chant
2756   \new Lyrics = "one" \lyricsto melody \verba
2757   >>
2758   \layout {
2759     \context {
2760       \Staff
2761       \remove "Time_signature_engraver"
2762       \remove "Bar_engraver"
2763     }
2764     \context {
2765       \Voice
2766       \remove "Stem_engraver"
2767     }
2768   }
2769 }
2770 @end lilypond
2771
2772 This works fine, as long as the text doesn't span a line break.  If
2773 that is the case, an alternative is to add hidden notes to the
2774 score, as below.
2775
2776 In some transcription styles, stems are used
2777 occasionally, for example to indicate the transition from a
2778 single-tone recitative to a fixed melodic gesture.  In these cases,
2779 one can use either @code{\hide Stem} or
2780 @code{\override Stem.length = #0} instead of @code{\remove}-ing
2781 the @code{Stem_engraver} and restore the stem
2782 when needed with the corresponding @code{\undo \hide Stem}.
2783
2784 @lilypond[verbatim,ragged-right]
2785 \include "gregorian.ly"
2786 chant = \relative {
2787   \clef "G_8"
2788   \set Score.timing = ##f
2789   \hide Stem
2790   c'\breve \hide NoteHead  c c c c c
2791   \undo \hide NoteHead
2792   \undo \hide Stem \stemUp c4 b4 a
2793   \hide Stem c2 c4  \divisioMaior
2794   c\breve \hide NoteHead c c c c c c c
2795   \undo \hide NoteHead c4 c f, f \finalis
2796 }
2797
2798 verba = \lyricmode {
2799   No -- ctem qui -- e -- tam et fi -- nem per -- fec -- tum
2800   con -- ce -- dat no -- bis Do -- mi -- nus om -- ni -- po -- tens.
2801 }
2802
2803 \score {
2804   \new Staff <<
2805     \new Voice = "melody" \chant
2806     \new Lyrics \lyricsto "melody" \verba
2807   >>
2808   \layout {
2809     \context {
2810       \Staff
2811       \remove "Time_signature_engraver"
2812       \hide BarLine
2813     }
2814   }
2815 }
2816 @end lilypond
2817
2818 Another common situation is transcription of neumatic or
2819 melismatic chants, i.e. chants with a varying number of notes
2820 to each syllable.  In this case, one would want to set the
2821 syllable groups clearly apart, usually also the subdivisions of a
2822 longer melisma.  One way to achieve this is to use a fixed
2823 @code{\time}, e.g., 1/4, and let each syllable or note group fill
2824 one of these measures, with the help of tuplets or shorter
2825 durations.  If the bar lines and all other rhythmical indications
2826 are made transparent, and the space around the bar lines is
2827 increased, this will give a fairly good representation in modern
2828 notation of the original.
2829
2830 To avoid that syllables of different width (such as @qq{-ri} and
2831 @qq{-rum}) spread the syllable note groups unevenly apart, the
2832 @code{'X-extent} property of the @code{LyricText} object may be
2833 set to a fixed value.  Another, more cumbersome way would be to
2834 add the syllables as @code{\markup} elements.  If further
2835 adjustments are necessary, this can be easily done with
2836 @code{s} @q{notes}.
2837
2838 @lilypond[verbatim,quote]
2839 spiritus = \relative {
2840   \time 1/4
2841   \override Lyrics.LyricText.X-extent  = #'(0 . 3)
2842   d'4 \tuplet 3/2 { f8 a g } g a a4 g f8 e
2843   d4 f8 g g8 d f g a g f4 g8 a a4  s
2844   \tuplet 3/2 { g8 f d } e f g a g4
2845 }
2846
2847 spirLyr = \lyricmode {
2848   Spi -- ri -- _ _ tus  _ Do -- mi -- ni  _ re -- ple -- _ vit _
2849   or -- _ bem _  ter -- ra -- _ rum, al -- _ _ le -- _ lu
2850   -- _ ia.
2851 }
2852 \score {
2853   \new Staff <<
2854     \new Voice = "chant" \spiritus
2855     \new Lyrics = "one" \lyricsto "chant" \spirLyr
2856   >>
2857   \layout {
2858     \context {
2859       \Staff
2860       \remove "Time_signature_engraver"
2861       \override BarLine.X-extent = #'(-1 . 1)
2862       \hide Stem
2863       \hide Beam
2864       \hide BarLine
2865       \hide TupletNumber
2866     }
2867   }
2868 }
2869 @end lilypond
2870
2871 @c extract from 1.6.1.1
2872
2873 @c @seealso
2874 @c ... and reference to other sections ...
2875
2876
2877 @node Ancient and modern from one source
2878 @unnumberedsubsubsec Ancient and modern from one source
2879
2880 @lilypondfile[verbatim,quote,ragged-right,texidoc,doctitle]
2881 {using-tags-to-produce-mensural-and-modern-music-from-the-same-source.ly}
2882
2883 @c @seealso
2884 @c ... and reference to other sections ...
2885
2886
2887 @node Editorial markings
2888 @unnumberedsubsubsec Editorial markings
2889
2890
2891 @c @node Baroque rhythmic notation
2892 @c @unnumberedsubsubsec Baroque rhythmic notation
2893
2894 @c TODO Add text
2895 @c try Till Rettig
2896 @c Add example of white note heads:
2897 @c In the french baroque some composers used white note heads in slow pieces,
2898 @c mainly in 3/2-time.  A quarter looks there like an eighth with a white
2899 @c note head.  (Franz-Rudolf Kuhnen)
2900
2901 @c TODO Add example of this:
2902 @c I was referring to e.g. notated a8. a16, which should, if I
2903 @c remember correctly, be interpreted more like a8.. a32 (in the french
2904 @c style).  The editor might want to show that rythmic figure above the
2905 @c staff as an hint to performers.  (Karl Hammer)
2906
2907
2908 @c TBC
2909
2910
2911 @c @seealso
2912 @c ... and reference to other sections ...