vexflow 5.4.0 → 5.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/build/cjs/vexflow-bravura.js +2 -2
  2. package/build/cjs/vexflow-bravura.js.map +1 -1
  3. package/build/cjs/vexflow-core.js +2 -2
  4. package/build/cjs/vexflow-core.js.map +1 -1
  5. package/build/cjs/vexflow-debug-with-tests.js +1740 -372
  6. package/build/cjs/vexflow-debug-with-tests.js.map +1 -1
  7. package/build/cjs/vexflow-debug.js +565 -258
  8. package/build/cjs/vexflow-debug.js.map +1 -1
  9. package/build/cjs/vexflow.js +2 -2
  10. package/build/cjs/vexflow.js.map +1 -1
  11. package/build/esm/src/annotation.js +2 -1
  12. package/build/esm/src/continuouslayout.js +107 -16
  13. package/build/esm/src/continuousspan.js +9 -1
  14. package/build/esm/src/easyscore/composition.js +83 -18
  15. package/build/esm/src/factory.js +2 -9
  16. package/build/esm/src/formatter.js +1 -1
  17. package/build/esm/src/fretdiagram.js +6 -2
  18. package/build/esm/src/gracenotegroup.js +4 -3
  19. package/build/esm/src/guitarmodifiers.js +4 -1
  20. package/build/esm/src/metrics.js +24 -5
  21. package/build/esm/src/note.js +1 -0
  22. package/build/esm/src/notehead.js +21 -10
  23. package/build/esm/src/phraselayout.js +13 -5
  24. package/build/esm/src/publication.js +10 -5
  25. package/build/esm/src/publicationview.js +3 -2
  26. package/build/esm/src/stave.js +4 -2
  27. package/build/esm/src/stavenote.js +56 -13
  28. package/build/esm/src/stavesection.js +15 -10
  29. package/build/esm/src/stavetie.js +3 -2
  30. package/build/esm/src/strokes.js +1 -1
  31. package/build/esm/src/svgcontext.js +11 -3
  32. package/build/esm/src/tabnote.js +6 -8
  33. package/build/esm/src/tabtie.js +3 -0
  34. package/build/esm/src/version.js +3 -3
  35. package/build/esm/tests/chordsymbol_tests.js +4 -1
  36. package/build/esm/tests/demo_petzold_tests.js +26 -14
  37. package/build/esm/tests/demo_repertoire_tests.js +5 -1
  38. package/build/esm/tests/demos/ballade.js +15 -0
  39. package/build/esm/tests/demos/electric.js +1 -3
  40. package/build/esm/tests/demos/fugue.js +19 -0
  41. package/build/esm/tests/demos/greensleeves.js +1 -2
  42. package/build/esm/tests/demos/kesh.js +2 -3
  43. package/build/esm/tests/demos/saints.js +17 -5
  44. package/build/esm/tests/engraving/continuous-studies.mjs +24 -0
  45. package/build/esm/tests/engraving/publication-studies.mjs +30 -0
  46. package/build/esm/tests/font_tests.js +8 -0
  47. package/build/esm/tests/gracenote_tests.js +1 -1
  48. package/build/esm/tests/gracetabnote_tests.js +19 -3
  49. package/build/esm/tests/node/chord-kerning-tests.mjs +2 -2
  50. package/build/esm/tests/node/continuous-score-tests.mjs +157 -2
  51. package/build/esm/tests/node/easyscore-tests.mjs +38 -0
  52. package/build/esm/tests/node/engraving-layout-tests.mjs +33 -0
  53. package/build/esm/tests/node/instrument-profile-tests.mjs +40 -0
  54. package/build/esm/tests/node/local-engraving-tests.mjs +58 -0
  55. package/build/esm/tests/node/metrics-tests.mjs +2 -0
  56. package/build/esm/tests/node/phrase-layout-tests.mjs +58 -5
  57. package/build/esm/tests/node/publication-tests.mjs +158 -2
  58. package/build/esm/tests/node/svg-export-tests.mjs +50 -21
  59. package/build/esm/tests/scores/ballade.js +399 -0
  60. package/build/esm/tests/scores/drums.js +93 -0
  61. package/build/esm/tests/scores/electric.js +83 -0
  62. package/build/esm/tests/scores/falseta.js +46 -0
  63. package/build/esm/tests/scores/fugue.js +366 -0
  64. package/build/esm/tests/scores/guitar.js +32 -0
  65. package/build/esm/tests/scores/kesh.js +146 -0
  66. package/build/esm/tests/scores/prelude.js +84 -0
  67. package/build/esm/tests/scores/quartertones.js +78 -0
  68. package/build/esm/tests/scores/saints.js +70 -0
  69. package/build/esm/tests/scores/sumer.js +126 -0
  70. package/build/esm/tests/scores/viewer.js +162 -0
  71. package/build/esm/tests/tabnote_tests.js +43 -0
  72. package/build/esm/tests/vexflow_test_helpers.js +1 -0
  73. package/build/esm/tools/explorer/catalog/expression.mjs +16 -6
  74. package/build/esm/tools/explorer/catalog/guitar.mjs +2 -2
  75. package/build/types/src/continuouslayout.d.ts +4 -0
  76. package/build/types/src/continuousspan.d.ts +10 -2
  77. package/build/types/src/easyscore/composition.d.ts +19 -0
  78. package/build/types/src/fretdiagram.d.ts +2 -0
  79. package/build/types/src/instrumentprofile.d.ts +4 -0
  80. package/build/types/src/note.d.ts +2 -0
  81. package/build/types/src/notehead.d.ts +2 -0
  82. package/build/types/src/publication.d.ts +3 -1
  83. package/build/types/src/stave.d.ts +4 -2
  84. package/build/types/src/stavenote.d.ts +10 -0
  85. package/build/types/src/stavesection.d.ts +3 -0
  86. package/build/types/src/svgcontext.d.ts +2 -0
  87. package/build/types/src/typeguard.d.ts +1 -0
  88. package/changelog/CHANGELOG.md +16 -0
  89. package/package.json +4 -1
  90. package/tests/all.html +9 -0
  91. package/tests/demo_petzold_tests.ts +30 -16
  92. package/tests/demos/ballade.ts +36 -0
  93. package/tests/demos/ballade.webp +0 -0
  94. package/tests/demos/electric.ts +1 -3
  95. package/tests/demos/electric.webp +0 -0
  96. package/tests/demos/fugue.ts +27 -0
  97. package/tests/demos/fugue.webp +0 -0
  98. package/tests/demos/greensleeves.ts +1 -3
  99. package/tests/demos/greensleeves.webp +0 -0
  100. package/tests/demos/kesh.ts +2 -4
  101. package/tests/demos/kesh.webp +0 -0
  102. package/tests/demos/saints.ts +20 -7
  103. package/tests/demos/saints.webp +0 -0
  104. package/tests/flow.html +165 -52
  105. package/tests/minuet.webp +0 -0
  106. package/tests/scores/ballade.js +445 -0
  107. package/tests/scores/drums.js +101 -0
  108. package/tests/scores/drums.webp +0 -0
  109. package/tests/scores/electric.js +93 -0
  110. package/tests/scores/electric.webp +0 -0
  111. package/tests/scores/falseta.js +53 -0
  112. package/tests/scores/falseta.webp +0 -0
  113. package/tests/scores/fugue.js +433 -0
  114. package/tests/scores/guitar.js +34 -0
  115. package/tests/scores/index.html +48 -0
  116. package/tests/scores/kesh.js +171 -0
  117. package/tests/scores/kesh.webp +0 -0
  118. package/tests/scores/prelude.js +90 -0
  119. package/tests/scores/prelude.webp +0 -0
  120. package/tests/scores/quartertones.js +83 -0
  121. package/tests/scores/quartertones.webp +0 -0
  122. package/tests/scores/saints.js +85 -0
  123. package/tests/scores/saints.webp +0 -0
  124. package/tests/scores/sumer.js +139 -0
  125. package/tests/scores/sumer.webp +0 -0
  126. package/tests/scores/viewer.css +132 -0
  127. package/tests/scores/viewer.js +150 -0
