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