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