package/tests/flow.html CHANGED
@@ -210,10 +210,10 @@
210
210
  <header><strong>VexFlow</strong><a href="https://vexflow.com/">VexFlow home</a></header>
211
211
  <main>
212
212
  <h1>Visual test gallery</h1>
213
- <section class="collection" aria-label="Featured scores" aria-roledescription="carousel">
213
+ <section class="collection" aria-label="Featured scores" aria-roledescription="carousel" tabindex="0">
214
214
  <div class="score-nav" hidden>
215
215
  <span id="counter" role="status" aria-live="polite" aria-atomic="true"
216
- >Score 1 of 9<span class="sr-only"> · Minuet in G major</span></span
216
+ >Score 1 of 13<span class="sr-only"> · Ballade No. 3 in A-flat major</span></span
217
217
  >
218
218
  <button type="button" id="previous" aria-controls="score-slide" aria-label="Previous score">
219
219
  ← Previous
@@ -221,7 +221,33 @@
221
221
  <button type="button" id="next" aria-controls="score-slide" aria-label="Next score">Next →</button>
222
222
  </div>
223
223
  <div id="score-slide">
224
- <figure data-piece="petzold">
224
+ <figure data-piece="ballade">
225
+ <figcaption>
226
+ <p class="instrument">Solo piano</p>
227
+ <h2>Ballade No. 3 in A-flat major</h2>
228
+ <p class="composer">Frédéric Chopin</p>
229
+ <p class="details">Op. 47 · Allegretto · 6/8</p>
230
+ <p class="description">
231
+ Read the opening page of the Ballade, from the quiet exchange between the hands to the answering
232
+ octaves. The score retains the small left-hand ossia and the edition’s fingering and pedal signs.
233
+ </p>
234
+ <p class="score-links">
235
+ <a href="all.html?module=Demo%20-%20Ballade%20No.%203%20in%20A-flat%20major">Open live score</a>
236
+ <a href="scores/ballade.js">View code</a
237
+ ><a href="https://vexflow.com/pdfs/ballade.pdf">Opening page (PDF)</a>
238
+ </p>
239
+ </figcaption>
240
+ <a class="sheet-image" aria-label="Enlarge the opening systems of the Ballade" href="demos/ballade.webp"
241
+ ><img
242
+ src="demos/ballade.webp"
243
+ width="1332"
244
+ height="586"
245
+ alt="The opening two systems of Chopin’s Ballade, with the ossia, phrase marks, and pedal releases."
246
+ /></a>
247
+ </figure>
248
+ </div>
249
+ <template id="other-scores"
250
+ ><figure data-piece="petzold">
225
251
  <figcaption>
