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