]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/user/ancient.itely
Split WWW target in two stages WWW-1 and WWW-2
[lilypond.git] / Documentation / user / ancient.itely
1 @c -*- coding: utf-8; mode: texinfo; -*-
2 @ignore
3     Translation of GIT committish: FILL-IN-HEAD-COMMITTISH
4
5     When revising a translation, copy the HEAD committish of the
6     version that you are working on.  See TRANSLATION for details.
7 @end ignore
8
9 @c \version "2.11.38"
10
11 @node Ancient notation
12 @section Ancient notation
13
14 @cindex Vaticana, Editio
15 @cindex Medicaea, Editio
16 @cindex hufnagel
17 @cindex Petrucci
18 @cindex mensural
19
20 @menu
21 * Introduction to ancient notation::
22 * Alternative note signs::
23 * Additional note signs::
24 * Pre-defined contexts::
25 * Transcribing ancient music::
26 * Editorial markings::
27 @end menu
28
29 @node Introduction to ancient notation
30 @subsection Introduction to ancient notation
31
32 @menu
33 * Ancient notation supported::
34 @end menu
35
36 @node Ancient notation supported
37 @subsubsection Ancient notation supported
38
39 Support for ancient notation includes features for mensural notation
40 and Gregorian Chant notation.  There is also limited support for
41 figured bass notation, see @ref{Figured bass}.
42
43 Many graphical objects provide a @code{style} property, see
44 @itemize
45 @item
46 @ref{Ancient note heads},
47 @item
48 @ref{Ancient accidentals},
49 @item
50 @ref{Ancient rests},
51 @item
52 @ref{Ancient clefs},
53 @item
54 @ref{Ancient flags},
55 @item
56 @ref{Ancient time signatures}.
57 @end itemize
58
59 By manipulating such a grob property, the typographical appearance of
60 the affected graphical objects can be accommodated for a specific
61 notation flavor without the need for introducing any new notational
62 concept.
63
64 In addition to the standard articulation signs described in
65 section @ref{Articulations and ornamentations}, specific
66 articulation signs for ancient notation are provided.
67
68 @itemize
69 @item
70 @ref{Ancient articulations}
71 @end itemize
72
73 Other aspects of ancient notation can not that easily be expressed
74 in terms of just changing a style property of a graphical object or
75 adding articulation signs.  Some notational concepts are introduced
76 specifically for ancient notation,
77
78 @itemize
79 @item
80 @ref{Custodes},
81 @item
82 @ref{Divisiones},
83 @item
84 @ref{Ligatures}.
85 @end itemize
86
87 If this all is too much of documentation for you, and you just want to
88 dive into typesetting without worrying too much about the details on
89 how to customize a context, you may have a look at the predefined
90 contexts.  Use them to set up predefined style-specific voice and
91 staff contexts, and directly go ahead with the note entry,
92
93 @itemize
94 @item
95 @ref{Gregorian Chant contexts},
96 @item
97 @ref{Mensural contexts}.
98 @end itemize
99
100 There is limited support for figured bass notation which came
101 up during the baroque period.
102
103 @itemize
104 @item
105 @ref{Figured bass}
106 @end itemize
107
108 @c Here are all subtopics at a glance:
109
110 @node Alternative note signs
111 @subsection Alternative note signs
112
113 @menu
114 * Ancient note heads::
115 * Ancient accidentals::
116 * Ancient rests::
117 * Ancient clefs::
118 * Ancient flags::
119 * Ancient time signatures::
120 @end menu
121
122 @node Ancient note heads
123 @subsubsection Ancient note heads
124
125 @cindex note heads, ancient
126
127 For ancient notation, a note head style other than the @code{default}
128 style may be chosen.  This is accomplished by setting the @code{style}
129 property of the @rinternals{NoteHead} object to @code{baroque},
130 @code{neomensural}, @code{mensural} or @code{petrucci}.  The
131 @code{baroque} style differs from the @code{default} style only in
132 using a square shape for @code{\breve} note heads.  The
133 @code{neomensural} style differs from the @code{baroque} style in that
134 it uses rhomboidal heads for whole notes and all smaller durations.
135 Stems are centered on the note heads.  This style is particularly
136 useful when transcribing mensural music, e.g., for the incipit.  The
137 @code{mensural} style produces note heads that mimic the look of note
138 heads in historic printings of the 16th century.  Finally, the
139 @code{petrucci} style also mimics historic printings, but uses bigger
140 note heads.
141
142 The following example demonstrates the @code{neomensural} style
143
144 @lilypond[quote,fragment,ragged-right,verbatim]
145 \set Score.skipBars = ##t
146 \override NoteHead #'style = #'neomensural
147 a'\longa a'\breve a'1 a'2 a'4 a'8 a'16
148 @end lilypond
149
150 When typesetting a piece in Gregorian Chant notation, the
151 @rinternals{Gregorian_ligature_engraver} will automatically select
152 the proper note heads, so there is no need to explicitly set the
153 note head style.  Still, the note head style can be set, e.g., to
154 @code{vaticana_punctum} to produce punctum neumes.  Similarly, a
155 @rinternals{Mensural_ligature_engraver} is used to automatically
156 assemble mensural ligatures.  See @ref{Ligatures}, for how ligature
157 engravers work.
158
159 @seealso
160
161 @ref{Note head styles}, gives an overview over all available note head styles.
162
163
164 @node Ancient accidentals
165 @subsubsection Ancient accidentals
166
167 @cindex accidentals
168
169
170 Use the @code{glyph-name-alist} property of grob
171 @rinternals{Accidental} and @rinternals{KeySignature} to select
172 ancient accidentals.
173
174 @lilypond[quote,ragged-right,staffsize=26]
175 \score {
176 {
177   \textLengthOn
178   s^\markup {
179     \column {
180       "vaticana"
181       \line { " " \musicglyph #"accidentals.vaticana-1"
182         " " \musicglyph #"accidentals.vaticana0" }
183     }
184     \column {
185       "medicaea"
186       \line { " " \musicglyph #"accidentals.medicaea-1" }
187     }
188     \column {
189       "hufnagel"
190       \line { " " \musicglyph #"accidentals.hufnagel-1" }
191     }
192     \column {
193       "mensural"
194       \line { " " \musicglyph #"accidentals.mensural-1"
195         " " \musicglyph #"accidentals.mensural1" }
196     }
197   }
198 }
199 \layout {
200   interscoreline = 1
201   \context { \Score \remove "Bar_number_engraver" }
202   \context { \Staff
203       \remove "Clef_engraver"
204       \remove "Key_engraver"
205       \remove "Time_signature_engraver"
206       \remove "Staff_symbol_engraver"
207       \override VerticalAxisGroup #'minimum-Y-extent = ##f
208     }
209   }
210 }
211 @end lilypond
212
213 As shown, not all accidentals are supported by each style.  When
214 trying to access an unsupported accidental, LilyPond will switch to a
215 different style, as demonstrated in
216 @c @lsr{ancient,ancient-accidentals.ly}.
217
218 Similarly to local accidentals, the style of the key signature can be
219 controlled by the @code{glyph-name-alist} property of the
220 @rinternals{KeySignature} grob.
221
222 @seealso
223
224 Notation Reference: @ref{Pitches}, @ref{Accidentals}, and
225 @ref{Automatic accidentals}, give a general introduction of the use of
226 accidentals.  @ref{Key signature}, gives a general introduction of
227 the use of key signatures.
228
229 Internals Reference: @rinternals{KeySignature}.
230
231
232 @node Ancient rests
233 @subsubsection Ancient rests
234
235 @cindex rests, ancient
236
237
238 Use the @code{style} property of grob @rinternals{Rest} to select
239 ancient rests.   Supported styles are @code{classical},
240 @code{neomensural}, and @code{mensural}.  @code{classical} differs
241 from the @code{default} style only in that the quarter rest looks like
242 a horizontally mirrored 8th rest.  The @code{neomensural} style suits
243 well for, e.g., the incipit of a transcribed mensural piece of music.
244 The @code{mensural} style finally mimics the appearance of rests as
245 in historic prints of the 16th century.
246
247 The following example demonstrates the @code{neomensural} style
248
249 @lilypond[quote,fragment,ragged-right,verbatim]
250 \set Score.skipBars = ##t
251 \override Rest #'style = #'neomensural
252 r\longa r\breve r1 r2 r4 r8 r16
253 @end lilypond
254
255 There are no 32th and 64th rests specifically for the mensural or
256 neo-mensural style.  Instead, the rests from the default style will be
257 taken.  See @c @lsr{pitches,rests} for a chart of all rests.
258
259 There are no rests in Gregorian Chant notation; instead, it uses
260 @ref{Divisiones}.
261
262 @seealso
263
264 Notation Reference: @ref{Rests}, gives a general introduction into the use of
265 rests.
266
267
268 @node Ancient clefs
269 @subsubsection Ancient clefs
270
271 @cindex clefs
272
273
274 LilyPond supports a variety of clefs, many of them ancient.
275
276 The following table shows all ancient clefs that are supported via the
277 @code{\clef} command.  Some of the clefs use the same glyph, but
278 differ only with respect to the line they are printed on.  In such
279 cases, a trailing number in the name is used to enumerate these clefs.
280 Still, you can manually force a clef glyph to be typeset on an
281 arbitrary line, as described in @ref{Clef}.  The note printed to the
282 right side of each clef in the example column denotes the @code{c'}
283 with respect to that clef.
284
285 @multitable @columnfractions .4 .4 .2
286 @item
287 @b{Description}
288 @tab
289 @b{Supported Clefs}
290 @tab
291 @b{Example}
292
293 @item
294 modern style mensural C clef
295 @tab
296 @code{neomensural-c1}, @code{neomensural-c2},@*
297 @code{neomensural-c3}, @code{neomensural-c4}
298 @tab
299 @lilypond[fragment,relative=1,notime]
300   \clef "neomensural-c2" c
301 @end lilypond
302
303 @item
304 petrucci style mensural C clefs, for use on different staff lines
305 (the examples show the 2nd staff line C clef)
306 @tab
307 @code{petrucci-c1}, @code{petrucci-c2},@*
308 @code{petrucci-c3}, @code{petrucci-c4},@*
309 @code{petrucci-c5}
310 @tab
311 @lilypond[fragment,relative=1,notime]
312   \clef "petrucci-c2"
313   \override NoteHead #'style = #'mensural
314   c
315 @end lilypond
316
317 @item
318 petrucci style mensural F clef
319 @tab
320 @code{petrucci-f}
321 @tab
322 @lilypond[fragment,relative=1,notime]
323   \clef "petrucci-f"
324   \override NoteHead #'style = #'mensural
325   c
326 @end lilypond
327
328 @item
329 petrucci style mensural G clef
330 @tab
331 @code{petrucci-g}
332 @tab
333 @lilypond[fragment,relative=1,notime]
334   \clef "petrucci-g"
335   \override NoteHead #'style = #'mensural
336   c
337 @end lilypond
338
339 @item
340 historic style mensural C clef
341 @tab
342 @code{mensural-c1}, @code{mensural-c2},@*
343 @code{mensural-c3}, @code{mensural-c4}
344 @tab
345 @lilypond[fragment,relative=1,notime]
346   \clef "mensural-c2"
347   \override NoteHead #'style = #'mensural
348   c
349 @end lilypond
350
351 @item
352 historic style mensural F clef
353 @tab
354 @code{mensural-f}
355 @tab
356 @lilypond[fragment,relative=1,notime]
357   \clef "mensural-f"
358   \override NoteHead #'style = #'mensural
359   c
360 @end lilypond
361
362 @item
363 historic style mensural G clef
364 @tab
365 @code{mensural-g}
366 @tab
367 @lilypond[fragment,relative=1,notime]
368   \clef "mensural-g"
369   \override NoteHead #'style = #'mensural
370   c
371 @end lilypond
372
373 @item
374 Editio Vaticana style do clef
375 @tab
376 @code{vaticana-do1}, @code{vaticana-do2},@*
377 @code{vaticana-do3}
378 @tab
379 @lilypond[fragment,relative=1,notime]
380   \override Staff.StaffSymbol #'line-count = #4
381   \override Staff.StaffSymbol #'color = #red
382   \override Staff.LedgerLineSpanner #'color = #red
383   \override Voice.Stem #'transparent = ##t
384   \override NoteHead #'style = #'vaticana.punctum
385   \clef "vaticana-do2"
386   c
387 @end lilypond
388
389 @item
390 Editio Vaticana style fa clef
391 @tab
392 @code{vaticana-fa1}, @code{vaticana-fa2}
393 @tab
394 @lilypond[fragment,relative=1,notime]
395   \override Staff.StaffSymbol #'line-count = #4
396   \override Staff.StaffSymbol #'color = #red
397   \override Staff.LedgerLineSpanner #'color = #red
398   \override Voice.Stem #'transparent = ##t
399   \override NoteHead #'style = #'vaticana.punctum
400   \clef "vaticana-fa2"
401   c
402 @end lilypond
403
404 @item
405 Editio Medicaea style do clef
406 @tab
407 @code{medicaea-do1}, @code{medicaea-do2},@*
408 @code{medicaea-do3}
409 @tab
410 @lilypond[fragment,relative=1,notime]
411   \override Staff.StaffSymbol #'line-count = #4
412   \override Staff.StaffSymbol #'color = #red
413   \override Staff.LedgerLineSpanner #'color = #red
414   \override Voice.Stem #'transparent = ##t
415   \override NoteHead #'style = #'medicaea.punctum
416   \clef "medicaea-do2"
417   c
418 @end lilypond
419
420 @item
421 Editio Medicaea style fa clef
422 @tab
423 @code{medicaea-fa1}, @code{medicaea-fa2}
424 @tab
425 @lilypond[fragment,relative=1,notime]
426   \override Staff.StaffSymbol #'line-count = #4
427   \override Staff.StaffSymbol #'color = #red
428   \override Staff.LedgerLineSpanner #'color = #red
429   \override Voice.Stem #'transparent = ##t
430   \override NoteHead #'style = #'medicaea.punctum
431   \clef "medicaea-fa2"
432   c
433 @end lilypond
434
435 @item
436 historic style hufnagel do clef
437 @tab
438 @code{hufnagel-do1}, @code{hufnagel-do2},@*
439 @code{hufnagel-do3}
440 @tab
441 @lilypond[fragment,relative=1,notime]
442   \override Staff.StaffSymbol #'line-count = #4
443   \override Staff.StaffSymbol #'color = #red
444   \override Staff.LedgerLineSpanner #'color = #red
445   \override Voice.Stem #'transparent = ##t
446   \override NoteHead #'style = #'hufnagel.punctum
447   \clef "hufnagel-do2"
448   c
449 @end lilypond
450
451 @item
452 historic style hufnagel fa clef
453 @tab
454 @code{hufnagel-fa1}, @code{hufnagel-fa2}
455 @tab
456 @lilypond[fragment,relative=1,notime]
457   \override Staff.StaffSymbol #'line-count = #4
458   \override Staff.StaffSymbol #'color = #red
459   \override Staff.LedgerLineSpanner #'color = #red
460   \override Voice.Stem #'transparent = ##t
461   \override NoteHead #'style = #'hufnagel.punctum
462   \clef "hufnagel-fa2"
463   c
464 @end lilypond
465
466 @item
467 historic style hufnagel combined do/fa clef
468 @tab
469 @code{hufnagel-do-fa}
470 @tab
471 @lilypond[fragment,relative=1,notime]
472   \override Staff.StaffSymbol #'color = #red
473   \override Staff.LedgerLineSpanner #'color = #red
474   \override Voice.Stem #'transparent = ##t
475   \override NoteHead #'style = #'hufnagel.punctum
476   \clef "hufnagel-do-fa"
477   c
478 @end lilypond
479 @end multitable
480
481
482
483 @emph{Modern style} means @qq{as is typeset in contemporary editions of
484 transcribed mensural music.}
485
486 @emph{Petrucci style} means @qq{inspired by printings published by the
487 famous engraver Petrucci (1466-1539).}
488
489 @emph{Historic style} means @qq{as was typeset or written in historic
490 editions (other than those of Petrucci).}
491
492 @emph{Editio XXX style} means @qq{as is/was printed in Editio XXX.}
493
494 Petrucci used C clefs with differently balanced left-side vertical
495 beams, depending on which staff line it is printed.
496
497 @seealso
498
499 Notation Reference: see @ref{Clef}.
500
501 @knownissues
502
503 The mensural g clef is mapped to the Petrucci g clef.
504
505
506
507 @node Ancient flags
508 @subsubsection Ancient flags
509
510 @cindex flags
511
512
513 Use the @code{flag-style} property of grob @rinternals{Stem} to
514 select ancient flags.  Besides the @code{default} flag style,
515 only the @code{mensural} style is supported
516
517 @lilypond[quote,fragment,ragged-right,verbatim]
518 \override Stem #'flag-style = #'mensural
519 \override Stem #'thickness = #1.0
520 \override NoteHead #'style = #'mensural
521 \autoBeamOff
522 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
523 c''8 d''8 e''8 f''8 c''16 d''16 e''16 f''16 c''32 d''32 e''32 f''32
524 @end lilypond
525
526 Note that the innermost flare of each mensural flag always is
527 vertically aligned with a staff line.
528
529 There is no particular flag style for neo-mensural notation.  Hence,
530 when typesetting the incipit of a transcribed piece of mensural
531 music, the default flag style should be used.  There are no flags in
532 Gregorian Chant notation.
533
534 @knownissues
535
536 The attachment of ancient flags to stems is slightly off due to a
537 change in early 2.3.x.
538
539 Vertically aligning each flag with a staff line assumes that stems
540 always end either exactly on or exactly in the middle between two
541 staff lines.  This may not always be true when using advanced layout
542 features of classical notation (which however are typically out of
543 scope for mensural notation).
544
545 @node Ancient time signatures
546 @subsubsection Ancient time signatures
547
548 @cindex time signatures
549
550
551 There is limited support for mensural time signatures.   The
552 glyphs are hard-wired to particular time fractions.  In other words,
553 to get a particular mensural signature glyph with the @code{\time n/m}
554 command, @code{n} and @code{m} have to be chosen according to the
555 following table
556
557 @lilypond[quote,ragged-right]
558 \layout {
559   indent = 0.0
560   \context {
561     \Staff
562     \remove Staff_symbol_engraver
563     \remove Clef_engraver
564     \remove Time_signature_engraver
565   }
566 }
567 {
568   \set Score.timing = ##f
569   \set Score.barAlways = ##t
570   s_\markup { "\\time 4/4" }^\markup { "       " \musicglyph
571 #"timesig.neomensural44" }
572   s
573   s_\markup { "\\time 2/2" }^\markup { "       " \musicglyph
574 #"timesig.neomensural22" }
575   s
576   s_\markup { "\\time 6/4" }^\markup { "       " \musicglyph
577 #"timesig.neomensural64" }
578   s
579   s_\markup { "\\time 6/8" }^\markup { "       " \musicglyph
580 #"timesig.neomensural68" }
581   \break
582   s_\markup { "\\time 3/2" }^\markup { "       " \musicglyph
583 #"timesig.neomensural32" }
584   s
585   s_\markup { "\\time 3/4" }^\markup { "       " \musicglyph
586 #"timesig.neomensural34" }
587   s
588   s_\markup { "\\time 9/4" }^\markup { "       " \musicglyph
589 #"timesig.neomensural94" }
590   s
591   s_\markup { "\\time 9/8" }^\markup { "       " \musicglyph
592 #"timesig.neomensural98" }
593   \break
594   s_\markup { "\\time 4/8" }^\markup { "       " \musicglyph
595 #"timesig.neomensural48" }
596   s
597   s_\markup { "\\time 2/4" }^\markup { "       " \musicglyph
598 #"timesig.neomensural24" }
599 }
600 @end lilypond
601
602 Use the @code{style} property of grob @rinternals{TimeSignature} to
603 select ancient time signatures.  Supported styles are
604 @code{neomensural} and @code{mensural}.  The above table uses the
605 @code{neomensural} style.  This style is appropriate for the
606 incipit of transcriptions of mensural pieces.  The @code{mensural}
607 style mimics the look of historical printings of the 16th century.
608
609 The following examples show the differences in style,
610
611 @lilypond[ragged-right,fragment,relative=1,quote]
612 {
613   \textLengthOn
614
615   \time 2/2
616   c1^\markup { \hspace #-2.0 \typewriter default }
617
618   \override Staff.TimeSignature #'style = #'numbered
619   \time 2/2
620   c1^\markup { \hspace #-2.0 \typewriter numbered }
621
622   \override Staff.TimeSignature #'style = #'mensural
623   \time 2/2
624   c1^\markup { \hspace #-2.0 \typewriter mensural }
625
626   \override Staff.TimeSignature #'style = #'neomensural
627   \time 2/2
628   c1^\markup { \hspace #-2.0 \typewriter neomensural }
629   \override Staff.TimeSignature #'style = #'single-digit
630   \time 2/2
631   c1^\markup { \hspace #-2.0 \typewriter single-digit }
632 }
633 @end lilypond
634
635 @seealso
636
637 This manual: @ref{Time signature}, gives a general introduction to
638 the use of time signatures.
639
640 @knownissues
641
642 Ratios of note durations do not change with the time signature.  For
643 example, the ratio of 1 brevis = 3 semibrevis (tempus perfectum) must
644 be made by hand, by setting
645
646 @example
647 breveTP = #(ly:make-duration -1 0 3 2)
648 @dots{}
649 @{ c\breveTP f1 @}
650 @end example
651
652 @noindent
653 This sets @code{breveTP} to 3/2 times 2 = 3 times a whole note.
654
655 The @code{old6/8alt} symbol (an alternate symbol for 6/8) is not
656 addressable with @code{\time}.  Use a @code{\markup} instead
657
658
659 @node Additional note signs
660 @subsection Additional note signs
661
662 @menu
663 * Ancient articulations::
664 * Custodes::
665 * Divisiones::
666 * Ligatures::
667 * White mensural ligatures::
668 * Gregorian square neumes ligatures::
669 @end menu
670
671
672 @node Ancient articulations
673 @subsubsection Ancient articulations
674
675 @cindex articulations
676
677 In addition to the standard articulation signs described in
678 section @ref{Articulations and ornamentations}, articulation signs
679 for ancient notation are provided.  These are specifically
680 designed for use with notation in Editio Vaticana style.
681
682 @lilypond[quote,ragged-right,verbatim]
683 \include "gregorian-init.ly"
684 \score {
685   \new VaticanaVoice {
686     \override TextScript #'font-family = #'typewriter
687     \override TextScript #'font-shape = #'upright
688     \override Script #'padding = #-0.1
689     a\ictus_"ictus" \break
690     a\circulus_"circulus" \break
691     a\semicirculus_"semicirculus" \break
692     a\accentus_"accentus" \break
693     \[ a_"episem" \episemInitium \pes b \flexa a b \episemFinis \flexa a \]
694   }
695 }
696 @end lilypond
697
698 @knownissues
699
700 Some articulations are vertically placed too closely to the
701 corresponding note heads.
702
703 The episem line is not displayed in many cases.  If it is displayed,
704 the right end of the episem line is often too far to the right.
705
706 @node Custodes
707 @subsubsection Custodes
708
709 @cindex custos
710 @cindex custodes
711
712 A @emph{custos} (plural: @emph{custodes}; Latin word for @q{guard}) is a
713 symbol that appears at the end of a staff.  It anticipates the pitch
714 of the first note(s) of the following line thus helping the performer
715 to manage line breaks during performance.
716
717 Custodes were frequently used in music notation until the 17th
718 century.  Nowadays, they have survived only in a few particular forms
719 of musical notation such as contemporary editions of Gregorian chant
720 like the @emph{editio vaticana}.  There are different custos glyphs
721 used in different flavors of notational style.
722
723 For typesetting custodes, just put a @rinternals{Custos_engraver} into the
724 @rinternals{Staff} context when declaring the @code{\layout} block,
725 as shown in the following example
726
727 @example
728 \layout @{
729   \context @{
730     \Staff
731     \consists Custos_engraver
732     Custos \override #'style = #'mensural
733   @}
734 @}
735 @end example
736
737 The result looks like this
738
739 @lilypond[quote,ragged-right]
740 \score {
741 {
742   a'1
743   \override Staff.Custos #'style = #'mensural
744   \break
745   g'
746 }
747 \layout {
748   \context { \Staff \consists Custos_engraver }
749   }
750 }
751 @end lilypond
752
753 The custos glyph is selected by the @code{style} property.  The styles
754 supported are @code{vaticana}, @code{medicaea}, @code{hufnagel}, and
755 @code{mensural}.  They are demonstrated in the following fragment
756
757 @lilypond[quote,ragged-right,fragment]
758 \new Lyrics \lyricmode {
759   \markup { \column {
760     \typewriter "vaticana"
761     \line { " " \musicglyph #"custodes.vaticana.u0" }
762   } }
763   \markup { \column {
764     \typewriter "medicaea"
765     \line { " " \musicglyph #"custodes.medicaea.u0" }
766   }}
767   \markup { \column {
768     \typewriter "hufnagel"
769     \line { " " \musicglyph #"custodes.hufnagel.u0" }
770   }}
771   \markup { \column {
772     \typewriter "mensural"
773     \line { " " \musicglyph #"custodes.mensural.u0" }
774   }}
775 }
776 @end lilypond
777
778 @seealso
779
780 Internals Reference: @rinternals{Custos}.
781
782 Examples:
783 @c @lsr{ancient,custodes@/.ly}.
784
785
786 @node Divisiones
787 @subsubsection Divisiones
788
789 @cindex divisio
790 @cindex divisiones
791 @cindex finalis
792
793 A @emph{divisio} (plural: @emph{divisiones}; Latin word for
794 @q{division}) is a staff context symbol that is used to structure
795 Gregorian music into phrases and sections.  The musical meaning of
796 @emph{divisio minima}, @emph{divisio maior}, and @emph{divisio maxima}
797 can be characterized as short, medium, and long pause, somewhat like
798 the breathmarks from @ref{Breath marks}.  The @emph{finalis} sign not
799 only marks the end of a chant, but is also frequently used within a
800 single antiphonal/responsorial chant to mark the end of each section.
801
802
803 To use divisiones, include the file @file{gregorian@/-init@/.ly}.  It
804 contains definitions that you can apply by just inserting
805 @code{\divisioMinima}, @code{\divisioMaior}, @code{\divisioMaxima},
806 and @code{\finalis} at proper places in the input.  Some editions use
807 @emph{virgula} or @emph{caesura} instead of divisio minima.
808 Therefore, @file{gregorian@/-init@/.ly} also defines @code{\virgula} and
809 @code{\caesura}
810
811 @lilypondfile[quote,ragged-right]{divisiones.ly}
812
813 @predefined
814
815 @funindex \virgula
816 @code{\virgula},
817 @funindex \caesura
818 @code{\caesura},
819 @funindex \divisioMinima
820 @code{\divisioMinima},
821 @funindex \divisioMaior
822 @code{\divisioMaior},
823 @funindex \divisioMaxima
824 @code{\divisioMaxima},
825 @funindex \finalis
826 @code{\finalis}.
827
828 @seealso
829
830 Notation Reference: @ref{Breath marks}.
831
832 Internals Reference: @rinternals{BreathingSign}.
833
834 Examples: @c @lsr{expressive,breathing-sign.ly}.
835
836
837 @node Ligatures
838 @subsubsection Ligatures
839
840 @cindex Ligatures
841
842 @c TODO: Should double check if I recalled things correctly when I wrote
843 @c down the following paragraph by heart.
844
845 A ligature is a graphical symbol that represents at least two distinct
846 notes.  Ligatures originally appeared in the manuscripts of Gregorian
847 chant notation to denote ascending or descending sequences of notes.
848
849 Ligatures are entered by enclosing them in @code{\[} and @code{\]}.
850 Some ligature styles may need additional input syntax specific for
851 this particular type of ligature.  By default, the
852 @rinternals{LigatureBracket} engraver just puts a square bracket
853 above the ligature
854
855 @lilypond[quote,ragged-right,verbatim]
856 \transpose c c' {
857   \[ g c a f d' \]
858   a g f
859   \[ e f a g \]
860 }
861 @end lilypond
862
863 To select a specific style of ligatures, a proper ligature engraver
864 has to be added to the @rinternals{Voice} context, as explained in
865 the following subsections.   Only white mensural ligatures
866 are supported with certain limitations.
867
868
869
870 @knownissues
871
872 Ligatures need special spacing that has not yet been implemented.  As
873 a result, there is too much space between ligatures most of the time,
874 and line breaking often is unsatisfactory.  Also, lyrics do not
875 correctly align with ligatures.
876
877 Accidentals must not be printed within a ligature, but instead need to
878 be collected and printed in front of it.
879
880 The syntax still uses the deprecated infix style @code{\[ music expr
881 \]}.  For consistency reasons, it will eventually be changed to
882 postfix style @code{note\[ ... note\]}.  Alternatively, the file
883 @file{gregorian@/-init@/.ly} can be included; it provides a scheme
884 function
885 @example
886 \ligature @var{music expr}
887 @end example
888 with the same effect and is believed to be stable.
889
890 @menu
891 * White mensural ligatures::
892 * Gregorian square neumes ligatures::
893 @end menu
894
895 @node White mensural ligatures
896 @subsubsection White mensural ligatures
897
898 @cindex Mensural ligatures
899 @cindex White mensural ligatures
900
901 There is limited support for white mensural ligatures.
902
903 To engrave white mensural ligatures, in the layout block put the
904 @rinternals{Mensural_ligature_engraver} into the
905 @rinternals{Voice} context, and remove the
906 @rinternals{Ligature_bracket_engraver}, like this
907
908 @example
909 \layout @{
910   \context @{
911     \Voice
912     \remove Ligature_bracket_engraver
913     \consists Mensural_ligature_engraver
914   @}
915 @}
916 @end example
917
918 There is no additional input language to describe the shape of a
919 white mensural ligature.  The shape is rather determined solely from
920 the pitch and duration of the enclosed notes.  While this approach may
921 take a new user a while to get accustomed to, it has the great advantage
922 that the full musical information of the ligature is known internally.
923 This is not only required for correct MIDI output, but also allows for
924 automatic transcription of the ligatures.
925
926 For example,
927
928 @example
929 \set Score.timing = ##f
930 \set Score.defaultBarType = "empty"
931 \override NoteHead #'style = #'neomensural
932 \override Staff.TimeSignature #'style = #'neomensural
933 \clef "petrucci-g"
934 \[ c'\maxima g \]
935 \[ d\longa c\breve f e d \]
936 \[ c'\maxima d'\longa \]
937 \[ e'1 a g\breve \]
938 @end example
939 @lilypond[quote,ragged-right]
940 \score {
941   \transpose c c' {
942     \set Score.timing = ##f
943     \set Score.defaultBarType = "empty"
944     \override NoteHead #'style = #'neomensural
945     \override Staff.TimeSignature #'style = #'neomensural
946     \clef "petrucci-g"
947     \[ c'\maxima g \]
948     \[ d\longa c\breve f e d \]
949     \[ c'\maxima d'\longa \]
950     \[ e'1 a g\breve \]
951   }
952   \layout {
953     \context {
954       \Voice
955       \remove Ligature_bracket_engraver
956       \consists Mensural_ligature_engraver
957     }
958   }
959 }
960 @end lilypond
961
962 Without replacing @rinternals{Ligature_bracket_engraver} with
963 @rinternals{Mensural_ligature_engraver}, the same music transcribes
964 to the following
965
966 @lilypond[quote,ragged-right]
967 \transpose c c' {
968   \set Score.timing = ##f
969   \set Score.defaultBarType = "empty"
970   \override NoteHead #'style = #'neomensural
971   \override Staff.TimeSignature #'style = #'neomensural
972   \clef "petrucci-g"
973   \[ c'\maxima g \]
974   \[ d\longa c\breve f e d \]
975   \[ c'\maxima d'\longa \]
976   \[ e'1 a g\breve \]
977 }
978 @end lilypond
979
980 @knownissues
981
982 Horizontal spacing is poor.
983
984 @node Gregorian square neumes ligatures
985 @subsubsection Gregorian square neumes ligatures
986
987 @cindex Square neumes ligatures
988 @cindex Gregorian square neumes ligatures
989
990 There is limited support for Gregorian square neumes notation
991 (following the style of the Editio Vaticana).  Core ligatures can
992 already be typeset, but essential issues for serious typesetting are
993 still lacking, such as (among others) horizontal alignment of multiple
994 ligatures, lyrics alignment and proper handling of accidentals.
995
996
997 The following table contains the extended neumes table of the 2nd
998 volume of the Antiphonale Romanum (@emph{Liber Hymnarius}), published
999 1983 by the monks of Solesmes.
1000
1001 @multitable @columnfractions .4 .2 .2 .2
1002
1003 @item
1004 @b{Neuma aut@*
1005 Neumarum Elementa}
1006 @tab
1007 @b{Figurae@*
1008 Rectae}
1009 @tab
1010 @b{Figurae@*
1011 Liquescentes@*
1012 Auctae}
1013 @tab
1014 @b{Figurae@*
1015 Liquescentes@*
1016 Deminutae}
1017
1018 @c TODO: \layout block is identical in all of the below examples.
1019 @c Therefore, it should somehow be included rather than duplicated all
1020 @c the time. --jr
1021
1022 @c why not make variables in ly/engraver-init.ly? --hwn
1023
1024 @c Because it's just used to typeset plain notes without
1025 @c a staff for demonstration purposes rather than something
1026 @c special of Gregorian chant notation. --jr
1027
1028 @item
1029 @code{1. Punctum}
1030 @tab
1031 @lilypond[staffsize=26,line-width=1.5\cm]
1032 \include "gregorian-init.ly"
1033 \score {
1034   \transpose c c' {
1035     % Punctum
1036     \[ b \]
1037     \noBreak s^\markup {"a"} \noBreak
1038
1039     % Punctum Inclinatum
1040     \[ \inclinatum b \]
1041     \noBreak s^\markup {"b"}
1042   }
1043 \layout { \neumeDemoLayout }}
1044 @end lilypond
1045 @tab
1046 @lilypond[staffsize=26,line-width=2.5\cm]
1047 \include "gregorian-init.ly"
1048 \score {
1049   \transpose c c' {
1050     % Punctum Auctum Ascendens
1051     \[ \auctum \ascendens b \]
1052     \noBreak s^\markup {"c"} \noBreak
1053
1054     % Punctum Auctum Descendens
1055     \[ \auctum \descendens b \]
1056     \noBreak s^\markup {"d"} \noBreak
1057
1058     % Punctum Inclinatum Auctum
1059     \[ \inclinatum \auctum b \]
1060     \noBreak s^\markup {"e"}
1061   }
1062 \layout { \neumeDemoLayout }}
1063 @end lilypond
1064 @tab
1065 @lilypond[staffsize=26,line-width=1.0\cm]
1066 \include "gregorian-init.ly"
1067 \score {
1068   \transpose c c' {
1069     % Punctum Inclinatum Parvum
1070     \[ \inclinatum \deminutum b \]
1071     \noBreak s^\markup {"f"}
1072   }
1073 \layout { \neumeDemoLayout }}
1074 @end lilypond
1075
1076 @item
1077 @code{2. Virga}
1078 @tab
1079 @lilypond[staffsize=26,line-width=1.0\cm]
1080 \include "gregorian-init.ly"
1081 \score {
1082   \transpose c c' {
1083     % Virga
1084     \[ \virga b \]
1085     \noBreak s^\markup {"g"}
1086   }
1087 \layout { \neumeDemoLayout }}
1088 @end lilypond
1089 @tab
1090 @tab
1091
1092 @item
1093 @code{3. Apostropha vel Stropha}
1094 @tab
1095 @lilypond[staffsize=26,line-width=1.0\cm]
1096 \include "gregorian-init.ly"
1097 \score {
1098   \transpose c c' {
1099     % Stropha
1100     \[ \stropha b \]
1101     \noBreak s^\markup {"h"}
1102   }
1103 \layout { \neumeDemoLayout }}
1104 @end lilypond
1105 @tab
1106 @lilypond[staffsize=26,line-width=1.0\cm]
1107 \include "gregorian-init.ly"
1108 \score {
1109   \transpose c c' {
1110     % Stropha Aucta
1111     \[ \stropha \auctum b \]
1112     \noBreak s^\markup {"i"}
1113   }
1114 \layout { \neumeDemoLayout }}
1115 @end lilypond
1116 @tab
1117
1118 @item
1119 @code{4. Oriscus}
1120 @tab
1121 @lilypond[staffsize=26,line-width=1.0\cm]
1122 \include "gregorian-init.ly"
1123 \score {
1124   \transpose c c' {
1125     % Oriscus
1126     \[ \oriscus b \]
1127     \noBreak s^\markup {"j"}
1128   }
1129 \layout { \neumeDemoLayout }}
1130 @end lilypond
1131 @tab
1132 @tab
1133
1134 @item
1135 @code{5. Clivis vel Flexa}
1136 @tab
1137 @lilypond[staffsize=26,line-width=1.0\cm]
1138 \include "gregorian-init.ly"
1139 \score {
1140   \transpose c c' {
1141     % Clivis vel Flexa
1142     \[ b \flexa g \]
1143     s^\markup {"k"}
1144   }
1145 \layout { \neumeDemoLayout }}
1146 @end lilypond
1147 @tab
1148 @lilypond[staffsize=26,line-width=2.0\cm]
1149 \include "gregorian-init.ly"
1150 \score {
1151   \transpose c c' {
1152     % Clivis Aucta Descendens
1153     \[ b \flexa \auctum \descendens g \]
1154     \noBreak s^\markup {"l"} \noBreak
1155
1156     % Clivis Aucta Ascendens
1157     \[ b \flexa \auctum \ascendens g \]
1158     \noBreak s^\markup {"m"}
1159   }
1160 \layout { \neumeDemoLayout }}
1161 @end lilypond
1162 @tab
1163 @lilypond[staffsize=26,line-width=1.0\cm]
1164 \include "gregorian-init.ly"
1165 \score {
1166   \transpose c c' {
1167     % Cephalicus
1168     \[ b \flexa \deminutum g \]
1169     s^\markup {"n"}
1170   }
1171 \layout { \neumeDemoLayout }}
1172 @end lilypond
1173
1174 @item
1175 @code{6. Podatus vel Pes}
1176 @tab
1177 @lilypond[staffsize=26,line-width=1.0\cm]
1178 \include "gregorian-init.ly"
1179 \score {
1180   \transpose c c' {
1181     % Podatus vel Pes
1182     \[ g \pes b \]
1183     s^\markup {"o"}
1184   }
1185 \layout { \neumeDemoLayout }}
1186 @end lilypond
1187 @tab
1188 @lilypond[staffsize=26,line-width=2.0\cm]
1189 \include "gregorian-init.ly"
1190 \score {
1191   \transpose c c' {
1192     % Pes Auctus Descendens
1193     \[ g \pes \auctum \descendens b \]
1194     \noBreak s^\markup {"p"} \noBreak
1195
1196     % Pes Auctus Ascendens
1197     \[ g \pes \auctum \ascendens b \]
1198     \noBreak s^\markup {"q"}
1199   }
1200 \layout { \neumeDemoLayout }}
1201 @end lilypond
1202 @tab
1203 @lilypond[staffsize=26,line-width=1.0\cm]
1204 \include "gregorian-init.ly"
1205 \score {
1206   \transpose c c' {
1207     % Epiphonus
1208     \[ g \pes \deminutum b \]
1209     s^\markup {"r"}
1210   }
1211 \layout { \neumeDemoLayout }}
1212 @end lilypond
1213
1214 @item
1215 @code{7. Pes Quassus}
1216 @tab
1217 @lilypond[staffsize=26,line-width=1.0\cm]
1218 \include "gregorian-init.ly"
1219 \score {
1220   \transpose c c' {
1221     % Pes Quassus
1222     \[ \oriscus g \pes \virga b \]
1223     s^\markup {"s"}
1224   }
1225 \layout { \neumeDemoLayout }}
1226 @end lilypond
1227 @tab
1228 @lilypond[staffsize=26,line-width=1.0\cm]
1229 \include "gregorian-init.ly"
1230 \score {
1231   \transpose c c' {
1232     % Pes Quassus Auctus Descendens
1233     \[ \oriscus g \pes \auctum \descendens b \]
1234     s^\markup {"t"}
1235   }
1236 \layout { \neumeDemoLayout }}
1237 @end lilypond
1238 @tab
1239
1240 @item
1241 @code{8. Quilisma Pes}
1242 @tab
1243 @lilypond[staffsize=26,line-width=1.0\cm]
1244 \include "gregorian-init.ly"
1245 \score {
1246   \transpose c c' {
1247     % Quilisma Pes
1248     \[ \quilisma g \pes b \]
1249     s^\markup {"u"}
1250   }
1251 \layout { \neumeDemoLayout }}
1252 @end lilypond
1253 @tab
1254 @lilypond[staffsize=26,line-width=1.0\cm]
1255 \include "gregorian-init.ly"
1256 \score {
1257   \transpose c c' {
1258     % Quilisma Pes Auctus Descendens
1259     \[ \quilisma g \pes \auctum \descendens b \]
1260     s^\markup {"v"}
1261   }
1262 \layout { \neumeDemoLayout }}
1263 @end lilypond
1264 @tab
1265
1266 @item
1267 @code{9. Podatus Initio Debilis}
1268 @tab
1269 @lilypond[staffsize=26,line-width=1.0\cm]
1270 \include "gregorian-init.ly"
1271 \score {
1272   \transpose c c' {
1273     % Pes Initio Debilis
1274     \[ \deminutum g \pes b \]
1275     s^\markup {"w"}
1276   }
1277 \layout { \neumeDemoLayout }}
1278 @end lilypond
1279 @tab
1280 @lilypond[staffsize=26,line-width=1.0\cm]
1281 \include "gregorian-init.ly"
1282 \score {
1283   \transpose c c' {
1284     % Pes Auctus Descendens Initio Debilis
1285     \[ \deminutum g \pes \auctum \descendens b \]
1286     s^\markup {"x"}
1287   }
1288 \layout { \neumeDemoLayout }}
1289 @end lilypond
1290 @tab
1291
1292 @item
1293 @code{10. Torculus}
1294 @tab
1295 @lilypond[staffsize=26,line-width=1.0\cm]
1296 \include "gregorian-init.ly"
1297 \score {
1298   \transpose c c' {
1299     % Torculus
1300     \[ a \pes b \flexa g \]
1301     s^\markup {"y"}
1302   }
1303 \layout { \neumeDemoLayout }}
1304 @end lilypond
1305 @tab
1306 @lilypond[staffsize=26,line-width=1.0\cm]
1307 \include "gregorian-init.ly"
1308 \score {
1309   \transpose c c' {
1310     % Torculus Auctus Descendens
1311     \[ a \pes b \flexa \auctum \descendens g \]
1312     s^\markup {"z"}
1313   }
1314 \layout { \neumeDemoLayout }}
1315 @end lilypond
1316 @tab
1317 @lilypond[staffsize=26,line-width=1.0\cm]
1318 \include "gregorian-init.ly"
1319 \score {
1320   \transpose c c' {
1321     % Torculus Deminutus
1322     \[ a \pes b \flexa \deminutum g \]
1323     s^\markup {"A"}
1324   }
1325 \layout { \neumeDemoLayout }}
1326 @end lilypond
1327
1328 @item
1329 @code{11. Torculus Initio Debilis}
1330 @tab
1331 @lilypond[staffsize=26,line-width=1.0\cm]
1332 \include "gregorian-init.ly"
1333 \score {
1334   \transpose c c' {
1335     % Torculus Initio Debilis
1336     \[ \deminutum a \pes b \flexa g \]
1337     s^\markup {"B"}
1338   }
1339 \layout { \neumeDemoLayout }}
1340 @end lilypond
1341 @tab
1342 @lilypond[staffsize=26,line-width=1.0\cm]
1343 \include "gregorian-init.ly"
1344 \score {
1345   \transpose c c' {
1346     % Torculus Auctus Descendens Initio Debilis
1347     \[ \deminutum a \pes b \flexa \auctum \descendens g \]
1348     s^\markup {"C"}
1349   }
1350 \layout { \neumeDemoLayout }}
1351 @end lilypond
1352 @tab
1353 @lilypond[staffsize=26,line-width=1.0\cm]
1354 \include "gregorian-init.ly"
1355 \score {
1356   \transpose c c' {
1357     % Torculus Deminutus Initio Debilis
1358     \[ \deminutum a \pes b \flexa \deminutum g \]
1359     s^\markup {"D"}
1360   }
1361 \layout { \neumeDemoLayout }}
1362 @end lilypond
1363
1364 @item
1365 @code{12. Porrectus}
1366 @tab
1367 @lilypond[staffsize=26,line-width=1.0\cm]
1368 \include "gregorian-init.ly"
1369 \score {
1370   \transpose c c' {
1371     % Porrectus
1372     \[ a \flexa g \pes b \]
1373     s^\markup {"E"}
1374   }
1375 \layout { \neumeDemoLayout }}
1376 @end lilypond
1377 @tab
1378 @lilypond[staffsize=26,line-width=1.0\cm]
1379 \include "gregorian-init.ly"
1380 \score {
1381   \transpose c c' {
1382     % Porrectus Auctus Descendens
1383     \[ a \flexa g \pes \auctum \descendens b \]
1384     s^\markup {"F"}
1385   }
1386 \layout { \neumeDemoLayout }}
1387 @end lilypond
1388 @tab
1389 @lilypond[staffsize=26,line-width=1.0\cm]
1390 \include "gregorian-init.ly"
1391 \score {
1392   \transpose c c' {
1393     % Porrectus Deminutus
1394     \[ a \flexa g \pes \deminutum b \]
1395     s^\markup {"G"}
1396   }
1397 \layout { \neumeDemoLayout }}
1398 @end lilypond
1399
1400 @item
1401 @code{13. Climacus}
1402 @tab
1403 @lilypond[staffsize=26,line-width=1.0\cm]
1404 \include "gregorian-init.ly"
1405 \score {
1406   \transpose c c' {
1407     % Climacus
1408     \[ \virga b \inclinatum a \inclinatum g \]
1409     s^\markup {"H"}
1410   }
1411   \layout { \neumeDemoLayout }
1412 }
1413 @end lilypond
1414 @tab
1415 @lilypond[staffsize=26,line-width=1.0\cm]
1416 \include "gregorian-init.ly"
1417 \score {
1418   \transpose c c' {
1419     % Climacus Auctus
1420     \[ \virga b \inclinatum a \inclinatum \auctum g \]
1421     s^\markup {"I"}
1422   }
1423 \layout { \neumeDemoLayout }}
1424 @end lilypond
1425 @tab
1426 @lilypond[staffsize=26,line-width=1.0\cm]
1427 \include "gregorian-init.ly"
1428 \score {
1429   \transpose c c' {
1430     % Climacus Deminutus
1431     \[ \virga b \inclinatum a \inclinatum \deminutum g \]
1432     s^\markup {"J"}
1433   }
1434 \layout { \neumeDemoLayout }}
1435 @end lilypond
1436
1437 @item
1438 @code{14. Scandicus}
1439 @tab
1440 @lilypond[staffsize=26,line-width=1.0\cm]
1441 \include "gregorian-init.ly"
1442 \score {
1443   \transpose c c' {
1444     % Scandicus
1445     \[ g \pes a \virga b \]
1446     s^\markup {"K"}
1447   }
1448 \layout { \neumeDemoLayout }}
1449 @end lilypond
1450 @tab
1451 @lilypond[staffsize=26,line-width=1.0\cm]
1452 \include "gregorian-init.ly"
1453 \score {
1454   \transpose c c' {
1455     % Scandicus Auctus Descendens
1456     \[ g \pes a \pes \auctum \descendens b \]
1457     s^\markup {"L"}
1458   }
1459 \layout { \neumeDemoLayout }}
1460 @end lilypond
1461 @tab
1462 @lilypond[staffsize=26,line-width=1.0\cm]
1463 \include "gregorian-init.ly"
1464 \score {
1465   \transpose c c' {
1466     % Scandicus Deminutus
1467     \[ g \pes a \pes \deminutum b \]
1468     s^\markup {"M"}
1469   }
1470 \layout { \neumeDemoLayout }}
1471 @end lilypond
1472
1473 @item
1474 @code{15. Salicus}
1475 @tab
1476 @lilypond[staffsize=26,line-width=1.0\cm]
1477 \include "gregorian-init.ly"
1478 \score {
1479   \transpose c c' {
1480     % Salicus
1481     \[ g \oriscus a \pes \virga b \]
1482     s^\markup {"N"}
1483   }
1484 \layout { \neumeDemoLayout }}
1485 @end lilypond
1486 @tab
1487 @lilypond[staffsize=26,line-width=1.0\cm]
1488 \include "gregorian-init.ly"
1489 \score {
1490   \transpose c c' {
1491     % Salicus Auctus Descendens
1492     \[ g \oriscus a \pes \auctum \descendens b \]
1493     s^\markup {"O"}
1494   }
1495 \layout { \neumeDemoLayout }}
1496 @end lilypond
1497 @tab
1498
1499 @item
1500 @code{16. Trigonus}
1501 @tab
1502 @lilypond[staffsize=26,line-width=1.0\cm]
1503 \include "gregorian-init.ly"
1504 \score {
1505   \transpose c c' {
1506     % Trigonus
1507     \[ \stropha b \stropha b \stropha a \]
1508     s^\markup {"P"}
1509   }
1510   \layout { \neumeDemoLayout }
1511 }
1512 @end lilypond
1513 @tab
1514 @tab
1515
1516 @end multitable
1517
1518
1519 Unlike most other neumes notation systems, the input language for
1520 neumes does not reflect the typographical appearance, but is designed
1521 to focus on musical meaning.  For example, @code{\[ a \pes b
1522 \flexa g \]} produces a Torculus consisting of three Punctum heads,
1523 while @code{\[ a \flexa g \pes b \]} produces a Porrectus with a
1524 curved flexa shape and only a single Punctum head.  There is no
1525 command to explicitly typeset the curved flexa shape; the decision of
1526 when to typeset a curved flexa shape is based on the musical
1527 input.  The idea of this approach is to separate the musical aspects
1528 of the input from the notation style of the output.  This way, the
1529 same input can be reused to typeset the same music in a different
1530 style of Gregorian chant notation.
1531
1532 The following table shows the code fragments that produce the
1533 ligatures in the above neumes table.  The letter in the first column
1534 in each line of the below table indicates to which ligature in the
1535 above table it refers.  The second column gives the name of the
1536 ligature.  The third column shows the code fragment that produces this
1537 ligature, using @code{g}, @code{a}, and @code{b} as example pitches.
1538
1539 @multitable @columnfractions .02 .31 .67
1540 @item
1541 @b{#}
1542 @tab
1543 @b{Name}
1544 @tab
1545 @b{Input Language}
1546
1547 @item
1548 a
1549 @tab
1550 Punctum
1551 @tab
1552 @code{\[ b \]}
1553
1554 @item
1555 b
1556 @tab
1557 Punctum Inclinatum
1558 @tab
1559 @code{\[ \inclinatum b \]}
1560
1561 @item
1562 c
1563 @tab
1564 Punctum Auctum@*
1565 Ascendens
1566 @tab
1567 @code{\[ \auctum \ascendens b \]}
1568
1569 @item
1570 d
1571 @tab
1572 Punctum Auctum@*
1573 Descendens
1574 @tab
1575 @code{\[ \auctum \descendens b \]}
1576
1577 @item
1578 e
1579 @tab
1580 Punctum Inclinatum@*
1581 Auctum
1582 @tab
1583 @code{\[ \inclinatum \auctum b \]}
1584
1585 @item
1586 f
1587 @tab
1588 Punctum Inclinatum@*
1589 Parvum @tab
1590 @code{\[ \inclinatum \deminutum b \]}
1591
1592 @item
1593 g
1594 @tab
1595 Virga
1596 @tab
1597 @code{\[ \virga b \]}
1598
1599 @item
1600 h
1601 @tab
1602 Stropha
1603 @tab
1604 @code{\[ \stropha b \]}
1605
1606 @item
1607 i
1608 @tab
1609 Stropha Aucta
1610 @tab
1611 @code{\[ \stropha \auctum b \]}
1612
1613 @item
1614 j
1615 @tab
1616 Oriscus
1617 @tab
1618 @code{\[ \oriscus b \]}
1619
1620 @item
1621 k
1622 @tab
1623 Clivis vel Flexa
1624 @tab
1625 @code{\[ b \flexa g \]}
1626
1627 @item
1628 l
1629 @tab
1630 Clivis Aucta@*
1631 Descendens
1632 @tab
1633 @code{\[ b \flexa \auctum \descendens g \]}
1634
1635 @item
1636 m
1637 @tab
1638 Clivis Aucta@*
1639 Ascendens
1640 @tab
1641 @code{\[ b \flexa \auctum \ascendens g \]}
1642
1643 @item
1644 n
1645 @tab
1646 Cephalicus
1647 @tab
1648 @code{\[ b \flexa \deminutum g \]}
1649
1650 @item
1651 o
1652 @tab
1653 Podatus vel Pes
1654 @tab
1655 @code{\[ g \pes b \]}
1656
1657 @item
1658 p
1659 @tab
1660 Pes Auctus@*
1661 Descendens
1662 @tab
1663 @code{\[ g \pes \auctum \descendens b \]}
1664
1665 @item
1666 q
1667 @tab
1668 Pes Auctus@*
1669 Ascendens
1670 @tab
1671 @code{\[ g \pes \auctum \ascendens b \]}
1672
1673 @item
1674 r
1675 @tab
1676 Epiphonus
1677 @tab
1678 @code{\[ g \pes \deminutum b \]}
1679
1680 @item
1681 s
1682 @tab
1683 Pes Quassus
1684 @tab
1685 @code{\[ \oriscus g \pes \virga b \]}
1686
1687 @item
1688 t
1689 @tab
1690 Pes Quassus@*
1691 Auctus Descendens @tab
1692 @code{\[ \oriscus g \pes \auctum \descendens b \]}
1693
1694 @item
1695 u
1696 @tab
1697 Quilisma Pes
1698 @tab
1699 @code{\[ \quilisma g \pes b \]}
1700
1701 @item
1702 v
1703 @tab
1704 Quilisma Pes@*
1705 Auctus Descendens
1706 @tab
1707 @code{\[ \quilisma g \pes \auctum \descendens b \]}
1708
1709 @item
1710 w
1711 @tab
1712 Pes Initio Debilis
1713 @tab
1714 @code{\[ \deminutum g \pes b \]}
1715
1716 @item
1717 x
1718 @tab
1719 Pes Auctus Descendens@*
1720 Initio Debilis
1721 @tab
1722 @code{\[ \deminutum g \pes \auctum \descendens b \]}
1723
1724 @item
1725 y
1726 @tab
1727 Torculus
1728 @tab
1729 @code{\[ a \pes b \flexa g \]}
1730
1731 @item
1732 z
1733 @tab
1734 Torculus Auctus@*
1735 Descendens
1736 @tab
1737 @code{\[ a \pes b \flexa \auctum \descendens g \]}
1738
1739 @item
1740 A
1741 @tab
1742 Torculus Deminutus
1743 @tab
1744 @code{\[ a \pes b \flexa \deminutum g \]}
1745
1746 @item
1747 B
1748 @tab
1749 Torculus Initio Debilis
1750 @tab
1751 @code{\[ \deminutum a \pes b \flexa g \]}
1752
1753 @item
1754 C
1755 @tab
1756 Torculus Auctus@*
1757 Descendens Initio Debilis
1758 @tab
1759 @code{\[ \deminutum a \pes b \flexa \auctum \descendens g \]}
1760
1761 @item
1762 D
1763 @tab
1764 Torculus Deminutus@*
1765 Initio Debilis
1766 @tab
1767 @code{\[ \deminutum a \pes b \flexa \deminutum g \]}
1768
1769 @item
1770 E
1771 @tab
1772 Porrectus
1773 @tab
1774 @code{\[ a \flexa g \pes b \]}
1775
1776 @item
1777 F
1778 @tab
1779 Porrectus Auctus@*
1780 Descendens
1781 @tab
1782 @code{\[ a \flexa g \pes \auctum \descendens b \]}
1783
1784 @item
1785 G
1786 @tab
1787 Porrectus Deminutus
1788 @tab
1789 @code{\[ a \flexa g \pes \deminutum b \]}
1790
1791 @item
1792 H
1793 @tab
1794 Climacus
1795 @tab
1796 @code{\[ \virga b \inclinatum a \inclinatum g \]}
1797
1798 @item
1799 I
1800 @tab
1801 Climacus Auctus
1802 @tab
1803 @code{\[ \virga b \inclinatum a \inclinatum \auctum g \]}
1804
1805 @item
1806 J
1807 @tab
1808 Climacus Deminutus
1809 @tab
1810 @code{\[ \virga b \inclinatum a \inclinatum \deminutum g \]}
1811
1812 @item
1813 K
1814 @tab
1815 Scandicus
1816 @tab
1817 @code{\[ g \pes a \virga b \]}
1818
1819 @item
1820 L
1821 @tab
1822 Scandicus Auctus@*
1823 Descendens
1824 @tab
1825 @code{\[ g \pes a \pes \auctum \descendens b \]}
1826
1827 @item
1828 M
1829 @tab
1830 Scandicus Deminutus
1831 @tab
1832 @code{\[ g \pes a \pes \deminutum b \]}
1833
1834 @item
1835 N
1836 @tab
1837 Salicus
1838 @tab
1839 @code{\[ g \oriscus a \pes \virga b \]}
1840
1841 @item
1842 O
1843 @tab
1844 Salicus Auctus Descendens
1845 @tab
1846 @code{\[ g \oriscus a \pes \auctum \descendens b \]}
1847
1848 @item
1849 P
1850 @tab
1851 Trigonus
1852 @tab
1853 @code{\[ \stropha b \stropha b \stropha a \]}
1854 @end multitable
1855
1856 The ligatures listed above mainly serve as a limited, but still
1857 representative pool of Gregorian ligature examples.  Virtually, within
1858 the ligature delimiters @code{\[} and @code{\]}, any number of heads
1859 may be accumulated to form a single ligature, and head prefixes like
1860 @code{\pes}, @code{\flexa}, @code{\virga}, @code{\inclinatum},
1861 etc. may be mixed in as desired.  The use of the set of rules that
1862 underlies the construction of the ligatures in the above table is
1863 accordingly extrapolated.  This way, infinitely many different
1864 ligatures can be created.
1865
1866 Augmentum dots, also called @emph{morae}, are added with the music
1867 function @code{\augmentum}.  Note that @code{\augmentum} is
1868 implemented as a unary music function rather than as head prefix.  It
1869 applies to the immediately following music expression only.  That is,
1870 @code{\augmentum \virga c} will have no visible effect.  Instead, say
1871 @code{\virga \augmentum c} or @code{\augmentum @{\virga c@}}.  Also
1872 note that you can say @code{\augmentum @{a g@}} as a shortcut for
1873 @code{\augmentum a \augmentum g}.
1874
1875 @lilypond[quote,ragged-right,verbatim]
1876 \include "gregorian-init.ly"
1877 \score {
1878   \new VaticanaVoice {
1879     \[ \augmentum a \flexa \augmentum g \]
1880     \augmentum g
1881   }
1882 }
1883 @end lilypond
1884
1885 @predefined
1886
1887 The following head prefixes are supported
1888
1889 @funindex \virga
1890 @code{\virga},
1891 @funindex \stropha
1892 @code{\stropha},
1893 @funindex \inclinatum
1894 @code{\inclinatum},
1895 @funindex \auctum
1896 @code{\auctum},
1897 @funindex \descendens
1898 @code{\descendens},
1899 @funindex \ascendens
1900 @code{\ascendens},
1901 @funindex \oriscus
1902 @code{\oriscus},
1903 @funindex \quilisma
1904 @code{\quilisma},
1905 @funindex \deminutum
1906 @code{\deminutum},
1907 @funindex \cavum
1908 @code{\cavum},
1909 @funindex \linea
1910 @code{\linea}.
1911
1912 Head prefixes can be accumulated, though restrictions apply.  For
1913 example, either @code{\descendens} or @code{\ascendens} can be applied
1914 to a head, but not both to the same head.
1915
1916 @funindex \pes
1917 @funindex \flexa
1918 Two adjacent heads can be tied together with the @code{\pes} and
1919 @code{\flexa} infix commands for a rising and falling line of melody,
1920 respectively.
1921
1922 @funindex \augmentum
1923 Use the unary music function @code{\augmentum} to add augmentum dots.
1924
1925 @knownissues
1926
1927 When an @code{\augmentum} dot appears at the end of the last staff
1928 within a ligature, it is sometimes vertically placed wrong.  As a
1929 workaround, add an additional skip note (e.g. @code{s8}) as last note
1930 of the staff.
1931
1932 @code{\augmentum} should be implemented as a head prefix rather than a
1933 unary music function, such that @code{\augmentum} can be intermixed
1934 with head prefixes in arbitrary order.
1935
1936
1937 @node Pre-defined contexts
1938 @subsection Pre-defined contexts
1939
1940 @menu
1941 * Gregorian Chant contexts::
1942 * Mensural contexts::
1943 @end menu
1944
1945
1946 @node Gregorian Chant contexts
1947 @subsubsection Gregorian Chant contexts
1948
1949 @cindex VaticanaVoiceContext
1950 @cindex VaticanaStaffContext
1951
1952 The predefined @code{VaticanaVoiceContext} and
1953 @code{VaticanaStaffContext} can be used to engrave a piece of
1954 Gregorian Chant in the style of the Editio Vaticana.  These contexts
1955 initialize all relevant context properties and grob properties to
1956 proper values, so you can immediately go ahead entering the chant, as
1957 the following excerpt demonstrates
1958
1959 @lilypond[quote,ragged-right,packed,verbatim]
1960 \include "gregorian-init.ly"
1961 \score {
1962   <<
1963     \new VaticanaVoice = "cantus" {
1964       \[ c'\melisma c' \flexa a \]
1965       \[ a \flexa \deminutum g\melismaEnd \]
1966       f \divisioMinima
1967       \[ f\melisma \pes a c' c' \pes d'\melismaEnd \]
1968       c' \divisioMinima \break
1969       \[ c'\melisma c' \flexa a \]
1970       \[ a \flexa \deminutum g\melismaEnd \] f \divisioMinima
1971     }
1972     \new Lyrics \lyricsto "cantus" {
1973       San- ctus, San- ctus, San- ctus
1974     }
1975   >>
1976 }
1977 @end lilypond
1978
1979
1980 @node Mensural contexts
1981 @subsubsection Mensural contexts
1982
1983 @cindex MensuralVoiceContext
1984 @cindex MensuralStaffContext
1985
1986 The predefined @code{MensuralVoiceContext} and
1987 @code{MensuralStaffContext} can be used to engrave a piece in
1988 mensural style.  These contexts initialize all relevant context
1989 properties and grob properties to proper values, so you can
1990 immediately go ahead entering the chant, as the following excerpt
1991 demonstrates
1992
1993 @lilypond[quote,ragged-right,verbatim]
1994 \score {
1995   <<
1996     \new MensuralVoice = "discantus" \transpose c c' {
1997       \override Score.BarNumber #'transparent = ##t {
1998         c'1\melisma bes a g\melismaEnd
1999         f\breve
2000         \[ f1\melisma a c'\breve d'\melismaEnd \]
2001         c'\longa
2002         c'\breve\melisma a1 g1\melismaEnd
2003         fis\longa^\signumcongruentiae
2004       }
2005     }
2006     \new Lyrics \lyricsto "discantus" {
2007       San -- ctus, San -- ctus, San -- ctus
2008     }
2009   >>
2010 }
2011 @end lilypond
2012
2013 @node Transcribing ancient music
2014 @subsection Transcribing ancient music
2015
2016 @menu
2017 * Ancient and modern from one source::
2018 * Incipits::
2019 * Mensurstriche layout::
2020 * Transcribing Gregorian chant::
2021 @end menu
2022
2023
2024 @node Ancient and modern from one source
2025 @subsubsection Ancient and modern from one source
2026
2027 @c TODO Add text
2028 @c Here among others the snippets about reducing note length
2029 TBC
2030
2031
2032 @node Incipits
2033 @subsubsection Incipits
2034
2035 @c TODO Add text
2036 @c clefs, mensuration signs etc from lsr and -user
2037 @c use snippet Transcription-of-ancient-music-with-incipit
2038
2039 TBC
2040
2041
2042 @node Mensurstriche layout
2043 @subsubsection Mensurstriche layout
2044
2045 @c TODO Add text
2046 @c from lsr and -user
2047 TBC
2048
2049
2050 @node Transcribing Gregorian chant
2051 @subsubsection Transcribing Gregorian chant
2052
2053 @c TODO Add text
2054 @c extract from 1.6.1.1
2055 TBC
2056
2057
2058 @node Editorial markings
2059 @subsection Editorial markings
2060
2061 @menu
2062 * Annotational accidentals::
2063 * Baroque rhythmic notation::
2064 @end menu
2065
2066
2067 @node Annotational accidentals
2068 @subsubsection Annotational accidentals
2069
2070 In European music from before about 1600, singers were often
2071 expected to chromatically alter notes at their own initiative.
2072 This is called @q{Musica Ficta}.  In modern transcriptions, these
2073 accidentals are usually printed over the note.
2074
2075 @cindex Accidental, musica ficta
2076 @cindex Musica ficta
2077
2078 Support for such suggested accidentals is included, and can be
2079 switched on by setting @code{suggestAccidentals} to true.
2080
2081 @funindex suggestAccidentals
2082
2083 @lilypond[verbatim,fragment,relative=1]
2084 fis gis
2085 \set suggestAccidentals = ##t
2086 ais bis
2087 @end lilypond
2088
2089 This will treat @emph{every} subsequent accidentals as
2090 @emph{musica ficta} until it is unset with @code{\set
2091 suggestAccidentals = ##f}.  A more convenient way is to use
2092 @code{\once}:
2093
2094 @lilypond[verbatim,fragment,relative=1]
2095 fis gis
2096 \once \set suggestAccidentals = ##t
2097 ais ais bis
2098 @end lilypond
2099
2100 @seealso
2101
2102 Internals Reference: @rinternals{Accidental_engraver} engraver and
2103 the @rinternals{AccidentalSuggestion} object.
2104
2105
2106 @node Baroque rhythmic notation
2107 @subsubsection Baroque rhythmic notation
2108
2109 @c TODO Add text
2110 @c try Till Rettig
2111 @c Add example of white noteheads:
2112 @c In the french baroque some composers used white noteheads in slow pieces,
2113 @c mainly in 3/2-time.  A quarter looks there like a eighth with a white 
2114 @c notehead.  (Franz-Rudolf Kuhnen)
2115
2116 @c TODO Add example of this:
2117 @c I was referring to e.g. notated a8. a16, which should, if I
2118 @c remember correctly, be interpreted more like a8.. a32 (in the french
2119 @c style). The editor might want to show that rythmic figure above the
2120 @c staff as an hint to performers. (Karl Hammer)
2121
2122
2123 TBC