226
252
  <p class="instrument">Keyboard</p>
227
253
  <h2>Minuet in G major</h2>
@@ -229,7 +255,7 @@
229
255
  <p class="details">G major · 3/4</p>
230
256
  <p class="description">
231
257
  From the Notebook for Anna Magdalena Bach. Two independent keyboard voices share a grand staff, with
232
- fingering and phrasing marked above the melody.
258
+ mordents in the melody, hairpins between the hands and pedal marks beneath the bass.
233
259
  </p>
234
260
  <p class="score-links">
235
261
  <a href="all.html?module=Demo%20-%20Petzold">Open live score</a
@@ -239,26 +265,25 @@
239
265
  <a class="sheet-image" aria-label="Enlarge Minuet in G major" href="minuet.webp"
240
266
  ><img
241
267
  src="minuet.webp"
242
- width="1102"
243
- height="705"
244
- alt="Minuet in G major, keyboard notation. From the Notebook for Anna Magdalena Bach. Two independent keyboard voices share a grand staff, with fingering and phrasing marked above the melody."
268
+ width="1100"
269
+ height="738"
270
+ alt="Minuet in G major, keyboard notation. From the Notebook for Anna Magdalena Bach. Two independent keyboard voices share a grand staff, with mordents in the melody, hairpins between the hands and pedal marks beneath the bass."
245
271
  /></a>
246
272
  </figure>
247
- </div>
248
- <template id="other-scores"
249
- ><figure data-piece="saints">
273
+ <figure data-piece="saints">
250
274
  <figcaption>
251
275
  <p class="instrument">Jazz lead sheet</p>
