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