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