252
276
  <h2>When the Saints Go Marching In</h2>
253
277
  <p class="composer">Traditional African American spiritual</p>
254
278
  <p class="details">C major · 4/4</p>
255
279
  <p class="description">
256
- Follow the original words through a new set of changes. The ii–V leads to F, then the final D in the
257
- melody becomes the flat ninth of D♭7 before resolving to C.
280
+ Compare traditional and reharmonized changes over the same melody. Follow the held “in” as its lyric
281
+ extender crosses a system break.
258
282
  </p>
259
283
  <p class="score-links">
260
- <a href="all.html?module=Demo%20-%20When%20the%20Saints%20Go%20Marching%20In">Open live score</a
261
- ><a href="demos/saints.ts">View code</a
284
+ <a href="scores/index.html?piece=saints">Compare harmony</a>
285
+ <a href="all.html?module=Demo%20-%20When%20the%20Saints%20Go%20Marching%20In">Rendering test</a
286
+ ><a href="scores/saints.js">View code</a
262
287
  ><a
263
288
  href="https://www.carnegiehall.org/Education/Programs/Link-Up/National-Program/The-Orchestra-Swings/When-the-Saints-Go-Marching-In"
264
289
  >About the tune</a
@@ -268,9 +293,9 @@
268
293
  >
269
294
  </p>
270
295
  </figcaption>
271
- <a class="sheet-image" aria-label="Enlarge When the Saints Go Marching In" href="demos/saints.webp"
296
+ <a class="sheet-image" aria-label="Enlarge When the Saints Go Marching In" href="scores/saints.webp"
272
297
  ><img
273
- src="demos/saints.webp"
298
+ src="scores/saints.webp"
274
299
  width="900"
275
300
  height="540"
276
301
  alt="Petaluma lead sheet with sixteen bars of extended chords, a three-note pickup, and lyrics beneath each phrase."
@@ -307,21 +332,46 @@
307
332
  <p class="composer">Johann Sebastian Bach</p>
308
333
  <p class="details">BWV 846 · C major · 4/4</p>
309
334
  <p class="description">
310
- Follow each arpeggio across the two staves. The editorial tempo and dynamics suggest one way to shape
311
- the phrase. Lean into the accented F, then release onto E.
335
+ Eight bars of BWV 846 in an editorial two-hand distribution. Select one sixteenth and follow it between
336
+ the staves as the systems reflow.
312
337
  </p>
313
338
  <p class="score-links">
314
- <a href="all.html?module=Demo%20-%20Prelude%20in%20C%20major">Open live score</a
315
- ><a href="demos/prelude.ts">View code</a
339
+ <a href="scores/index.html?piece=prelude">Follow the arpeggio</a>
340
+ <a href="all.html?module=Demo%20-%20Prelude%20in%20C%20major">Rendering test</a
341
+ ><a href="scores/prelude.js">View code</a
316
342
  ><a href="https://www.bachvereniging.nl/en/bwv/bwv-846">About the tune</a>
317
343
  </p>
318
344
  </figcaption>
319
- <a class="sheet-image" aria-label="Enlarge Prelude in C major" href="demos/prelude.webp"
345
+ <a class="sheet-image" aria-label="Enlarge Prelude in C major" href="scores/prelude.webp"
320
346
  ><img
321
- src="demos/prelude.webp"
347
+ src="scores/prelude.webp"
322
348
  width="900"
323
349
  height="525"
324
- alt="Cross-staff arpeggios marked Andante at 72 beats per minute, with a crescendo to mezzo forte and a return to piano."
350
+ alt="Cross-staff arpeggios in the opening bars of BWV 846, with phrasing, accents and dynamics."
351
+ /></a>
352
+ </figure>
353
+ <figure data-piece="fugue">
354
+ <figcaption>
355
+ <p class="instrument">Keyboard fugue</p>
356
+ <h2>Fugue No. 6 in D minor</h2>
357
+ <p class="composer">Johann Sebastian Bach</p>
358
+ <p class="details">BWV 851 · Book I · 3/4</p>
359
+ <p class="description">
360
+ Follow the subject through three voices in the opening eight bars. Boxed entries guide the eye as the
361
+ bass takes up the theme beneath the running sixteenths.
362
+ </p>
363
+ <p class="score-links">
364
+ <a href="all.html?module=Demo%20-%20Fugue%20No.%206%20in%20D%20minor">Open live score</a>
365
+ <a href="scores/fugue.js">View code</a>
366
+ <a href="https://vexflow.com/pdfs/fugue.pdf">Full score (PDF)</a>
367
+ </p>
368
+ </figcaption>
369
+ <a class="sheet-image" aria-label="Enlarge Fugue No. 6 in D minor" href="demos/fugue.webp"
370
+ ><img
371
+ src="demos/fugue.webp"
372
+ width="1300"
373
+ height="769"
374
+ alt="Eight bars of grand-staff notation with the subject, answer, and bass entry marked above the music."
325
375
  /></a>
