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