@dsebastien/music-notation 0.22.1 → 0.23.1

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 (46) hide show
  1. package/README.md +1 -1
  2. package/dist/blocks/renderers.d.ts +8 -1
  3. package/dist/chord/generate.d.ts +2 -0
  4. package/dist/chord/words.d.ts +4 -0
  5. package/dist/export/image.d.ts +2 -0
  6. package/dist/fretboard/exercise.d.ts +0 -16
  7. package/dist/fretboard/positions.d.ts +0 -17
  8. package/dist/i18n/en/diagrams.d.ts +139 -0
  9. package/dist/i18n/en/index.d.ts +532 -0
  10. package/dist/i18n/en/parse.d.ts +249 -0
  11. package/dist/i18n/en/play.d.ts +82 -0
  12. package/dist/i18n/en/timed.d.ts +75 -0
  13. package/dist/i18n/fr/diagrams.d.ts +139 -0
  14. package/dist/i18n/fr/index.d.ts +7 -0
  15. package/dist/i18n/fr/parse.d.ts +249 -0
  16. package/dist/i18n/fr/play.d.ts +82 -0
  17. package/dist/i18n/fr/timed.d.ts +72 -0
  18. package/dist/i18n/index.d.ts +3 -0
  19. package/dist/i18n/language.d.ts +543 -0
  20. package/dist/i18n/messages.d.ts +11 -0
  21. package/dist/i18n/page.d.ts +7 -0
  22. package/dist/i18n/translate.d.ts +21 -0
  23. package/dist/index.d.ts +3 -0
  24. package/dist/index.js +2107 -525
  25. package/dist/index.js.map +66 -52
  26. package/dist/keyboard/scale-fingering.d.ts +1 -1
  27. package/dist/music-notation.css +21 -0
  28. package/dist/music-notation.publish.min.js +58 -37
  29. package/dist/music-notation.tab.min.js +28 -7
  30. package/dist/picking/pattern.d.ts +0 -7
  31. package/dist/playback/bar-parts.d.ts +4 -0
  32. package/dist/playback/controls.d.ts +23 -2
  33. package/dist/playback/copy-image.d.ts +6 -5
  34. package/dist/playback/engine.d.ts +34 -0
  35. package/dist/publish/auto.d.ts +2 -0
  36. package/dist/publish/index.js +2080 -527
  37. package/dist/publish/index.js.map +66 -52
  38. package/dist/tab/auto.d.ts +2 -0
  39. package/dist/tab/follow-scroll.d.ts +65 -0
  40. package/dist/tab/index.d.ts +54 -2
  41. package/dist/tab/index.js +1586 -76
  42. package/dist/tab/index.js.map +24 -9
  43. package/dist/tab/note-names.d.ts +50 -0
  44. package/dist/voicings/index.js +1323 -79
  45. package/dist/voicings/index.js.map +23 -10
  46. package/package.json +1 -1
@@ -44,7 +44,7 @@ export declare function parseFingerList(text: string): string[];
44
44
  */
45
45
  export declare function isBothHandsFingering(text: string): boolean;
46
46
  /** The message for `fingering: auto` on something other than a scale. */
47
- export declare const AUTO_FINGERING_NEEDS_SCALE = "fingering: auto goes with a major or minor scale (scale: G major): write one finger per note, e.g. fingering: 1 2 3 4 5";
47
+ export declare const autoFingeringNeedsScale: () => string;
48
48
  /** The message for `fingering: auto` on a scale without a standard fingering. */
49
49
  export declare const autoFingeringUnknown: (scale: string) => string;
50
50
  export declare function autoFingeringHand(text: string): ScaleHand | null;
@@ -431,6 +431,14 @@
431
431
  position: relative;
432
432
  }
433
433
 
434
+ /* A block scrolls sideways when a row of diagrams is wider than it (`.mn-block`), which makes it
435
+ the scroll box of its bar: the bar then never stays at the bottom of the screen (#122). A tab
436
+ or a score is drawn at the block's width, so nothing of it scrolls there: the page, or the
437
+ app's pane, is the scroll box of its bar. */
438
+ .mn-block.mn-tab {
439
+ overflow: visible;
440
+ }
441
+
434
442
  .mn-tab .mn-play.mn-play-static.mn-tab-bar {
435
443
  bottom: 6px;
436
444
  }
@@ -1370,3 +1378,16 @@
1370
1378
  padding: 6px 0 8px;
1371
1379
  background: inherit;
1372
1380
  }
1381
+
1382
+ /* Follow the music (#97): paused while the reader scrolls by hand, the button stays on but dim. */
1383
+ .mn-play button.mn-tab-follow.mn-follow-paused {
1384
+ opacity: 0.55;
1385
+ }
1386
+
1387
+ /* A tab or a score on one line (`layout: line`, #97): it scrolls sideways in its own area, by
1388
+ hand and with the music. The page never moves. */
1389
+ .mn-tab.mn-tab-line .mn-tab-surface {
1390
+ overflow-x: auto;
1391
+ overflow-y: hidden;
1392
+ overscroll-behavior-x: contain;
1393
+ }