326
376
  </figure>
327
377
  <figure data-piece="kesh">
@@ -331,21 +381,22 @@
331
381
  <p class="composer">Traditional Irish jig</p>
332
382
  <p class="details">G major · 6/8</p>
333
383
  <p class="description">
334
- Play A twice, then B twice, following the chord names above the fiddle line. On the first pass, take
335
- ending 1 and repeat. On the second pass, take ending 2.
384
+ Follow the chord changes and slurred eighths through two strains. The fiddle’s second ending cues the
385
+ flute into the trio.
336
386
  </p>
337
387
  <p class="score-links">
338
- <a href="all.html?module=Demo%20-%20The%20Kesh%20Jig">Open live score</a
339
- ><a href="demos/kesh.ts">View code</a
388
+ <a href="scores/index.html?piece=kesh">Score and printable parts</a>
389
+ <a href="all.html?module=Demo%20-%20The%20Kesh%20Jig">Session chart</a
390
+ ><a href="scores/kesh.js">View code</a
340
391
  ><a href="https://blog.mcneelamusic.com/the-kesh-jig/">About the tune</a>
341
392
  </p>
342
393
  </figcaption>
343
- <a class="sheet-image" aria-label="Enlarge The Kesh Jig" href="demos/kesh.webp"
394
+ <a class="sheet-image" aria-label="Enlarge The Kesh Jig" href="scores/kesh.webp"
344
395
  ><img
345
- src="demos/kesh.webp"
396
+ src="scores/kesh.webp"
346
397
  width="900"
347
398
  height="580"
348
- alt="Two fiddle strains with boxed A and B labels, chord changes and numbered first and second endings."
399
+ alt="Strain A of the trio, with chords and slashed grace notes above the flute rests and cello bass."
349
400
  /></a>
350
401
  </figure>
351
402
  <figure data-piece="joy">
@@ -380,25 +431,26 @@
380
431
  <p class="instrument">Electric guitar</p>
381
432
  <h2>High Wire</h2>
382
433
  <p class="composer">Example piece</p>
383
- <p class="details">A minor pentatonic · 4/4</p>
434
+ <p class="details">Drop D · 2/4</p>
384
435
  <p class="description">
385
- Strike the low power chord, then answer it with a full bend and release. On the next line, hammer to
386
- fret 8, tap fret 12 with the picking hand and pull off on the way down.
436
+ In this eight-bar Drop D riff the low string stays muted under ringing dyads. Tap the upper line, then
437
+ bend into unison with the stationary E.
387
438
  </p>
388
439
  <p class="score-links">
389
- <a href="all.html?module=Demo%20-%20High%20Wire">Open live score</a
390
- ><a href="demos/electric.ts">View code</a>
440
+ <a href="scores/index.html?piece=electric">Inspect the bend</a>
441
+ <a href="all.html?module=Demo%20-%20High%20Wire">Rendering test</a
442
+ ><a href="scores/electric.js">View code</a>
391
443
  <a href="https://www.fender.com/articles/techniques/master-hammer-ons-and-pull-offs"
392
444
  >Legato technique</a
393
445
  >
394
446
  </p>
395
447
  </figcaption>
396
- <a class="sheet-image" aria-label="Enlarge High Wire" href="demos/electric.webp">
448
+ <a class="sheet-image" aria-label="Enlarge High Wire" href="scores/electric.webp">
397
449
  <img
