regtest and changes for mensural ligature improvements
[lilypond/patrick.git] / input / regression / mensural-ligatures.ly
blobb34c6d1c9cfa5981bfd3c879dcfd647cafc1a700
1 \version "2.13.47"
3 \header {
4 texidoc = "Mensural ligatures show different shapes, depending on the
5 rhythmical pattern and direction of the melody line."
9 \layout {
10 ragged-right = ##t
11 indent = 0.0
12 \context {
13 \Voice
14 \remove "Ligature_bracket_engraver"
15 \consists "Mensural_ligature_engraver"
17 \context {
18 \Score
19 \override SpacingSpanner #'packed-spacing = ##t
23 \context Voice {
24 \clef "petrucci-c4"
25 \set Staff.printKeyCancellation = ##f
26 \cadenzaOn % turn off bar lines
27 #(set-accidental-style 'forget)
28 \textLengthOn
30 % ligaturae binaria
33 b\breve^\markup { \column { { \bold "ligaturae binaria" } "BL" } }
34 g\longa
38 g\breve^\markup { "BL" }
39 b\longa
43 b\longa^\markup { "LL" }
48 g\longa^\markup { "LL" }
53 b\breve^\markup { "BB" }
58 g\breve^\markup { "BB" }
63 b\longa^\markup { "LB" }
64 g\breve
68 g\longa^\markup { "LB" }
69 b\breve
73 b1^\markup { "SS" }
78 g1^\markup { "SS" }
82 \bar "|" \break
84 % ligaturae ternariae, quaternariae, etc. (sicut in Apel[1])
87 b\breve^\markup {
88 \column { { \bold "ligaturae ternariae, quaternariae, etc." } "BBL" } }
90 g\longa
94 a\breve^\markup { "BBBB" }
101 b1^\markup { "SSBBBLB" }
103 g\breve
106 a\longa
107 b\breve
111 a\longa^\markup { "LBMxBL" }
112 g\breve
113 a\maxima
114 b\breve
115 a\longa
119 d'\breve^\markup { "BBBBLL" }
123 b\longa
128 c'1^\markup { "SSBLLBB" }
130 g\breve
131 d'\longa
133 c'\breve
137 \bar "|" \break
139 % examples from "dtv-Atlas zur Musik" [2]
142 d'\breve^\markup { \column { { \bold "dtv-Atlas" } "BBL" } }
144 b\longa
148 a\breve^\markup { "BBBL" }
151 d'\longa
155 b\longa.^\markup { "L.B.BBLBBB" }
156 g\breve.
157 a\breve
159 c'\longa
160 a\breve
166 c'1^\markup { "SSBB" }
168 g\breve
173 b\longa^\markup { "LBL" }
174 a\breve
175 c'\longa
179 a1^\markup { "SSBL" }
181 d'\breve
182 c'\longa
185 \bar "|" \break
187 % some ligatures from Ockeghem: Missa De plus en plus
190 c'\maxima^\markup {
191 \column { { \bold "Ockeghem: Missa De plus en plus" } "MxMx" } }
196 d\longa^\markup { "LBBBB" }
197 c\breve
204 c'\maxima^\markup { "MxL" }
205 d'\longa
209 e'\breve^\markup { "BBB" }
215 \override NoteHead #'style = #'blackpetrucci
216 b\longa^\markup { "LBBBBB." }
217 c'\breve
220 \once \override NoteHead #'ligature-flexa = ##t
222 \revert NoteHead #'style
223 g\breve.
227 g\breve^\markup { "BBBBL" }
231 d'\longa
235 \override NoteHead #'style = #'blackpetrucci
236 e'1^\markup { "SSB" }
238 g\breve
239 \revert NoteHead #'style
243 g\longa^\markup { "LLLL" }
250 \override NoteHead #'style = #'blackpetrucci
251 e'\longa^\markup { "LBB" }
252 f'\breve
253 \revert NoteHead #'style
258 \override NoteHead #'style = #'blackpetrucci
259 b\breve^\markup { "BBBBBBL" }
261 \override NoteHead #'ligature-flexa = ##t
262 \override NoteHead #'flexa-width = #3
265 \override NoteHead #'flexa-width = #5
268 \revert NoteHead #'style
269 % though ligature-flexa is still ##t, this pair must be drawn as recta
270 b\longa
271 \revert NoteHead #'flexa-width
272 \revert NoteHead #'ligature-flexa
275 \bar "|" \break
277 % some from the Requiem
280 a1^\markup { \column { { \bold "Ockeghem: Requiem" } "SSBBBBBBBL" } }
282 e\breve
289 e\longa
293 c'\breve^\markup { "BBBBL" }
297 c'\longa
300 \bar "|" \break
303 \context Staff \with
305 \override StaffSymbol #'line-count = #4
308 \clef "petrucci-c5"
309 \set Staff.printKeyCancellation = ##f
310 \cadenzaOn % turn off bar lines
311 #(set-accidental-style 'forget)
312 \textLengthOn
315 c\breve^\markup { \column { { \bold "crazy ligatures" } "BBBBB" } }
323 bes\breve^\markup { "BB" }
325 \] % TODO: accidentals must be collected and printed before ligature
328 a\breve.^\markup { "B.B.B.B.B.B.B.B.B." }
340 b^\markup { "B.B." }
342 \] % TODO the first dot is too high to avoid a non-existent (ledger) line
344 \bar "|" \break
346 % invalid ligatures (those commented out are rejected with explanation)
348 % \[
349 % a1^\markup { \column { { \bold "invalid ligatures" } "SS" } }
350 % as
351 % \]
354 a\breve^\markup { "BBB" }
359 % \[
360 % f\longa^\markup { "LLB" }
362 % f\breve
363 % \]
365 % \[
366 % f\breve^\markup { "BSLB" }
367 % a1
368 % g\longa
369 % a\breve
370 % \]
374 % Litterae:
376 % [1] Willi Apel: The Notation of Polyphonic Music. 900-1600.
377 % [2] Ulrich Michels: dtv-Atlas zur Musik, 1977.