@dsebastien/music-notation 0.18.1 → 0.19.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.
- package/README.md +6 -1
- package/dist/THIRD_PARTY_LICENSES.md +208 -27
- package/dist/blocks/captions.d.ts +10 -0
- package/dist/blocks/renderers.d.ts +11 -0
- package/dist/cli.js +26 -46
- package/dist/export/image.d.ts +83 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +3944 -3000
- package/dist/index.js.map +24 -19
- package/dist/music-notation.css +52 -2
- package/dist/music-notation.publish.min.js +88 -35
- package/dist/music-notation.tab.min.js +59 -9
- package/dist/playback/bar-parts.d.ts +8 -0
- package/dist/playback/controls.d.ts +5 -0
- package/dist/playback/copy-image.d.ts +21 -0
- package/dist/publish/auto.d.ts +5 -0
- package/dist/publish/index.js +3907 -3023
- package/dist/publish/index.js.map +24 -19
- package/dist/render/dom.d.ts +8 -0
- package/dist/render/root-mark.d.ts +29 -0
- package/dist/tab/index.d.ts +1 -1
- package/dist/tab/index.js +43 -6
- package/dist/tab/index.js.map +5 -5
- package/dist/theory/formula.d.ts +11 -0
- package/dist/voicings/index.js +1022 -756
- package/dist/voicings/index.js.map +8 -6
- package/package.json +11 -11
package/dist/music-notation.css
CHANGED
|
@@ -5,7 +5,9 @@
|
|
|
5
5
|
--mn-fg: var(--text-normal, currentColor);
|
|
6
6
|
--mn-muted: var(--text-muted, #8a8a8a);
|
|
7
7
|
--mn-faint: var(--background-modifier-border, #d0d0d0);
|
|
8
|
-
|
|
8
|
+
/* The fallbacks (pages without Obsidian's variables) pass WCAG on white and on a dark page
|
|
9
|
+
(#14): 3:1 for marks against the page, 4.5:1 for the white labels on them. */
|
|
10
|
+
--mn-accent: var(--interactive-accent, #8250df);
|
|
9
11
|
--mn-bg: var(--background-primary, #fff);
|
|
10
12
|
--mn-on-accent: var(--text-on-accent, #fff);
|
|
11
13
|
/* Dark enough for white labels in light and dark themes. */
|
|
@@ -25,7 +27,7 @@
|
|
|
25
27
|
/* Marks of the pick layer (Music Practice #73): right and wrong, dark enough for a white check
|
|
26
28
|
or cross in light and dark themes; the shape tells them apart too. */
|
|
27
29
|
--mn-right: #15803d;
|
|
28
|
-
--mn-wrong: #
|
|
30
|
+
--mn-wrong: #dc2626;
|
|
29
31
|
font-family: var(--font-interface, system-ui, sans-serif);
|
|
30
32
|
}
|
|
31
33
|
|
|
@@ -294,6 +296,16 @@
|
|
|
294
296
|
opacity: 0.85;
|
|
295
297
|
}
|
|
296
298
|
|
|
299
|
+
/* What Copy as image says (#11): "Copied", or what to do when the browser refuses. */
|
|
300
|
+
.mn-play-said {
|
|
301
|
+
font-size: 0.85em;
|
|
302
|
+
opacity: 0.85;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.mn-play-said:empty {
|
|
306
|
+
display: none;
|
|
307
|
+
}
|
|
308
|
+
|
|
297
309
|
/* The selected diagram's name on the bar of a row. */
|
|
298
310
|
.mn-play-name {
|
|
299
311
|
max-width: 16ch;
|
|
@@ -611,6 +623,28 @@
|
|
|
611
623
|
display: none;
|
|
612
624
|
}
|
|
613
625
|
|
|
626
|
+
/* The formula (#52): under the diagram, as the fingering; both are lines of one caption. A scale's
|
|
627
|
+
formula may be as wide as its fretboard. */
|
|
628
|
+
.mn-block .mn-formula,
|
|
629
|
+
.mn-block .mn-captions {
|
|
630
|
+
max-width: 24em;
|
|
631
|
+
margin: 0;
|
|
632
|
+
font-size: 0.85em;
|
|
633
|
+
line-height: 1.4;
|
|
634
|
+
color: var(--text-muted, currentColor);
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
.mn-block .mn-captions > .mn-fingering,
|
|
638
|
+
.mn-block .mn-captions > .mn-formula {
|
|
639
|
+
display: block;
|
|
640
|
+
max-width: none;
|
|
641
|
+
font-size: 1em;
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
.mn-block .mn-captions > .mn-formula {
|
|
645
|
+
margin-top: 0.25em;
|
|
646
|
+
}
|
|
647
|
+
|
|
614
648
|
.mn-block .mn-fingering {
|
|
615
649
|
max-width: 16em;
|
|
616
650
|
margin: 0;
|
|
@@ -1079,6 +1113,22 @@
|
|
|
1079
1113
|
fill: var(--mn-on-playing);
|
|
1080
1114
|
}
|
|
1081
1115
|
|
|
1116
|
+
/* The root as a shape (#14, `root-mark: shape`): a small square on a root key, in the key label's
|
|
1117
|
+
color; dark on a pale (passing) white root key and while the key plays. */
|
|
1118
|
+
.mn-svg .mn-root-mark {
|
|
1119
|
+
fill: var(--mn-on-accent);
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
.mn-svg .mn-key-white.mn-passing.mn-root + .mn-key-label + .mn-root-mark,
|
|
1123
|
+
.mn-svg .mn-key-white.mn-passing.mn-root + .mn-root-mark {
|
|
1124
|
+
fill: var(--mn-key-black);
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
.mn-playable .mn-svg [data-midi].mn-playing + .mn-key-label + .mn-root-mark,
|
|
1128
|
+
.mn-playable .mn-svg [data-midi].mn-playing + .mn-root-mark {
|
|
1129
|
+
fill: var(--mn-on-playing);
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1082
1132
|
/* A fretboard exercise (#47): the run's tab under the diagram, as wide as the block. */
|
|
1083
1133
|
.mn-block .mn-exercise-block {
|
|
1084
1134
|
display: flex;
|