398
- src="demos/electric.webp"
450
+ src="scores/electric.webp"
399
451
  width="900"
400
452
  height="380"
401
- alt="Rhythmic electric guitar tab with H, T and P legato marks, a bend arrow, a slide and vibrato."
453
+ alt="Picking directions, fingerings and slurs above rhythmic tab with a tapped figure and a unison bend."
402
454
  /></a>
403
455
  </figure>
404
456
  <figure data-piece="drums">
@@ -408,18 +460,19 @@
408
460
  <p class="composer">Example piece</p>
409
461
  <p class="details">Funk · 4/4</p>
410
462
  <p class="description">
411
- The hi-hat keeps eighths while the kick shifts underneath. Play the snare notes in parentheses quietly.
412
- Two descending triplets lead back to the downbeat.
463
+ The kick keeps its own rhythm under the hats. Inspect the shared snare and hi-hat attack, then follow
464
+ the triplet fill down the toms.
413
465
  </p>
414
466
  <p class="score-links">
415
- <a href="all.html?module=Demo%20-%20Pocket%20Change">Open live score</a
416
- ><a href="demos/drums.ts">View code</a>
467
+ <a href="scores/index.html?piece=drums">Inspect the backbeat</a>
468
+ <a href="all.html?module=Demo%20-%20Pocket%20Change">Rendering test</a
469
+ ><a href="scores/drums.js">View code</a>
417
470
  <a href="https://ae.vicfirth.com/wp-content/uploads/Lesson-32.pdf">Drum notation key</a>
418
471
  </p>
419
472
  </figcaption>
420
- <a class="sheet-image" aria-label="Enlarge Pocket Change" href="demos/drums.webp">
473
+ <a class="sheet-image" aria-label="Enlarge Pocket Change" href="scores/drums.webp">
421
474
  <img
422
- src="demos/drums.webp"
475
+ src="scores/drums.webp"
423
476
  width="900"
424
477
  height="350"
425
478
  alt="Two-voice kit groove with cross-shaped hi-hat heads, ghosted and accented snare hits, and a tom fill."
@@ -432,26 +485,70 @@
432
485
  <p class="composer">Example piece</p>
433
486
  <p class="details">24-tone equal temperament · 5/8</p>
434
487
  <p class="description">
435
- Shade the repeated D a quarter tone sharp, halfway to D♯. The phrase climbs and turns back, approaching
436
- the final D natural from a quarter tone below.
488
+ Read the viola motif first with individual quarter-tone signs, then under its two-sign signature. Find
489
+ the cancellation and the courtesy accidental.
437
490
  </p>
438
491
  <p class="score-links">
439
- <a href="all.html?module=Demo%20-%20Narrow%20Steps">Open live score</a
440
- ><a href="demos/quartertones.ts">View code</a>
492
+ <a href="scores/index.html?piece=quartertones">Read the signature</a>
493
+ <a href="all.html?module=Demo%20-%20Narrow%20Steps">Rendering test</a
494
+ ><a href="scores/quartertones.js">View code</a>
441
495
  <a href="https://w3c.github.io/smufl/latest/tables/stein-zimmermann-accidentals-24-edo.html"
442
496
  >Accidental key</a
443
497
  >
444
498
  </p>
445
499
  </figcaption>
446
- <a class="sheet-image" aria-label="Enlarge Narrow Steps" href="demos/quartertones.webp">
500
+ <a class="sheet-image" aria-label="Enlarge Narrow Steps" href="scores/quartertones.webp">
447
501
  <img
448
- src="demos/quartertones.webp"
502
+ src="scores/quartertones.webp"
449
503
  width="900"
450
504
  height="340"
