MIDI: fix regtest failure
[lilypond/patrick.git] / input / regression / mensural-ligatures.ly
blob18636147ca82a9c83eafb1962df7210ad6ab1c46
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
20 \override PaperColumn #'keep-inside-line = ##f
24 \context Voice {
25 \clef "petrucci-c4"
26 \set Staff.printKeyCancellation = ##f
27 \cadenzaOn % turn off bar lines
28 #(set-accidental-style 'forget)
29 \textLengthOn
31 % ligaturae binaria
34 b\breve^\markup { \column { { \bold "ligaturae binaria" } "BL" } }
35 g\longa
39 g\breve^\markup { "BL" }
40 b\longa
44 b\longa^\markup { "LL" }
49 g\longa^\markup { "LL" }
54 b\breve^\markup { "BB" }
59 g\breve^\markup { "BB" }
64 b\longa^\markup { "LB" }
65 g\breve
69 g\longa^\markup { "LB" }
70 b\breve
74 b1^\markup { "SS" }
79 g1^\markup { "SS" }
83 \bar "|" \break
85 % ligaturae ternariae, quaternariae, etc. (sicut in Apel[1])
88 b\breve^\markup {
89 \column { { \bold "ligaturae ternariae, quaternariae, etc." } "BBL" } }
91 g\longa
95 a\breve^\markup { "BBBB" }
102 b1^\markup { "SSBBBLB" }
104 g\breve
107 a\longa
108 b\breve
112 a\longa^\markup { "LBMxBL" }
113 g\breve
114 a\maxima
115 b\breve
116 a\longa
120 d'\breve^\markup { "BBBBLL" }
124 b\longa
129 c'1^\markup { "SSBLLBB" }
131 g\breve
132 d'\longa
134 c'\breve
138 \bar "|" \break
140 % examples from "dtv-Atlas zur Musik" [2]
143 d'\breve^\markup { \column { { \bold "dtv-Atlas" } "BBL" } }
145 b\longa
149 a\breve^\markup { "BBBL" }
152 d'\longa
156 b\longa.^\markup { "L.B.BBLBBB" }
157 g\breve.
158 a\breve
160 c'\longa
161 a\breve
167 c'1^\markup { "SSBB" }
169 g\breve
174 b\longa^\markup { "LBL" }
175 a\breve
176 c'\longa
180 a1^\markup { "SSBL" }
182 d'\breve
183 c'\longa
186 \bar "|" \break
188 % some ligatures from Ockeghem: Missa De plus en plus
191 c'\maxima^\markup {
192 \column { { \bold "Ockeghem: Missa De plus en plus" } "MxMx" } }
197 d\longa^\markup { "LBBBB" }
198 c\breve
205 c'\maxima^\markup { "MxL" }
206 d'\longa
210 e'\breve^\markup { "BBB" }
216 \override NoteHead #'style = #'blackpetrucci
217 b\longa^\markup { "LBBBBB." }
218 c'\breve
221 \once \override NoteHead #'ligature-flexa = ##t
223 \revert NoteHead #'style
224 g\breve.
228 g\breve^\markup { "BBBBL" }
232 d'\longa
236 \override NoteHead #'style = #'blackpetrucci
237 e'1^\markup { "SSB" }
239 g\breve
240 \revert NoteHead #'style
244 g\longa^\markup { "LLLL" }
251 \override NoteHead #'style = #'blackpetrucci
252 e'\longa^\markup { "LBB" }
253 f'\breve
254 \revert NoteHead #'style
259 \override NoteHead #'style = #'blackpetrucci
260 b\breve^\markup { "BBBBBBL" }
262 \override NoteHead #'ligature-flexa = ##t
263 \override NoteHead #'flexa-width = #3
266 \override NoteHead #'flexa-width = #5
269 \revert NoteHead #'style
270 % though ligature-flexa is still ##t, this pair must be drawn as recta
271 b\longa
272 \revert NoteHead #'flexa-width
273 \revert NoteHead #'ligature-flexa
276 \bar "|" \break
278 % some from the Requiem
281 a1^\markup { \column { { \bold "Ockeghem: Requiem" } "SSBBBBBBBL" } }
283 e\breve
290 e\longa
294 c'\breve^\markup { "BBBBL" }
298 c'\longa
301 \bar "|" \break
304 \context Staff \with
306 \override StaffSymbol #'line-count = #4
309 \clef "petrucci-c5"
310 \set Staff.printKeyCancellation = ##f
311 \cadenzaOn % turn off bar lines
312 #(set-accidental-style 'forget)
313 \textLengthOn
316 c\breve^\markup { \column { { \bold "crazy ligatures" } "BBBBB" } }
324 bes\breve^\markup { "BB" }
326 \] % TODO: accidentals must be collected and printed before ligature
329 a\breve.^\markup { "B.B.B.B.B.B.B.B.B." }
341 b^\markup { "B.B." }
343 \] % TODO the first dot is too high to avoid a non-existent (ledger) line
345 \bar "|" \break
347 % invalid ligatures (those commented out are rejected with explanation)
349 % \[
350 % a1^\markup { \column { { \bold "invalid ligatures" } "SS" } }
351 % as
352 % \]
355 a\breve^\markup { "BBB" }
360 % \[
361 % f\longa^\markup { "LLB" }
363 % f\breve
364 % \]
366 % \[
367 % f\breve^\markup { "BSLB" }
368 % a1
369 % g\longa
370 % a\breve
371 % \]
375 % Litterae:
377 % [1] Willi Apel: The Notation of Polyphonic Music. 900-1600.
378 % [2] Ulrich Michels: dtv-Atlas zur Musik, 1977.