]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/notation/ancient.itely
Run scripts/auxiliar/update-with-convert-ly.sh
[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 c'' {
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 c'' {
379       \hide Score.BarNumber {
380         c1\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 multiplyer 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 styles are @code{classical},
767 @code{neomensural}, and @code{mensural}.  @code{classical} differs
768 from the @code{default} style only in that the quarter rest looks
769 like a horizontally mirrored 8th rest.  The @code{mensural} and
770 the @code{neomensural} styles mimic the appearance of rests in
771 manuscripts and prints up to the 16th century.
772
773 The following example demonstrates the @code{mensural} and
774 @code{neomensural} styles:
775
776 @lilypond[quote,fragment,ragged-right,verbatim]
777 \set Score.skipBars = ##t
778 \override Rest.style = #'classical
779 r\longa^"classical" r\breve r1 r2 r4 r8 r16 s \break
780 \override Rest.style = #'mensural
781 r\longa^"mensural" r\breve r1 r2 r4 r8 r16 s \break
782 \override Rest.style = #'neomensural
783 r\longa^"neomensural" r\breve r1 r2 r4 r8 r16
784 @end lilypond
785
786 There are no 32th and 64th rests specifically for the mensural or
787 neo-mensural style.  Instead, the rests from the default style will be
788 taken.
789
790 @seealso
791 Music Glossary:
792 @rglos{mensural notation}.
793
794 Notation Reference:
795 @ref{Rests}.
796
797 Snippets:
798 @rlsr{Ancient notation}.
799
800 @knownissues
801 The glyph for the maxima rest in mensural style is actually a perfect
802 longa rest; use two (or three) longa rests to print a maxima rest.
803 Longa rests are not grouped automatically, so have to be done manually by
804 using pitched rests.
805
806
807 @node Mensural accidentals and key signatures
808 @unnumberedsubsubsec Mensural accidentals and key signatures
809
810 @cindex accidentals
811 @cindex key signature
812
813 The @code{mensural} style provides a sharp and a flat sign
814 different from the default style.  If called for, the natural sign
815 will be taken from the @code{vaticana} style.
816
817 @lilypond[quote,ragged-right,staffsize=26]
818 \markup {
819   \column {
820     "mensural"
821     \line { " " \musicglyph #"accidentals.mensural-1"
822       " " \musicglyph #"accidentals.mensural1" }
823   }
824 }
825 @end lilypond
826
827 The style for accidentals and key signatures is controlled by the
828 @code{glyph-name-alist} property of the grobs @code{Accidental} and
829 @code{KeySignature}, respectively; e.g.:
830
831 @example
832 \override Staff.Accidental.glyph-name-alist =
833   #alteration-mensural-glyph-name-alist
834 @end example
835
836 @seealso
837 Music Glossary:
838 @rglos{mensural notation},
839 @rglos{Pitch names},
840 @rglos{accidental},
841 @rglos{key signature}.
842
843 Notation Reference:
844 @ref{Pitches},
845 @ref{Accidentals},
846 @ref{Automatic accidentals},
847 @ref{Key signature}.
848
849 Internals Reference:
850 @rinternals{KeySignature}.
851
852
853 @node Annotational accidentals (musica ficta)
854 @unnumberedsubsubsec Annotational accidentals (@emph{musica ficta})
855
856 In European music from before about 1600, singers were expected to
857 chromatically alter notes at their own initiative according to
858 certain rules.  This is called @notation{musica ficta}.  In modern
859 transcriptions, these accidentals are usually printed over the
860 note.
861
862 @cindex Accidental, musica ficta
863 @cindex Musica ficta
864
865 Support for such suggested accidentals is included, and can be
866 switched on by setting @code{suggestAccidentals} to true.
867
868 @funindex suggestAccidentals
869
870 @lilypond[verbatim,relative=1]
871 fis gis
872 \set suggestAccidentals = ##t
873 ais bis
874 @end lilypond
875
876 This will treat @emph{every} subsequent accidental as
877 @emph{musica ficta} until it is unset with
878 @code{\set suggestAccidentals = ##f}.  A more practical way is to
879 use @code{\once \set suggestAccidentals = ##t}, which can even be
880 defined as a convenient shorthand:
881
882 @lilypond[quote,verbatim]
883 ficta = { \once \set suggestAccidentals = ##t }
884 \score { \relative c''
885   \new MensuralVoice  {
886     \once \set suggestAccidentals = ##t
887     bes4 a2 g2 \ficta fis8 \ficta e! fis2 g1
888   }
889 }
890 @end lilypond
891
892 @seealso
893 Internals Reference:
894 @rinternals{Accidental_engraver},
895 @rinternals{AccidentalSuggestion}.
896
897
898 @node White mensural ligatures
899 @unnumberedsubsubsec White mensural ligatures
900
901 @cindex Mensural ligatures
902 @cindex White mensural ligatures
903
904 There is limited support for white mensural ligatures.
905
906 To engrave white mensural ligatures, in the layout block, replace
907 the @code{Ligature_bracket_engraver} with the
908 @code{Mensural_ligature_engraver} in the @code{Voice}
909 context:
910
911 @example
912 \layout @{
913   \context @{
914     \Voice
915     \remove "Ligature_bracket_engraver"
916     \consists "Mensural_ligature_engraver"
917   @}
918 @}
919 @end example
920
921 There is no additional input language to describe the shape of a
922 white mensural ligature.  The shape is rather determined solely from
923 the pitch and duration of the enclosed notes.  While this approach may
924 take a new user a while to get accustomed to, it has the great advantage
925 that the full musical information of the ligature is known internally.
926 This is not only required for correct MIDI output, but also allows for
927 automatic transcription of the ligatures.
928
929 At certain places two consecutive notes can be represented either as
930 two squares or as an oblique parallelogram (flexa shape).  In such
931 cases the default is the two squares, but a flexa can be required by
932 setting the @code{ligature-flexa} property of the @emph{second} note
933 head.  The length of a flexa can be set by the note head property
934 @code{flexa-width}.
935
936 For example,
937
938 @c @example
939 @c \set Score.timing = ##f
940 @c \set Score.defaultBarType = "-"
941 @c \override NoteHead.style = #'neomensural
942 @c \override Staff.TimeSignature.style = #'neomensural
943 @c \clef "petrucci-g"
944 @c \[ c'\maxima g \]
945 @c \[ d\longa c\breve f e d \]
946 @c \[ c'\maxima d'\longa \]
947 @c \[ e'1 a g\breve \]
948 @c @end example
949 @lilypond[quote,ragged-right,verbatim]
950 \score {
951   \relative c' {
952     \set Score.timing = ##f
953     \set Score.defaultBarType = "-"
954     \override NoteHead.style = #'petrucci
955     \override Staff.TimeSignature.style = #'mensural
956     \clef "petrucci-g"
957     \[ c'\maxima g \]
958     \[ d\longa
959        \override NoteHead.ligature-flexa = ##t
960        \once \override NoteHead.flexa-width = #3.2
961        c\breve f e d \]
962     \[ c'\maxima d\longa \]
963     \[ e1 a, g\breve \]
964   }
965   \layout {
966     \context {
967       \Voice
968       \remove "Ligature_bracket_engraver"
969       \consists "Mensural_ligature_engraver"
970     }
971   }
972 }
973 @end lilypond
974
975 Without replacing @code{Ligature_bracket_engraver} with
976 @code{Mensural_ligature_engraver}, the same music transcribes
977 to the following
978
979 @lilypond[quote,ragged-right]
980 \relative c' {
981   \set Score.timing = ##f
982   \set Score.defaultBarType = "-"
983   \override NoteHead.style = #'petrucci
984   \override Staff.TimeSignature.style = #'mensural
985   \clef "petrucci-g"
986   \[ c'\maxima g \]
987   \[ d\longa
988      \override NoteHead.ligature-flexa = ##t
989      \once \override NoteHead.flexa-width = #3.2
990      c\breve f e d \]
991   \[ c'\maxima d\longa \]
992   \[ e1 a, g\breve \]
993 }
994 @end lilypond
995
996 @seealso
997 Music Glossary:
998 @rglos{ligature}.
999
1000 Notation Reference:
1001 @ref{Gregorian square neume ligatures},
1002 @ref{Ligatures}.
1003
1004 @knownissues
1005 Horizontal spacing of ligatures is poor.
1006 Accidentals may collide with previous notes.
1007
1008
1009 @node Typesetting Gregorian chant
1010 @subsection Typesetting Gregorian chant
1011
1012 @menu
1013 * Gregorian chant contexts::
1014 * Gregorian clefs::
1015 * Gregorian accidentals and key signatures::
1016 * Divisiones::
1017 * Gregorian articulation signs::
1018 * Augmentum dots (morae)::
1019 * Gregorian square neume ligatures::
1020 @end menu
1021
1022 When typesetting a piece in Gregorian chant notation, the
1023 @code{Vaticana_ligature_engraver} automatically selects the
1024 proper note heads, so there is no need to explicitly set the note
1025 head style.  Still, the note head style can be set, e.g., to
1026 @code{vaticana_punctum} to produce punctum neumes.  Similarly, the
1027 @code{Mensural_ligature_engraver} automatically assembles
1028 mensural ligatures.
1029
1030 @seealso
1031 Music Glossary:
1032 @rglos{ligature}.
1033
1034 Notation Reference:
1035 @ref{White mensural ligatures},
1036 @ref{Ligatures}.
1037
1038
1039 @node Gregorian chant contexts
1040 @unnumberedsubsubsec Gregorian chant contexts
1041
1042 @cindex VaticanaVoiceContext
1043 @cindex VaticanaStaffContext
1044
1045 The predefined @code{VaticanaVoiceContext} and
1046 @code{VaticanaStaffContext} can be used to engrave a piece of
1047 Gregorian chant in the style of the Editio Vaticana.  These contexts
1048 initialize all relevant context properties and grob properties to
1049 proper values, so you can immediately go ahead entering the chant, as
1050 the following excerpt demonstrates:
1051
1052 @lilypond[quote,ragged-right,verbatim]
1053 \include "gregorian.ly"
1054 \score {
1055   <<
1056     \new VaticanaVoice = "cantus" {
1057       \[ c'\melisma c' \flexa a \]
1058       \[ a \flexa \deminutum g\melismaEnd \]
1059       f \divisioMinima
1060       \[ f\melisma \pes a c' c' \pes d'\melismaEnd \]
1061       c' \divisioMinima \break
1062       \[ c'\melisma c' \flexa a \]
1063       \[ a \flexa \deminutum g\melismaEnd \] f \divisioMinima
1064     }
1065     \new Lyrics \lyricsto "cantus" {
1066       San- ctus, San- ctus, San- ctus
1067     }
1068   >>
1069 }
1070 @end lilypond
1071
1072
1073 @c @seealso
1074 @c TODO: nothing here yet ...
1075
1076
1077 @node Gregorian clefs
1078 @unnumberedsubsubsec Gregorian clefs
1079
1080 @cindex clefs
1081
1082 The following table shows all Gregorian clefs that are supported via
1083 the @code{\clef} command.  Some of the clefs use the same glyph,
1084 but differ only with respect to the line they are printed on.  In
1085 such cases, a trailing number in the name is used to enumerate
1086 these clefs, numbered from the lowest to the highest line.  Still,
1087 you can manually force a clef glyph to be typeset on an arbitrary
1088 line, as described in @ref{Clef}.  The note printed to the right
1089 side of each clef in the example column denotes the @code{c'} with
1090 respect to that clef.
1091
1092 @multitable @columnfractions .4 .4 .2
1093 @item
1094 @b{Description}
1095 @tab
1096 @b{Supported Clefs}
1097 @tab
1098 @b{Example}
1099
1100 @item
1101 Editio Vaticana style do clef
1102 @tab
1103 @code{vaticana-do1}, @code{vaticana-do2},@*
1104 @code{vaticana-do3}
1105 @tab
1106 @lilypond[relative=1,notime]
1107   \override Staff.StaffSymbol.line-count = #4
1108   \override Staff.StaffSymbol.color = #red
1109   \override Staff.LedgerLineSpanner.color = #red
1110   \hide Voice.Stem
1111   \override NoteHead.style = #'vaticana.punctum
1112   \clef "vaticana-do2"
1113   c
1114 @end lilypond
1115
1116 @item
1117 Editio Vaticana style fa clef
1118 @tab
1119 @code{vaticana-fa1}, @code{vaticana-fa2}
1120 @tab
1121 @lilypond[relative=1,notime]
1122   \override Staff.StaffSymbol.line-count = #4
1123   \override Staff.StaffSymbol.color = #red
1124   \override Staff.LedgerLineSpanner.color = #red
1125   \hide Voice.Stem
1126   \override NoteHead.style = #'vaticana.punctum
1127   \clef "vaticana-fa2"
1128   c
1129 @end lilypond
1130
1131 @item
1132 Editio Medicaea style do clef
1133 @tab
1134 @code{medicaea-do1}, @code{medicaea-do2},@*
1135 @code{medicaea-do3}
1136 @tab
1137 @lilypond[relative=1,notime]
1138   \override Staff.StaffSymbol.line-count = #4
1139   \override Staff.StaffSymbol.color = #red
1140   \override Staff.LedgerLineSpanner.color = #red
1141   \hide Voice.Stem
1142   \override NoteHead.style = #'medicaea.punctum
1143   \clef "medicaea-do2"
1144   c
1145 @end lilypond
1146
1147 @item
1148 Editio Medicaea style fa clef
1149 @tab
1150 @code{medicaea-fa1}, @code{medicaea-fa2}
1151 @tab
1152 @lilypond[relative=1,notime]
1153   \override Staff.StaffSymbol.line-count = #4
1154   \override Staff.StaffSymbol.color = #red
1155   \override Staff.LedgerLineSpanner.color = #red
1156   \hide Voice.Stem
1157   \override NoteHead.style = #'medicaea.punctum
1158   \clef "medicaea-fa2"
1159   c
1160 @end lilypond
1161
1162 @item
1163 hufnagel style do clef
1164 @tab
1165 @code{hufnagel-do1}, @code{hufnagel-do2},@*
1166 @code{hufnagel-do3}
1167 @tab
1168 @lilypond[relative=1,notime]
1169   \override Staff.StaffSymbol.line-count = #4
1170   \override Staff.StaffSymbol.color = #red
1171   \override Staff.LedgerLineSpanner.color = #red
1172   \hide Voice.Stem
1173   \override NoteHead.style = #'hufnagel.punctum
1174   \clef "hufnagel-do2"
1175   c
1176 @end lilypond
1177
1178 @item
1179 hufnagel style fa clef
1180 @tab
1181 @code{hufnagel-fa1}, @code{hufnagel-fa2}
1182 @tab
1183 @lilypond[relative=1,notime]
1184   \override Staff.StaffSymbol.line-count = #4
1185   \override Staff.StaffSymbol.color = #red
1186   \override Staff.LedgerLineSpanner.color = #red
1187   \hide Voice.Stem
1188   \override NoteHead.style = #'hufnagel.punctum
1189   \clef "hufnagel-fa2"
1190   c
1191 @end lilypond
1192
1193 @item
1194 hufnagel style combined do/fa clef
1195 @tab
1196 @code{hufnagel-do-fa}
1197 @tab
1198 @lilypond[relative=1,notime]
1199   \override Staff.StaffSymbol.color = #red
1200   \override Staff.LedgerLineSpanner.color = #red
1201   \hide Voice.Stem
1202   \override NoteHead.style = #'hufnagel.punctum
1203   \clef "hufnagel-do-fa"
1204   c
1205 @end lilypond
1206 @end multitable
1207
1208 @seealso
1209 Music Glossary:
1210 @rglos{clef}.
1211
1212 Notation Reference:
1213 @ref{Clef}.
1214
1215
1216 @node Gregorian accidentals and key signatures
1217 @unnumberedsubsubsec Gregorian accidentals and key signatures
1218
1219 @cindex accidentals
1220 @cindex key signature
1221
1222 Accidentals for the three different Gregorian styles are available:
1223
1224 @lilypond[quote,ragged-right,staffsize=26]
1225 \markup {
1226   \column {
1227     "vaticana"
1228     \line { " " \musicglyph #"accidentals.vaticana-1"
1229       " " \musicglyph #"accidentals.vaticana0" }
1230   }
1231   \column {
1232     "medicaea"
1233     \line { " " \musicglyph #"accidentals.medicaea-1" }
1234   }
1235   \column {
1236     "hufnagel"
1237     \line { " " \musicglyph #"accidentals.hufnagel-1" }
1238   }
1239 }
1240 @end lilypond
1241
1242 As shown, not all accidentals are supported by each style.  When
1243 trying to access an unsupported accidental, LilyPond will switch to a
1244 different style.
1245
1246 @c @lilypondfile[verbatim,quote,texidoc,doctitle]
1247 @c {ancient-accidentals.ly}
1248
1249 The style for accidentals and key signatures is controlled by the
1250 @code{glyph-name-alist} property of the grobs @code{Accidental} and
1251 @code{KeySignature}, respectively; e.g.:
1252
1253 @example
1254 \override Staff.Accidental.glyph-name-alist =
1255   #alteration-mensural-glyph-name-alist
1256 @end example
1257
1258 @seealso
1259 Music Glossary:
1260 @rglos{accidental},
1261 @rglos{key signature}.
1262
1263 Notation Reference:
1264 @ref{Pitches},
1265 @ref{Accidentals},
1266 @ref{Automatic accidentals},
1267 @ref{Key signature}.
1268
1269 Internals Reference:
1270 @rinternals{KeySignature}.
1271
1272
1273 @node Divisiones
1274 @unnumberedsubsubsec Divisiones
1275
1276 @cindex divisio
1277 @cindex divisiones
1278 @cindex finalis
1279
1280 There are no rests in Gregorian chant notation; instead, it uses
1281 @ref{Divisiones}.
1282
1283 A @emph{divisio} (plural: @emph{divisiones}; Latin word for
1284 @q{division}) is a staff context symbol that is used to indicate
1285 the phrase and section structure of Gregorian music.  The musical
1286 meaning of @emph{divisio minima}, @emph{divisio maior}, and
1287 @emph{divisio maxima} can be characterized as short, medium, and
1288 long pause, somewhat like the breath marks from @ref{Breath marks}.
1289 The  @emph{finalis} sign not only marks the end of a chant, but is
1290 also frequently used within a single antiphonal/responsorial chant
1291 to mark the end of each section.
1292
1293 To use divisiones, include the file @file{gregorian.ly}.  It
1294 contains definitions that you can apply by just inserting
1295 @code{\divisioMinima}, @code{\divisioMaior}, @code{\divisioMaxima},
1296 and @code{\finalis} at proper places in the input.  Some editions use
1297 @emph{virgula} or @emph{caesura} instead of divisio minima.
1298 Therefore, @file{gregorian.ly} also defines @code{\virgula} and
1299 @code{\caesura}
1300
1301 @lilypond[quote,ragged-right]
1302 \include "gregorian.ly"
1303 \score {
1304   <<
1305     \context VaticanaVoice {
1306       \override TextScript.padding = #3
1307       g a g
1308       s^\markup { "divisio minima" }
1309       \divisioMinima
1310       g a g
1311       s^\markup { "divisio maior" }
1312       \divisioMaior
1313       g a g
1314       s^\markup { "divisio maxima" }
1315       \divisioMaxima
1316       \break
1317       g a g
1318       s^\markup { "finalis" }
1319       \finalis
1320       g a g
1321       s^\markup { "virgula" }
1322       \virgula
1323       g a g
1324       s^\markup { "caesura" }
1325       \caesura
1326       g a g
1327     }
1328   >>
1329 }
1330 @end lilypond
1331
1332
1333 @predefined
1334 @funindex \virgula
1335 @code{\virgula},
1336 @funindex \caesura
1337 @code{\caesura},
1338 @funindex \divisioMinima
1339 @code{\divisioMinima},
1340 @funindex \divisioMaior
1341 @code{\divisioMaior},
1342 @funindex \divisioMaxima
1343 @code{\divisioMaxima},
1344 @funindex \finalis
1345 @code{\finalis}.
1346 @endpredefined
1347
1348 @seealso
1349 Music Glossary:
1350 @rglos{caesura},
1351 @rglos{divisio}.
1352
1353 Notation Reference:
1354 @ref{Breath marks}.
1355
1356 Installed Files:
1357 @file{ly/gregorian.ly}.
1358
1359
1360 @node Gregorian articulation signs
1361 @unnumberedsubsubsec Gregorian articulation signs
1362
1363 @cindex articulations
1364
1365 In addition to the standard articulation signs described in
1366 section @ref{Articulations and ornamentations}, articulation signs
1367 specifically designed for use with notation in
1368 @emph{Editio Vaticana} style are provided.
1369
1370 @lilypond[quote,ragged-right,verbatim]
1371 \include "gregorian.ly"
1372 \score {
1373   \new VaticanaVoice {
1374     \override TextScript.font-family = #'typewriter
1375     \override TextScript.font-shape = #'upright
1376     \override Script.padding = #-0.1
1377     a\ictus_"ictus " \bar "" \break
1378     a\circulus_"circulus " \bar "" \break
1379     a\semicirculus_"semicirculus " \bar "" \break
1380     a\accentus_"accentus " \bar "" \break
1381     \[ a_"episema" \episemInitium \pes b \flexa a b \episemFinis \flexa a \]
1382   }
1383 }
1384 @end lilypond
1385
1386 @seealso
1387 Notation Reference:
1388 @ref{Articulations and ornamentations}.
1389
1390 Snippets:
1391 @rlsr{Ancient notation}.
1392
1393 Internals Reference:
1394 @rinternals{Episema},
1395 @rinternals{EpisemaEvent},
1396 @rinternals{Episema_engraver},
1397 @rinternals{Script},
1398 @rinternals{ScriptEvent},
1399 @rinternals{Script_engraver}.
1400
1401 @knownissues
1402 Some articulations are vertically placed too closely to the
1403 corresponding note heads.
1404
1405
1406 @node Augmentum dots (morae)
1407 @unnumberedsubsubsec Augmentum dots (@emph{morae})
1408
1409 Augmentum dots, also called @emph{morae}, are added with the music
1410 function @code{\augmentum}.  Note that @code{\augmentum} is
1411 implemented as a unary music function rather than as head prefix.  It
1412 applies to the immediately following music expression only.  That is,
1413 @code{\augmentum \virga c} will have no visible effect.  Instead, say
1414 @code{\virga \augmentum c} or @code{\augmentum @{\virga c@}}.  Also
1415 note that you can say @code{\augmentum @{a g@}} as a shortcut for
1416 @code{\augmentum a \augmentum g}.
1417
1418 @lilypond[quote,ragged-right,verbatim]
1419 \include "gregorian.ly"
1420 \score {
1421   \new VaticanaVoice {
1422     \[ \augmentum a \flexa \augmentum g \]
1423     \augmentum g
1424   }
1425 }
1426 @end lilypond
1427
1428 @seealso
1429 Notation Reference:
1430 @ref{Breath marks}.
1431
1432 Internals Reference:
1433 @rinternals{BreathingSign}.
1434
1435 Snippets:
1436 @rlsr{Ancient notation}.
1437
1438
1439 @node Gregorian square neume ligatures
1440 @unnumberedsubsubsec Gregorian square neume ligatures
1441
1442 @cindex Square neumes ligatures
1443 @cindex Gregorian square neumes ligatures
1444
1445 There is limited support for Gregorian square neumes notation
1446 (following the style of the Editio Vaticana).  Core ligatures can
1447 already be typeset, but essential issues for serious typesetting are
1448 still lacking, such as (among others) horizontal alignment of multiple
1449 ligatures, lyrics alignment, and proper handling of accidentals.
1450
1451 The support for Gregorian neumes is enabled by @code{\include}ing
1452 @file{gregorian.ly} at the beginning of the file.  This makes available
1453 a number of extra commands to produce the neume symbols used in
1454 plainchant notation.
1455
1456
1457
1458 Note heads can be @emph{modified} and/or @emph{joined}.
1459
1460 @itemize
1461 @item The shape of
1462 the note head can be modified by @emph{prefixing} the note name
1463 with any of the following commands:
1464 @funindex \virga
1465 @code{\virga},
1466 @funindex \stropha
1467 @code{\stropha},
1468 @funindex \inclinatum
1469 @code{\inclinatum},
1470 @funindex \auctum
1471 @code{\auctum},
1472 @funindex \descendens
1473 @code{\descendens},
1474 @funindex \ascendens
1475 @code{\ascendens},
1476 @funindex \oriscus
1477 @code{\oriscus},
1478 @funindex \quilisma
1479 @code{\quilisma},
1480 @funindex \deminutum
1481 @code{\deminutum},
1482 @funindex \cavum
1483 @code{\cavum},
1484 @funindex \linea
1485 @code{\linea}.
1486
1487 @item Ligatures, properly speaking (i.e. notes joined together), are
1488 produced by placing one of the joining commands @code{\pes} or
1489 @code{\flexa}, for upwards and downwards movement, respectively,
1490 @emph{between} the notes to be joined.
1491 @end itemize
1492
1493 A note name without any qualifiers will produce a @emph{punctum}.
1494 All other neumes, including the single-note neumes with a
1495 different shape such as the @emph{virga}, are in principle
1496 considered as ligatures and should therefore be placed
1497 between @code{\[@dots{}\]}.
1498 @c Regarding the @emph{punctum}, @code{b} and @code{\[ b \]} are
1499 @c equivalent.
1500
1501 @noindent
1502 Single-note neumes:
1503
1504 @itemize
1505 @item The @emph{punctum} is the basic note shape (in the
1506 @emph{Vaticana} style: a square with some curvation for
1507 typographical finesse).  In addition to the regular
1508 @emph{punctum}, there is also the oblique @emph{punctum
1509 inclinatum}, produced with the prefix @code{\inclinatum}.  The
1510 regular @emph{punctum} can be modified with @code{\cavum}, which
1511 produces a hollow note, and @code{\linea}, which draws vertical
1512 lines on either side of the note.
1513
1514 @item The @emph{virga} has a descending stem on the right side.  It is
1515 produced by the modifier @code{\virga}.
1516 @end itemize
1517
1518 @noindent
1519 Ligatures
1520
1521 Unlike most other neumes notation systems, the typographical
1522 appearance of ligatures is not directly dictated by the input
1523 commands, but follows certain conventions dependent on musical
1524 meaning.  For example, a three-note ligature with the musical shape
1525 low-high-low, such as @code{\[ a \pes b \flexa g \]}, produces a
1526 Torculus consisting of three Punctum heads, while the shape
1527 high-low-high, such as @code{\[ a \flexa g \pes b \]}, produces a
1528 Porrectus with a curved flexa shape and only a single Punctum
1529 head.  There is no command to explicitly typeset the curved flexa
1530 shape; the decision of when to typeset a curved flexa shape is
1531 based on the musical input.  The idea of this approach is to
1532 separate the musical aspects of the input from the notation style
1533 of the output.  This way, the same input can be reused to typeset
1534 the same music in a different style of Gregorian chant notation.
1535
1536 @noindent
1537 Liquescent neumes
1538
1539 Another main category of notes in Gregorian chant is the so-called
1540 liquescent neumes.  They are used under certain circumstances at
1541 the end of a syllable which ends in a @q{liquescent} letter, i.e.
1542 the sounding consonants that can hold a tone (the nasals, l, r, v,
1543 j, and their diphthong equivalents).  Thus, the liquescent neumes
1544 are never used alone (although some of them can be produced), and
1545 they always fall at the end of a ligature.
1546
1547 Liquescent neumes are represented graphically in two different,
1548 more or less interchangeable ways: with a smaller note or by
1549 @q{twisting} the main note upwards or downwards.  The first is
1550 produced by making a regular @code{pes} or @code{flexa} and
1551 modifying the shape of the second note:
1552 @code{\[ a \pes \deminutum b \] }, the second by modifying the shape
1553 of a single-note neume with @code{\auctum} and one of the direction
1554 markers @code{\descendens} or @code{\ascendens}, e.g.,
1555 @code{ \[ \auctum \descendens a \] }.
1556
1557 @noindent
1558 Special signs
1559
1560 A third category of signs is made up of a small number of signs
1561 with a special meaning (which, incidentally, in most cases is only
1562 vaguely known): the @emph{quilisma}, the @emph{oriscus}, and the
1563 @emph{strophicus}.  These are all produced by prefixing a note name
1564 with the corresponding modifier, @code{\quilisma},
1565 @code{\oriscus}, or @code{\stropha}.
1566
1567 Virtually, within the ligature delimiters @code{\[} and @code{\]},
1568 any number of heads may be accumulated to form a single ligature,
1569 and head prefixes like @code{\pes}, @code{\flexa}, @code{\virga},
1570 @code{\inclinatum}, etc. may be mixed in as desired.  The use of
1571 the set of rules that underlies the construction of the ligatures
1572 in the above table is accordingly extrapolated.  This way,
1573 infinitely many different ligatures can be created.
1574
1575 Note that the use of these signs in the music itself follows
1576 certain rules, which are not checked by LilyPond.  E.g., the
1577 @emph{quilisma} is always the middle note of an ascending
1578 ligature, and usually falls on a half-tone step, but it is
1579 perfectly possible, although incorrect, to make a single-note
1580 quilisma.
1581
1582 In addition to the note signs, @file{gregorian.ly} also defines the
1583 commands @code{\versus}, @code{\responsum}, @code{\ij},
1584 @code{\iij}, @code{\IJ}, and @code{\IIJ}, that will produce the
1585 corresponding characters, e.g., for use in lyrics, as section
1586 markers, etc.  These commands use special Unicode characters and
1587 will only work if a font is used which supports them.
1588
1589
1590 @c neume table
1591
1592 The following table shows a limited, but still representative pool
1593 of Gregorian ligatures, together with the code fragments that
1594 produce the ligatures.  The table is based on the extended neumes
1595 table of the 2nd volume of the Antiphonale Romanum
1596 (@emph{Liber Hymnarius}), published 1983 by the monks of Solesmes.
1597 The first column gives the name of the ligature, with the main form in
1598 boldface and the liquescent forms in italics.  The third column
1599 shows the code fragment that produces this ligature, using
1600 @code{g}, @code{a}, and @code{b} as example pitches.
1601
1602
1603 @b{Single-note neums}
1604
1605 @multitable @columnfractions .4 .2 .4
1606
1607 @item
1608 @b{Basic} and @emph{Liquescent} forms
1609 @tab
1610 @b{Output}
1611 @tab
1612 @b{LilyPond@*
1613 code}
1614
1615 @c TODO: \layout block is identical in all of the below examples.
1616 @c Therefore, it should somehow be included rather than duplicated all
1617 @c the time.  --jr
1618
1619 @c why not make variables in ly/engraver-init.ly? --hwn
1620
1621 @c Because it's just used to typeset plain notes without
1622 @c a staff for demonstration purposes rather than something
1623 @c special of Gregorian chant notation.  --jr
1624
1625
1626 @item
1627 @b{Punctum}
1628 @tab
1629 @lilypond[staffsize=26,line-width=1.5\cm]
1630 \include "gregorian.ly"
1631 \score {
1632   \relative c'' {
1633     % Punctum
1634     \[ b \]
1635   }
1636 \layout { \neumeDemoLayout }}
1637 @end lilypond
1638 @tab
1639 @code{\[ b \]}
1640
1641 @item
1642 @tab
1643 @lilypond[staffsize=26,line-width=1.5\cm]
1644 \include "gregorian.ly"
1645 \score {
1646   \relative c'' {
1647     % Punctum
1648     \[ \cavum b \]
1649   }
1650 \layout { \neumeDemoLayout }}
1651 @end lilypond
1652 @tab
1653 @code{\[ \cavum b \]}
1654
1655 @item
1656 @tab
1657 @lilypond[staffsize=26,line-width=1.5\cm]
1658 \include "gregorian.ly"
1659 \score {
1660   \relative c'' {
1661     % Punctum
1662     \[ \linea b \]
1663   }
1664 \layout { \neumeDemoLayout }}
1665 @end lilypond
1666 @tab
1667 @code{\[ \linea b \]}
1668
1669 @item
1670 @emph{Punctum Auctum Ascendens}
1671 @tab
1672 @lilypond[staffsize=26,line-width=2.5\cm]
1673 \include "gregorian.ly"
1674 \score {
1675   \relative c'' {
1676     % Punctum Auctum Ascendens
1677     \[ \auctum \ascendens b \]
1678   }
1679 \layout { \neumeDemoLayout }}
1680 @end lilypond
1681 @tab
1682 @code{\[ \auctum \ascendens b \]}
1683
1684 @item
1685 @emph{Punctum Auctum Descendens}
1686 @tab
1687 @lilypond[staffsize=26,line-width=2.5\cm]
1688 \include "gregorian.ly"
1689 \score {
1690   \relative c'' {
1691     % Punctum Auctum Descendens
1692     \[ \auctum \descendens b \]
1693   }
1694 \layout { \neumeDemoLayout }}
1695 @end lilypond
1696 @tab
1697 @code{\[ \auctum \descendens b \]}
1698
1699 @item
1700 @b{Punctum inclinatum}
1701 @tab
1702 @lilypond[staffsize=26,line-width=1.5\cm]
1703 \include "gregorian.ly"
1704 \score {
1705   \relative c'' {
1706     % Punctum Inclinatum
1707     \[ \inclinatum b \]
1708   }
1709 \layout { \neumeDemoLayout }}
1710 @end lilypond
1711 @tab
1712 @code{\[ \inclinatum b \]}
1713
1714 @item
1715 @emph{Punctum Inclinatum Auctum}
1716 @tab
1717 @lilypond[staffsize=26,line-width=2.5\cm]
1718 \include "gregorian.ly"
1719 \score {
1720   \relative c'' {
1721     % Punctum Inclinatum Auctum
1722     \[ \inclinatum \auctum b \]
1723   }
1724 \layout { \neumeDemoLayout }}
1725 @end lilypond
1726 @tab
1727 @code{\[ \inclinatum \auctum b \]}
1728
1729 @item
1730 @emph{Punctum Inclinatum Parvum}
1731 @tab
1732 @lilypond[staffsize=26,line-width=1.0\cm]
1733 \include "gregorian.ly"
1734 \score {
1735   \relative c'' {
1736     % Punctum Inclinatum Parvum
1737     \[ \inclinatum \deminutum b \]
1738   }
1739 \layout { \neumeDemoLayout }}
1740 @end lilypond
1741 @tab
1742 @code{\[ \inclinatum \deminutum b \]}
1743
1744 @item
1745 @b{Virga}
1746 @tab
1747 @lilypond[staffsize=26,line-width=1.0\cm]
1748 \include "gregorian.ly"
1749 \score {
1750   \relative c'' {
1751     % Virga
1752     \[ \virga b \]
1753   }
1754 \layout { \neumeDemoLayout }}
1755 @end lilypond
1756 @tab
1757
1758 @end multitable
1759
1760 @noindent
1761 @b{Two-note ligatures}
1762
1763 @multitable @columnfractions .4 .2 .4
1764
1765 @item
1766 @b{Clivis vel Flexa}
1767 @tab
1768 @lilypond[staffsize=26,line-width=1.0\cm]
1769 \include "gregorian.ly"
1770 \score {
1771   \relative c'' {
1772     % Clivis vel Flexa
1773     \[ b \flexa g \]
1774   }
1775 \layout { \neumeDemoLayout }}
1776 @end lilypond
1777 @tab
1778 @code{\[ b \flexa g \]}
1779
1780
1781 @item
1782 @emph{Clivis Aucta Descendens}
1783 @tab
1784 @lilypond[staffsize=26,line-width=2.0\cm]
1785 \include "gregorian.ly"
1786 \score {
1787   \relative c'' {
1788     % Clivis Aucta Descendens
1789     \[ b \flexa \auctum \descendens g \]
1790   }
1791 \layout { \neumeDemoLayout }}
1792 @end lilypond
1793 @tab
1794 @code{\[ b \flexa \auctum \descendens g \]}
1795
1796 @item
1797 @emph{Clivis Aucta Ascendens}
1798 @tab
1799 @lilypond[staffsize=26,line-width=2.0\cm]
1800 \include "gregorian.ly"
1801 \score {
1802   \relative c'' {
1803     % Clivis Aucta Ascendens
1804     \[ b \flexa \auctum \ascendens g \]
1805   }
1806 \layout { \neumeDemoLayout }}
1807 @end lilypond
1808 @tab
1809 @code{\[ b \flexa \auctum \ascendens g \]}
1810
1811 @item
1812 @emph{Cephalicus}
1813 @tab
1814 @lilypond[staffsize=26,line-width=2.0\cm]
1815 \include "gregorian.ly"
1816 \score {
1817   \relative c'' {
1818     % Cephalicus
1819     \[ b \flexa \deminutum g \]
1820   }
1821 \layout { \neumeDemoLayout }}
1822 @end lilypond
1823 @tab
1824 @code{\[ b \flexa \deminutum g \]}
1825
1826 @item
1827 @b{Podatus/Pes}
1828 @tab
1829 @lilypond[staffsize=26,line-width=1.0\cm]
1830 \include "gregorian.ly"
1831 \score {
1832   \relative c'' {
1833     % Podatus vel Pes
1834     \[ g \pes b \]
1835   }
1836 \layout { \neumeDemoLayout }}
1837 @end lilypond
1838 @tab
1839 @code{\[ g \pes b \]}
1840
1841 @item
1842 @emph{Pes Auctus Descendens}
1843 @tab
1844 @lilypond[staffsize=26,line-width=1.0\cm]
1845 \include "gregorian.ly"
1846 \score {
1847   \relative c'' {
1848     % Pes Auctus Descendens
1849     \[ g \pes \auctum \descendens b \]
1850   }
1851 \layout { \neumeDemoLayout }}
1852 @end lilypond
1853 @tab
1854 @code{\[ g \pes \auctum \descendens b \]}
1855
1856 @item
1857 @emph{Pes Auctus Ascendens}
1858 @tab
1859 @lilypond[staffsize=26,line-width=1.0\cm]
1860 \include "gregorian.ly"
1861 \score {
1862   \relative c'' {
1863     % Pes Auctus Ascendens
1864     \[ g \pes \auctum \ascendens b \]
1865   }
1866 \layout { \neumeDemoLayout }}
1867 @end lilypond
1868 @tab
1869 @code{\[ g \pes \auctum \ascendens b \]}
1870
1871 @item
1872 @emph{Epiphonus}
1873 @tab
1874 @lilypond[staffsize=26,line-width=1.0\cm]
1875 \include "gregorian.ly"
1876 \score {
1877   \relative c'' {
1878     % Epiphonus
1879     \[ g \pes \deminutum b \]
1880   }
1881 \layout { \neumeDemoLayout }}
1882 @end lilypond
1883 @tab
1884 @code{\[ g \pes \deminutum b \]}
1885
1886 @item
1887 @emph{Pes Initio Debilis}
1888 @tab
1889 @lilypond[staffsize=26,line-width=1.0\cm]
1890 \include "gregorian.ly"
1891 \score {
1892   \relative c'' {
1893     % Pes Initio Debilis
1894     \[ \deminutum g \pes b \]
1895   }
1896 \layout { \neumeDemoLayout }}
1897 @end lilypond
1898 @tab
1899 @code{\[ \deminutum g \pes b \]}
1900
1901 @item
1902 @emph{Pes Auctus Descendens Initio Debilis}
1903 @tab
1904 @lilypond[staffsize=26,line-width=1.0\cm]
1905 \include "gregorian.ly"
1906 \score {
1907   \relative c'' {
1908     % Pes Auctus Descendens Initio Debilis
1909     \[ \deminutum g \pes \auctum \descendens b \]
1910   }
1911 \layout { \neumeDemoLayout }}
1912 @end lilypond
1913 @tab
1914 @code{\[ \deminutum g \pes \auctum \descendens b \]}
1915
1916 @end multitable
1917
1918 @noindent
1919 @b{Multi-note ligatures}
1920
1921 @multitable @columnfractions .4 .2 .4
1922
1923 @item
1924 @b{Torculus}
1925 @tab
1926 @lilypond[staffsize=26,line-width=1.0\cm]
1927 \include "gregorian.ly"
1928 \score {
1929   \relative c'' {
1930     % Torculus
1931     \[ a \pes b \flexa g \]
1932   }
1933 \layout { \neumeDemoLayout }}
1934 @end lilypond
1935 @tab
1936 @code{\[ a \pes b \flexa g \]}
1937
1938 @item
1939 @emph{Torculus Auctus Descendens}
1940 @tab
1941 @lilypond[staffsize=26,line-width=1.0\cm]
1942 \include "gregorian.ly"
1943 \score {
1944   \relative c'' {
1945     % Torculus Auctus Descendens
1946     \[ a \pes b \flexa \auctum \descendens g \]
1947   }
1948 \layout { \neumeDemoLayout }}
1949 @end lilypond
1950 @tab
1951 @code{\[ a \pes b \flexa \auctum \descendens g \]}
1952
1953 @item
1954 @emph{Torculus Deminutus}
1955 @tab
1956 @lilypond[staffsize=26,line-width=1.0\cm]
1957 \include "gregorian.ly"
1958 \score {
1959   \relative c'' {
1960     % Torculus Deminutus
1961     \[ a \pes b \flexa \deminutum g \]
1962   }
1963 \layout { \neumeDemoLayout }}
1964 @end lilypond
1965 @tab
1966 @code{\[ a \pes b \flexa \deminutum g \]}
1967
1968 @item
1969 @emph{Torculus Initio Debilis}
1970 @tab
1971 @lilypond[staffsize=26,line-width=1.0\cm]
1972 \include "gregorian.ly"
1973 \score {
1974   \relative c'' {
1975     % Torculus Initio Debilis
1976     \[ \deminutum a \pes b \flexa g \]
1977   }
1978 \layout { \neumeDemoLayout }}
1979 @end lilypond
1980 @tab
1981 @code{\[ \deminutum a \pes b \flexa g \]}
1982
1983 @item
1984 @emph{Torculus Auctus Descendens Initio Debilis}
1985 @tab
1986 @lilypond[staffsize=26,line-width=1.0\cm]
1987 \include "gregorian.ly"
1988 \score {
1989   \relative c'' {
1990     % Torculus Auctus Descendens Initio Debilis
1991     \[ \deminutum a \pes b \flexa \auctum \descendens g \]
1992   }
1993 \layout { \neumeDemoLayout }}
1994 @end lilypond
1995 @tab
1996 @code{\[ \deminutum a \pes b \flexa \auctum \descendens g \]}
1997
1998 @item
1999 @emph{Torculus Deminutus Initio Debilis}
2000 @tab
2001 @lilypond[staffsize=26,line-width=1.0\cm]
2002 \include "gregorian.ly"
2003 \score {
2004   \relative c'' {
2005     % Torculus Deminutus Initio Debilis
2006     \[ \deminutum a \pes b \flexa \deminutum g \]
2007   }
2008 \layout { \neumeDemoLayout }}
2009 @end lilypond
2010 @tab
2011 @code{\[ \deminutum a \pes b \flexa \deminutum g \]}
2012
2013 @item
2014 @b{Porrectus}
2015 @tab
2016 @lilypond[staffsize=26,line-width=1.0\cm]
2017 \include "gregorian.ly"
2018 \score {
2019   \relative c'' {
2020     % Porrectus
2021     \[ a \flexa g \pes b \]
2022   }
2023 \layout { \neumeDemoLayout }}
2024 @end lilypond
2025 @tab
2026 @code{\[ a \flexa g \pes b \]}
2027
2028 @item
2029 @emph{Porrectus Auctus Descendens}
2030 @tab
2031 @lilypond[staffsize=26,line-width=1.0\cm]
2032 \include "gregorian.ly"
2033 \score {
2034   \relative c'' {
2035     % Porrectus Auctus Descendens
2036     \[ a \flexa g \pes \auctum \descendens b \]
2037   }
2038 \layout { \neumeDemoLayout }}
2039 @end lilypond
2040 @tab
2041 @code{\[ a \flexa g \pes \auctum \descendens b \]}
2042
2043 @item
2044 @emph{Porrectus Deminutus}
2045 @tab
2046 @lilypond[staffsize=26,line-width=1.0\cm]
2047 \include "gregorian.ly"
2048 \score {
2049   \relative c'' {
2050     % Porrectus Deminutus
2051     \[ a \flexa g \pes \deminutum b \]
2052   }
2053 \layout { \neumeDemoLayout }}
2054 @end lilypond
2055 @tab
2056 @code{\[ a \flexa g \pes \deminutum b \]}
2057
2058 @item
2059 @b{Climacus}
2060 @tab
2061 @lilypond[staffsize=26,line-width=1.0\cm]
2062 \include "gregorian.ly"
2063 \score {
2064   \relative c'' {
2065     % Climacus
2066     \[ \virga b \inclinatum a \inclinatum g \]
2067   }
2068 \layout { \neumeDemoLayout }}
2069 @end lilypond
2070 @tab
2071 @code{\[ \virga b \inclinatum a \inclinatum g \]}
2072
2073 @item
2074 @emph{Climacus Auctus}
2075 @tab
2076 @lilypond[staffsize=26,line-width=1.0\cm]
2077 \include "gregorian.ly"
2078 \score {
2079   \relative c'' {
2080     % Climacus Auctus
2081     \[ \virga b \inclinatum a \inclinatum \auctum g \]
2082   }
2083 \layout { \neumeDemoLayout }}
2084 @end lilypond
2085 @tab
2086 @code{\[ \virga b \inclinatum a \inclinatum \auctum g \]}
2087
2088 @item
2089 @emph{Climacus Deminutus}
2090 @tab
2091 @lilypond[staffsize=26,line-width=1.0\cm]
2092 \include "gregorian.ly"
2093 \score {
2094   \relative c'' {
2095     % Climacus Deminutus
2096     \[ \virga b \inclinatum a \inclinatum \deminutum g \]
2097   }
2098 \layout { \neumeDemoLayout }}
2099 @end lilypond
2100 @tab
2101 @code{\[ \virga b \inclinatum a \inclinatum \deminutum g \]}
2102
2103 @item
2104 @b{Scandicus}
2105 @tab
2106 @lilypond[staffsize=26,line-width=1.0\cm]
2107 \include "gregorian.ly"
2108 \score {
2109   \relative c'' {
2110     % Scandicus
2111     \[ g \pes a \virga b \]
2112   }
2113 \layout { \neumeDemoLayout }}
2114 @end lilypond
2115 @tab
2116 @code{\[ g \pes a \virga b \]}
2117
2118 @item
2119 @emph{Scandicus Auctus Descendens}
2120 @tab
2121 @lilypond[staffsize=26,line-width=1.0\cm]
2122 \include "gregorian.ly"
2123 \score {
2124   \relative c'' {
2125     % Scandicus Auctus Descendens
2126     \[ g \pes a \pes \auctum \descendens b \]
2127   }
2128 \layout { \neumeDemoLayout }}
2129 @end lilypond
2130 @tab
2131 @code{\[ g \pes a \pes \auctum \descendens b \]}
2132
2133 @item
2134 @emph{Scandicus Deminutus}
2135 @tab
2136 @lilypond[staffsize=26,line-width=1.0\cm]
2137 \include "gregorian.ly"
2138 \score {
2139   \relative c'' {
2140     % Scandicus Deminutus
2141     \[ g \pes a \pes \deminutum b \]
2142   }
2143 \layout { \neumeDemoLayout }}
2144 @end lilypond
2145 @tab
2146 @code{\[ g \pes a \pes \deminutum b \]}
2147
2148 @end multitable
2149
2150 @noindent
2151 @b{Special Signs}
2152
2153 @multitable @columnfractions .4 .2 .4
2154
2155 @item
2156 @b{Quilisma}
2157 @tab
2158 @lilypond[staffsize=26,line-width=1.0\cm]
2159 \include "gregorian.ly"
2160 \score {
2161   \relative c'' {
2162     % Quilisma
2163     \[ g \pes \quilisma a \pes b \]
2164   }
2165 \layout { \neumeDemoLayout }}
2166 @end lilypond
2167 @tab
2168 @code{\[ g \pes \quilisma a \pes b \]}
2169
2170 @item
2171 @emph{Quilisma Pes Auctus Descendens}
2172 @tab
2173 @lilypond[staffsize=26,line-width=1.0\cm]
2174 \include "gregorian.ly"
2175 \score {
2176   \relative c'' {
2177     % Quilisma Pes Auctus Descendens
2178     \[ g \quilisma a \pes \auctum \descendens b \]
2179   }
2180 \layout { \neumeDemoLayout }}
2181 @end lilypond
2182 @tab
2183 @code{\[ \quilisma g \pes \auctum \descendens b \]}
2184
2185 @item
2186 @b{Oriscus}
2187 @tab
2188 @lilypond[staffsize=26,line-width=1.0\cm]
2189 \include "gregorian.ly"
2190 \score {
2191   \relative c'' {
2192     % Oriscus
2193     \[ \oriscus b \]
2194   }
2195 \layout { \neumeDemoLayout }}
2196 @end lilypond
2197 @tab
2198 @code{\[ \oriscus b \]}
2199
2200 @item
2201 @emph{Pes Quassus}
2202 @tab
2203 @lilypond[staffsize=26,line-width=1.0\cm]
2204 \include "gregorian.ly"
2205 \score {
2206   \relative c'' {
2207     % Pes Quassus
2208     \[ \oriscus g \pes \virga b \]
2209   }
2210 \layout { \neumeDemoLayout }}
2211 @end lilypond
2212 @tab
2213 @code{\[ \oriscus g \pes \virga b \]}
2214
2215 @item
2216 @emph{Pes Quassus Auctus Descendens}
2217 @tab
2218 @lilypond[staffsize=26,line-width=1.0\cm]
2219 \include "gregorian.ly"
2220 \score {
2221   \relative c'' {
2222     % Pes Quassus Auctus Descendens
2223     \[ \oriscus g \pes \auctum \descendens b \]
2224   }
2225 \layout { \neumeDemoLayout }}
2226 @end lilypond
2227 @tab
2228 @code{\[ \oriscus g \pes \auctum \descendens b \]}
2229
2230 @item
2231 @b{Salicus}
2232 @tab
2233 @lilypond[staffsize=26,line-width=1.0\cm]
2234 \include "gregorian.ly"
2235 \score {
2236   \relative c'' {
2237     % Salicus
2238     \[ g \oriscus a \pes \virga b \]
2239   }
2240 \layout { \neumeDemoLayout }}
2241 @end lilypond
2242 @tab
2243 @code{\[ g \oriscus a \pes \virga b \]}
2244
2245 @item
2246 @emph{Salicus Auctus Descendens}
2247 @tab
2248 @lilypond[staffsize=26,line-width=1.0\cm]
2249 \include "gregorian.ly"
2250 \score {
2251   \relative c'' {
2252     % Salicus Auctus Descendens
2253     \[ g \oriscus a \pes \auctum \descendens b \]
2254   }
2255 \layout { \neumeDemoLayout }}
2256 @end lilypond
2257 @tab
2258 @code{\[ g \oriscus a \pes \auctum \descendens b \]}
2259
2260 @item
2261 @b{(Apo)stropha}
2262 @tab
2263 @lilypond[staffsize=26,line-width=1.0\cm]
2264 \include "gregorian.ly"
2265 \score {
2266   \relative c'' {
2267     % Stropha
2268     \[ \stropha b \]
2269   }
2270 \layout { \neumeDemoLayout }}
2271 @end lilypond
2272 @tab
2273 @code{\[ \stropha b \]}
2274
2275 @item
2276 @emph{Stropha Aucta}
2277 @tab
2278 @lilypond[staffsize=26,line-width=1.0\cm]
2279 \include "gregorian.ly"
2280 \score {
2281   \relative c'' {
2282     % Stropha Aucta
2283     \[ \stropha \auctum b \]
2284   }
2285 \layout { \neumeDemoLayout }}
2286 @end lilypond
2287 @tab
2288 @code{\[ \stropha \auctum b \]}
2289
2290 @item
2291 @b{Bistropha}
2292 @tab
2293 @lilypond[staffsize=26,line-width=1.0\cm]
2294 \include "gregorian.ly"
2295 \score {
2296   \relative c'' {
2297     % Bistropha
2298     \[ \stropha b \stropha b \]
2299   }
2300 \layout { \neumeDemoLayout }}
2301 @end lilypond
2302 @tab
2303 @code{\[ \stropha b \stropha b \]}
2304
2305 @item
2306 @b{Tristropha}
2307 @tab
2308 @lilypond[staffsize=26,line-width=1.0\cm]
2309 \include "gregorian.ly"
2310 \score {
2311   \relative c'' {
2312     % Tristropha
2313     \[ \stropha b \stropha b \stropha b \]
2314   }
2315 \layout { \neumeDemoLayout }}
2316 @end lilypond
2317 @tab
2318 @code{\[ \stropha b \stropha b \stropha b \]}
2319
2320 @item
2321 @emph{Trigonus}
2322 @tab
2323 @lilypond[staffsize=26,line-width=1.0\cm]
2324 \include "gregorian.ly"
2325 \score {
2326   \relative c'' {
2327     % Trigonus
2328     \[ \stropha b \stropha b \stropha a \]
2329   }
2330   \layout { \neumeDemoLayout }
2331 }
2332 @end lilypond
2333 @tab
2334 @code{\[ \stropha b \stropha b \stropha a \]}
2335
2336 @end multitable
2337
2338
2339 @predefined
2340 The following head prefixes are supported:
2341 @funindex \virga
2342 @code{\virga},
2343 @funindex \stropha
2344 @code{\stropha},
2345 @funindex \inclinatum
2346 @code{\inclinatum},
2347 @funindex \auctum
2348 @code{\auctum},
2349 @funindex \descendens
2350 @code{\descendens},
2351 @funindex \ascendens
2352 @code{\ascendens},
2353 @funindex \oriscus
2354 @code{\oriscus},
2355 @funindex \quilisma
2356 @code{\quilisma},
2357 @funindex \deminutum
2358 @code{\deminutum},
2359 @funindex \cavum
2360 @code{\cavum},
2361 @funindex \linea
2362 @code{\linea}.
2363 @endpredefined
2364
2365 Head prefixes can be accumulated, though restrictions apply.  For
2366 example, either @code{\descendens} or @code{\ascendens} can be applied
2367 to a head, but not both to the same head.
2368
2369 @funindex \pes
2370 @funindex \flexa
2371
2372 Two adjacent heads can be tied together with the @code{\pes} and
2373 @code{\flexa} infix commands for a rising and falling line of melody,
2374 respectively.
2375
2376 @funindex \augmentum
2377
2378 Use the unary music function @code{\augmentum} to add augmentum dots.
2379
2380 @seealso
2381 Music Glossary:
2382 @rglos{ligature}.
2383
2384 Notation Reference:
2385 @ref{Gregorian square neume ligatures},
2386 @ref{White mensural ligatures},
2387 @ref{Ligatures}.
2388
2389 @knownissues
2390 When an @code{\augmentum} dot appears at the end of the last staff
2391 within a ligature, it is sometimes vertically placed wrong.  As a
2392 workaround, add an additional skip note (e.g., @code{s8}) as last note
2393 of the staff.
2394
2395 @code{\augmentum} should be implemented as a head prefix rather than a
2396 unary music function, such that @code{\augmentum} can be intermixed
2397 with head prefixes in arbitrary order.
2398
2399 @node Typesetting Kievan square notation
2400 @subsection Typesetting Kievan square notation
2401
2402 @menu
2403 * Kievan contexts::
2404 * Kievan clefs::
2405 * Kievan notes::
2406 * Kievan accidentals::
2407 * Kievan bar line::
2408 * Kievan melismata::
2409 @end menu
2410
2411 @node Kievan contexts
2412 @unnumberedsubsubsec Kievan contexts
2413
2414 @cindex KievanVoiceContext
2415 @cindex KievanStaffContext
2416
2417 As with Mensural and Gregorian notation, the predefined
2418 @code{KievanVoice} and @code{KievanStaff} contexts can be used
2419 to engrave a piece in square notation.  These contexts initialize
2420 all relevant context properties and grob properties to proper
2421 values, so you can immediately go ahead entering the chant:
2422
2423 @lilypond[quote,ragged-right,verbatim]
2424 \score {
2425   <<
2426     \new KievanVoice = "melody" \relative c' {
2427       \cadenzaOn
2428         c4 c c c c2 b\longa
2429         \bar "k"
2430     }
2431     \new Lyrics \lyricsto "melody" {
2432       Го -- спо -- ди по -- ми -- луй.
2433     }
2434   >>
2435 }
2436 @end lilypond
2437
2438 @seealso
2439 Music Glossary:
2440 @rglos{kievan notation}.
2441
2442 @knownissues
2443 LilyPond supports Kievan notation of the Synodal style, as used in
2444 the corpus of chantbooks printed by the Russian Holy Synod in the
2445 1910's and recently reprinted by the Moscow Patriarchate Publishing
2446 House.  LilyPond does not support the older (less common) forms of
2447 Kievan notation that were used in Galicia to notate Rusyn plainchant.
2448
2449 @node Kievan clefs
2450 @unnumberedsubsubsec Kievan clefs
2451
2452 @cindex clefs
2453
2454 There is only one clef used in Kievan notation (the Tse-fa-ut Clef).
2455 It is used to indicate the position of @code{c}:
2456
2457 @lilypond[quote,relative=1,notime,verbatim]
2458   \clef "kievan-do"
2459   \kievanOn
2460   c
2461 @end lilypond
2462
2463 @seealso
2464 Music Glossary:
2465 @rglos{kievan notation},
2466 @rglos{clef}.
2467
2468 Notation Reference:
2469 @ref{Clef}.
2470
2471 @node Kievan notes
2472 @unnumberedsubsubsec Kievan notes
2473
2474 @cindex note heads, ancient
2475
2476 For Kievan square notation, the appropriate note head style needs
2477 to be chosen and the flags and stems need to be turned off.
2478 This is accomplished by calling the @code{\kievanOn} function,
2479 which sets the appropriate properties of the note head, stems,
2480 and flags. Once Kievan note heads are not needed, these
2481 properties can be reverted by calling the @code{\kievanOff}
2482 function.
2483
2484 The Kievan final note, which usually comes at the end of a piece
2485 of music, may be selected by setting the duration to
2486 @code{\longa}.  The Kievan recitative mark, used to indicate
2487 the chanting of several syllables on one note, may be selected by
2488 setting the duration to @code{\breve}.  The following example
2489 demonstrates the various Kievan note heads:
2490
2491 @lilypond[quote,fragment,ragged-right,verbatim]
2492 \autoBeamOff
2493 \cadenzaOn
2494 \kievanOn
2495 b'1 b'2 b'4 b'8 b'\breve b'\longa
2496 \kievanOff
2497 b'2
2498 @end lilypond
2499
2500 @seealso
2501 Music Glossary:
2502 @rglos{kievan notation},
2503 @rglos{note head}.
2504
2505 Notation Reference:
2506 @ref{Note head styles}.
2507
2508 @knownissues
2509 LilyPond automatically determines if the stem up or stem down
2510 form of a note is drawn.  When setting chant in square notation,
2511 however, it is customary to have the stems point in the same
2512 direction within a single melisma.  This can be done manually by
2513 setting the @code{direction} property of the @code{Stem} object.
2514
2515 @node Kievan accidentals
2516 @unnumberedsubsubsec Kievan accidentals
2517
2518 @cindex accidentals
2519
2520 The @code{kievan} style for accidentals is selected with the
2521 @code{glyph-name-alist} property of the grob @code{Accidental}.
2522 The @code{kievan} style provides a sharp and a flat sign
2523 different from the default style.  There is no natural sign
2524 in Kievan notation.  The sharp sign is not used in Synodal music
2525 but may occur in earlier manuscripts.  It has been included
2526 primarily for the sake of compatibility.
2527
2528 @lilypond[quote,relative=1,notime,verbatim]
2529 \clef "kievan-do"
2530 \override Accidental.glyph-name-alist =
2531  #alteration-kievan-glyph-name-alist
2532 bes' dis,
2533 @end lilypond
2534
2535 @seealso
2536 Music Glossary:
2537 @rglos{kievan notation},
2538 @rglos{accidental}.
2539
2540 Notation Reference:
2541 @ref{Accidentals},
2542 @ref{Automatic accidentals},
2543 @ref{The Feta font}
2544
2545 @node Kievan bar line
2546 @unnumberedsubsubsec Kievan bar line
2547
2548 A decorative figure is commonly placed at the end of a piece of
2549 Kievan notation, which may be called the Kievan final bar line.
2550 It can be invoked as @code{\bar "k"}.
2551
2552 @lilypond[quote,relative=1,notime,verbatim]
2553   \kievanOn
2554   \clef "kievan-do"
2555   c \bar "k"
2556 @end lilypond
2557
2558 @seealso
2559 @ref{Bars},
2560 @ref{The Feta font}
2561
2562 @node Kievan melismata
2563 @unnumberedsubsubsec Kievan melismata
2564
2565 @cindex Ligatures
2566
2567 Notes within a Kievan melisma are usually placed close to each other
2568 and the melismata separated by whitespace. This is done to allow
2569 the chanter to quickly identify the melodic structures of Znamenny
2570 chant. In LilyPond, melismata are treated as ligatures and the
2571 spacing is implemented by the @code{Kievan_ligature_engraver}.
2572
2573 When the @code{KievanVoice} and @code{KievanStaff} contexts are used,
2574 the @code{Kievan_ligature_engraver} is enabled by default. In other
2575 contexts, it can be invoked by replacing the @code{Ligature_bracket_engraver}
2576 with the @code{Kievan_ligature_engraver} in the layout block:
2577
2578 @example
2579 \layout @{
2580   \context @{
2581     \Voice
2582     \remove "Ligature_bracket_engraver"
2583     \consists "Kievan_ligature_engraver"
2584   @}
2585 @}
2586 @end example
2587
2588 The spacing between the notes within a Kievan ligature can be controlled
2589 by setting the @code{padding} property of the @code{KievanLigature}.
2590
2591 The following example demonstrates the use of Kievan ligatures:
2592
2593 @lilypond[quote,ragged-right,verbatim]
2594 \score {
2595   <<
2596     \new KievanVoice = "melody" \relative c' {
2597       \cadenzaOn
2598         e2 \[ e4( d4 ) \] \[ c4( d e  d ) \] e1 \bar "k"
2599     }
2600     \new Lyrics \lyricsto "melody" {
2601       Га -- врі -- и -- лу
2602     }
2603   >>
2604 }
2605 @end lilypond
2606
2607 @seealso
2608 Music Glossary:
2609 @rglos{ligature}.
2610
2611 Notation Reference:
2612 @ref{White mensural ligatures},
2613 @ref{Gregorian square neume ligatures},
2614 @ref{Ligatures}.
2615
2616 @knownissues
2617 Horizontal spacing of ligatures is poor.
2618
2619 @node Working with ancient music---scenarios and solutions
2620 @subsection Working with ancient music---scenarios and solutions
2621
2622 @menu
2623 * Incipits::
2624 * Mensurstriche layout::
2625 * Transcribing Gregorian chant::
2626 * Ancient and modern from one source::
2627 * Editorial markings::
2628 @end menu
2629
2630 Working with ancient music frequently involves particular tasks
2631 which differ considerably from the modern notation for which
2632 LilyPond is designed.  In the rest of this section, a number of
2633 typical scenarios are outlined, with suggestions of solutions.
2634 These involve:
2635
2636 @itemize
2637 @item how to make incipits (i.e. prefatory material to indicate
2638 what the original has looked like) to modern transcriptions of
2639 mensural music;
2640 @item how to achieve the @emph{Mensurstriche} layout frequently
2641 used for modern transcriptions of polyphonic music;
2642 @item how to transcribe Gregorian chant in modern notation;
2643 @item how to generate both ancient and modern notation from the
2644 same source.
2645 @end itemize
2646
2647
2648 @node Incipits
2649 @unnumberedsubsubsec Incipits
2650 @funindex \incipit
2651 @funindex incipit
2652 @cindex incipits, adding
2653
2654 It is customary when transcribing mensural music into modern notation to place
2655 an indication of how the initial rests and note or notes of the original version
2656 appeared - including the original clefs.  This is called an @emph{incipit}.  The
2657 @code{\incipit} command uses the @code{indent} of the main staff to set the
2658 width occupied by the incipit, and @code{incipit-width} to set the width of the
2659 incipit staff.
2660
2661 @lilypond[verbatim,quote,ragged-right]
2662 \score {
2663   \new Staff <<
2664     \new Voice = Tenor {
2665       \set Staff.instrumentName = #"Tenor"
2666       \override Staff.InstrumentName.self-alignment-X = #RIGHT
2667       \incipit { \clef "mensural-c4" \key f \major r\breve r1 c'1 }
2668       \clef "treble_8"
2669       \key f \major
2670       R1 r2 c'2 |
2671       a4. c'8
2672     }
2673     \new Lyrics \lyricsto Tenor { Cyn -- thia your }
2674   >>
2675   \layout
2676   {
2677     indent = 5\cm
2678     incipit-width = 3\cm
2679   }
2680 }
2681 @end lilypond
2682
2683 @knownissues
2684 Note that instrumentName must be set in the music for the incipit to be
2685 produced.  If no instrument name is required then use
2686 @code{\set Staff.instrumentName = #""}.
2687
2688 @c @seealso
2689 @c ... and reference to other sections ...
2690
2691
2692 @node Mensurstriche layout
2693 @unnumberedsubsubsec Mensurstriche layout
2694
2695 @emph{Mensurstriche} (@q{mensuration lines}) is the accepted term
2696 for bar lines that are drawn between the staves of a system but
2697 not through the staves themselves.  It is a common way to preserve
2698 the rhythmic appearance of the original, i.e. not having to break
2699 syncopated notes at bar lines, while still providing the
2700 orientation aids that bar lines give.
2701
2702
2703 @lilypondfile[verbatim,quote,texidoc]
2704 {mensurstriche-layout-bar-lines-between-the-staves.ly}
2705
2706 @c This simple setup will take care of the
2707 @c TODO Add text about lyrics to the lowest line, to be placed
2708 @c outside the StaffGroup.
2709 @c from lsr and -user
2710 @c TBC
2711
2712 @c @seealso
2713 @c ... and reference to other sections ...
2714
2715
2716 @node Transcribing Gregorian chant
2717 @unnumberedsubsubsec Transcribing Gregorian chant
2718
2719 Gregorian chant can be transcribed into modern notation with a
2720 number of simple tweaks.
2721
2722 @b{Stems}.  Stems can be left out altogether by @code{\remove}-ing
2723 the @code{Stem_engraver} from the Voice context:
2724
2725 @example
2726 \layout @{
2727   @dots{}
2728   \context @{
2729     \Voice
2730       \remove "Stem_engraver"
2731   @}
2732 @}
2733 @end example
2734
2735 @b{Timing.} For unmetered chant, there are several alternatives.
2736
2737 The Time_signature_engraver can be removed from the Staff context
2738 without any negative side effects.  The alternative, to make it
2739 transparent, will leave an empty space in the score, since the
2740 invisible signature will still take up space.
2741
2742 In many cases, @code{\set Score.timing = ##f} will give good
2743 results.  Another alternative is to use @code{\cadenzaOn} and
2744 @code{\cadenzaOff}.
2745
2746 To remove the bar lines, the radical approach is to @code{\remove}
2747 the Bar_engraver from the Staff context.  Again, one may want to
2748 use @code{\hide BarLine} instead, if an
2749 occasional barline is wanted.
2750
2751 A common type of transcription is recitativic chant where the
2752 repeated notes are indicated with a single breve.  The text to
2753 the recitation tone can  be dealt with in two different ways:
2754 either set as a single, left-aligned syllable:
2755
2756 @lilypond[verbatim,ragged-right]
2757 \include "gregorian.ly"
2758 chant = \relative {
2759   \clef "G_8"
2760   c'\breve c4 b4 a c2 c4  \divisioMaior
2761   c\breve c4 c f, f \finalis
2762 }
2763
2764 verba = \lyricmode {
2765   \once \override LyricText.self-alignment-X = #-1
2766   "Noctem quietam et" fi -- nem per -- fec -- tum
2767   \once \override LyricText.self-alignment-X = #-1
2768   "concedat nobis Dominus" om -- ni -- po -- tens.
2769 }
2770 \score {
2771   \new Staff <<
2772   \new Voice = "melody" \chant
2773   \new Lyrics = "one" \lyricsto melody \verba
2774   >>
2775   \layout {
2776     \context {
2777       \Staff
2778       \remove "Time_signature_engraver"
2779       \remove "Bar_engraver"
2780     }
2781     \context {
2782       \Voice
2783       \remove "Stem_engraver"
2784     }
2785   }
2786 }
2787 @end lilypond
2788
2789 This works fine, as long as the text doesn't span a line break.  If
2790 that is the case, an alternative is to add hidden notes to the
2791 score, as below.
2792
2793 In some transcription styles, stems are used
2794 occasionally, for example to indicate the transition from a
2795 single-tone recitative to a fixed melodic gesture.  In these cases,
2796 one can use either @code{\hide Stem} or
2797 @code{\override Stem.length = #0} instead of @code{\remove}-ing
2798 the @code{Stem_engraver} and restore the stem
2799 when needed with the corresponding @code{\undo \hide Stem}.
2800
2801 @lilypond[verbatim,ragged-right]
2802 \include "gregorian.ly"
2803 chant = \relative c' {
2804   \clef "G_8"
2805   \set Score.timing = ##f
2806   \hide Stem
2807   c\breve \hide NoteHead  c c c c c
2808   \undo \hide NoteHead
2809   \undo \hide Stem \stemUp c4 b4 a
2810   \hide Stem c2 c4  \divisioMaior
2811   c\breve \hide NoteHead c c c c c c c
2812   \undo \hide NoteHead c4 c f, f \finalis
2813 }
2814
2815 verba = \lyricmode {
2816   No -- ctem qui -- e -- tam et fi -- nem per -- fec -- tum
2817   con -- ce -- dat no -- bis Do -- mi -- nus om -- ni -- po -- tens.
2818 }
2819
2820 \score {
2821   \new Staff <<
2822     \new Voice = "melody" \chant
2823     \new Lyrics \lyricsto "melody" \verba
2824   >>
2825   \layout {
2826     \context {
2827       \Staff
2828       \remove "Time_signature_engraver"
2829       \hide BarLine
2830     }
2831   }
2832 }
2833 @end lilypond
2834
2835 Another common situation is transcription of neumatic or
2836 melismatic chants, i.e. chants with a varying number of notes
2837 to each syllable.  In this case, one would want to set the
2838 syllable groups clearly apart, usually also the subdivisions of a
2839 longer melisma.  One way to achieve this is to use a fixed
2840 @code{\time}, e.g., 1/4, and let each syllable or note group fill
2841 one of these measures, with the help of tuplets or shorter
2842 durations.  If the bar lines and all other rhythmical indications
2843 are made transparent, and the space around the bar lines is
2844 increased, this will give a fairly good representation in modern
2845 notation of the original.
2846
2847 To avoid that syllables of different width (such as @qq{-ri} and
2848 @qq{-rum}) spread the syllable note groups unevenly apart, the
2849 @code{'X-extent} property of the @code{LyricText} object may be
2850 set to a fixed value.  Another, more cumbersome way would be to
2851 add the syllables as @code{\markup} elements.  If further
2852 adjustments are necessary, this can be easily done with
2853 @code{s} @q{notes}.
2854
2855 @lilypond[verbatim,quote]
2856 spiritus = \relative c' {
2857   \time 1/4
2858   \override Lyrics.LyricText.X-extent  = #'(0 . 3)
2859   d4 \tuplet 3/2 { f8 a g } g a a4 g f8 e
2860   d4 f8 g g8 d f g a g f4 g8 a a4  s
2861   \tuplet 3/2 { g8 f d } e f g a g4
2862 }
2863
2864 spirLyr = \lyricmode {
2865   Spi -- ri -- _ _ tus  _ Do -- mi -- ni  _ re -- ple -- _ vit _
2866   or -- _ bem _  ter -- ra -- _ rum, al -- _ _ le -- _ lu
2867   -- _ ia.
2868 }
2869 \score {
2870   \new Staff <<
2871     \new Voice = "chant" \spiritus
2872     \new Lyrics = "one" \lyricsto "chant" \spirLyr
2873   >>
2874   \layout {
2875     \context {
2876       \Staff
2877       \remove "Time_signature_engraver"
2878       \override BarLine.X-extent = #'(-1 . 1)
2879       \hide Stem
2880       \hide Beam
2881       \hide BarLine
2882       \hide TupletNumber
2883     }
2884   }
2885 }
2886 @end lilypond
2887
2888 @c extract from 1.6.1.1
2889
2890 @c @seealso
2891 @c ... and reference to other sections ...
2892
2893
2894 @node Ancient and modern from one source
2895 @unnumberedsubsubsec Ancient and modern from one source
2896
2897 @c TODO Add text
2898 @c Here among others the snippets about reducing note length
2899 TBC
2900
2901 @c @seealso
2902 @c ... and reference to other sections ...
2903
2904
2905 @node Editorial markings
2906 @unnumberedsubsubsec Editorial markings
2907
2908
2909 @c @node Baroque rhythmic notation
2910 @c @unnumberedsubsubsec Baroque rhythmic notation
2911
2912 @c TODO Add text
2913 @c try Till Rettig
2914 @c Add example of white note heads:
2915 @c In the french baroque some composers used white note heads in slow pieces,
2916 @c mainly in 3/2-time.  A quarter looks there like an eighth with a white
2917 @c note head.  (Franz-Rudolf Kuhnen)
2918
2919 @c TODO Add example of this:
2920 @c I was referring to e.g. notated a8. a16, which should, if I
2921 @c remember correctly, be interpreted more like a8.. a32 (in the french
2922 @c style).  The editor might want to show that rythmic figure above the
2923 @c staff as an hint to performers.  (Karl Hammer)
2924
2925
2926 @c TBC
2927
2928
2929 @c @seealso
2930 @c ... and reference to other sections ...