451
- alt="Alto-clef viola melody, beamed in groups of three, with half-sharps, reversed flats, hairpins and a closing fermata."
505
+ alt="Viola motif in alto clef with quarter-tone signs and its restatement under a microtonal signature."
506
+ /></a>
507
+ </figure>
508
+ <figure data-piece="falseta">
509
+ <figcaption>
510
+ <p class="instrument">Flamenco guitar</p>
511
+ <h2>Patio al alba</h2>
512
+ <p class="composer">Example piece</p>
513
+ <p class="details">E Phrygian · 4/4</p>
514
+ <p class="description">
515
+ A melodic call leads into measured finger strokes, a simultaneous golpe and a freely rolled final chord.
516
+ </p>
517
+ <p class="score-links">
518
+ <a href="scores/index.html?piece=falseta">Read the strokes</a><a href="scores/falseta.js">View code</a>
519
+ </p>
520
+ </figcaption>
521
+ <a class="sheet-image" aria-label="Enlarge Patio al alba" href="scores/falseta.webp"
522
+ ><img
523
+ src="scores/falseta.webp"
524
+ width="900"
525
+ height="450"
526
+ alt="A melodic call leads into measured finger strokes, a simultaneous golpe and a freely rolled final chord."
452
527
  /></a>
453
528
  </figure>
454
- </template>
529
+ <figure data-piece="sumer">
530
+ <figcaption>
531
+ <p class="instrument">Vocal ensemble</p>
532
+ <h2>Sumer is icumen in</h2>
533
+ <p class="composer">Anonymous · 13th century</p>
534
+ <p class="details">Four singers and two bass parts · 6/8</p>
535
+ <p class="description">
536
+ Sing the opening softly, swell into the next phrase, and ornament the cuckoo call. Switch to the
537
+ ensemble to follow the staggered entrances.
538
+ </p>
539
+ <p class="score-links">
540
+ <a href="scores/index.html?piece=sumer">Reveal the round</a><a href="scores/sumer.js">View code</a>
541
+ <a href="https://searcharchives.bl.uk/catalog/041-002207876">About the manuscript</a>
542
+ </p>
543
+ </figcaption>
544
+ <a class="sheet-image" aria-label="Enlarge Sumer is icumen in" href="scores/sumer.webp"
545
+ ><img
546
+ src="scores/sumer.webp"
547
+ width="900"
548
+ height="450"
549
+ alt="Lyric underlay, a slurred melisma, mordent and crescendo in the first singer’s part."
550
+ /></a></figure
551
+ ></template>
455
552
  </section>
456
553
  <nav id="modules" aria-labelledby="modules-heading">
457
554
  <div class="module-heading">
@@ -472,6 +569,14 @@
472
569
  <li><a href="all.html?module=Clef%20Keys">Clef Keys</a></li>
473
570
  <li><a href="all.html?module=CrossBeam">CrossBeam</a></li>
474
571
  <li><a href="all.html?module=Curve">Curve</a></li>
572
+ <li>
573
+ <a href="all.html?module=Demo%20-%20Ballade%20No.%203%20in%20A-flat%20major"
574
+ >Demo - Ballade No. 3 in A-flat major</a
575
+ >
576
+ </li>
577
+ <li>
578
+ <a href="all.html?module=Demo%20-%20Fugue%20No.%206%20in%20D%20minor">Demo - Fugue No. 6 in D minor</a>
579
+ </li>
475
580
  <li><a href="all.html?module=Demo%20-%20Greensleeves">Demo - Greensleeves</a></li>
476
581
  <li><a href="all.html?module=Demo%20-%20High%20Wire">Demo - High Wire</a></li>
477
582
  <li><a href="all.html?module=Demo%20-%20Narrow%20Steps">Demo - Narrow Steps</a></li>
@@ -569,6 +674,14 @@
569
674
  counter.firstChild.textContent = `Score ${selected + 1} of ${pieces.length}`;
570
675
  counter.querySelector('.sr-only').textContent = ' · ' + title;
571
676
  }
677
+ const collection = document.querySelector('.collection');
678
+ collection.addEventListener('keydown', (e) => {
679
+ if (e.altKey || e.ctrlKey || e.metaKey || e.shiftKey) return;
680
+ if (e.key === 'ArrowLeft' || e.key === 'ArrowRight') {
681
+ e.preventDefault();
682
+ move(e.key === 'ArrowLeft' ? -1 : 1);
683
+ }
684
+ });
572
685
  document.getElementById('previous').onclick = () => move(-1);
573
686
  document.getElementById('next').onclick = () => move(1);
574
687
  document.querySelector('.score-nav').hidden = false;
package/tests/minuet.webp CHANGED
Binary file