@dsebastien/music-notation 0.7.0 → 0.8.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.
- package/README.md +28 -2
- package/dist/blocks/note-set-field.d.ts +3 -1
- package/dist/blocks/progression.d.ts +6 -0
- package/dist/blocks/renderers.d.ts +10 -1
- package/dist/blocks/scales-for.d.ts +16 -0
- package/dist/chord/capo.d.ts +26 -0
- package/dist/chord/guitar.d.ts +20 -0
- package/dist/chord/transitions.d.ts +15 -7
- package/dist/chords/chart-diagrams.d.ts +46 -0
- package/dist/chords/chart.d.ts +16 -0
- package/dist/chords/chordpro.d.ts +17 -1
- package/dist/chords/defines.d.ts +38 -0
- package/dist/circle/circle.d.ts +21 -0
- package/dist/cli.js +2 -2
- package/dist/convert/text-tab.d.ts +4 -2
- package/dist/fretboard/fretboard.d.ts +11 -0
- package/dist/fretboard/positions.d.ts +12 -5
- package/dist/index.d.ts +20 -5
- package/dist/index.js +5946 -1923
- package/dist/index.js.map +39 -22
- package/dist/keyboard/keyboard.d.ts +2 -0
- package/dist/keyboard/piano-chord.d.ts +44 -0
- package/dist/keyboard/voice-leading.d.ts +6 -0
- package/dist/music-notation.css +339 -0
- package/dist/music-notation.publish.min.js +362 -21
- package/dist/music-notation.tab.min.js +343 -4
- package/dist/playback/controls.d.ts +10 -1
- package/dist/playback/follow.d.ts +45 -0
- package/dist/playback/player.d.ts +13 -1
- package/dist/playback/strum-bar.d.ts +5 -0
- package/dist/publish/index.js +5271 -1852
- package/dist/publish/index.js.map +38 -21
- package/dist/strum/pattern.d.ts +49 -0
- package/dist/strum/play.d.ts +106 -0
- package/dist/strum/render.d.ts +17 -0
- package/dist/strum/voicing.d.ts +10 -0
- package/dist/tab/index.js +334 -78
- package/dist/tab/index.js.map +7 -7
- package/dist/theory/chord-symbol.d.ts +2 -0
- package/dist/theory/find.d.ts +82 -0
- package/dist/theory/keys.d.ts +79 -0
- package/dist/theory/note-set.d.ts +2 -0
- package/dist/theory/numerals.d.ts +40 -0
- package/dist/theory/pitch.d.ts +4 -1
- package/dist/theory/transpose.d.ts +16 -4
- package/dist/voicings/index.js +58 -14
- package/dist/voicings/index.js.map +5 -5
- package/package.json +1 -1
|
@@ -12,6 +12,8 @@ export interface KeyboardOptions {
|
|
|
12
12
|
marks?: NoteMarks;
|
|
13
13
|
/** How playback plays the highlighted keys: together (a chord) or one by one (a scale). */
|
|
14
14
|
playAs?: 'chord' | 'scale';
|
|
15
|
+
/** Which hand plays each key (MIDI → left or right): an L or R row past the keys. */
|
|
16
|
+
hands?: Map<number, 'left' | 'right'>;
|
|
15
17
|
}
|
|
16
18
|
/** "C3-B4" → MIDI range; null when invalid. */
|
|
17
19
|
export declare function parseKeyRange(text: string): [number, number] | null;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { type NoteSet } from '../theory/note-set.js';
|
|
2
|
+
export type PianoVoicingStyle = 'close' | 'open' | 'shell' | 'rootless';
|
|
3
|
+
export type RootlessForm = 'A' | 'B';
|
|
4
|
+
export type PianoHands = 'right' | 'left' | 'left+right';
|
|
5
|
+
export interface PianoVoicingOptions {
|
|
6
|
+
/** The chord's note in the bass: 0 (root position, default), 1 (first inversion)… */
|
|
7
|
+
inversion?: number;
|
|
8
|
+
/** The lowest right-hand note's octave: 4 (middle C's) by default, 3 for the left hand alone. */
|
|
9
|
+
octave?: number;
|
|
10
|
+
voicing?: PianoVoicingStyle;
|
|
11
|
+
/** Rootless voicings: form A (3 5 7 9, default) or B (7 9 3 5). */
|
|
12
|
+
rootless?: RootlessForm;
|
|
13
|
+
/** Which hand plays what; unset draws no hands. */
|
|
14
|
+
hands?: PianoHands;
|
|
15
|
+
}
|
|
16
|
+
export interface PianoVoicing {
|
|
17
|
+
/** Every key, low to high (MIDI). */
|
|
18
|
+
pitches: number[];
|
|
19
|
+
/** The left hand's keys (empty unless `hands` gives it some). */
|
|
20
|
+
left: number[];
|
|
21
|
+
/** The right hand's keys (with `hands`; else every key but a slash chord's bass). */
|
|
22
|
+
right: number[];
|
|
23
|
+
style: PianoVoicingStyle;
|
|
24
|
+
inversion: number;
|
|
25
|
+
hands?: PianoHands;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* A chord's piano voicing (see the module comment for each style). Null when the chord is
|
|
29
|
+
* unknown; throws an Error saying what to write when an option doesn't fit the chord.
|
|
30
|
+
*/
|
|
31
|
+
export declare function pianoVoicing(symbol: string, options?: PianoVoicingOptions): PianoVoicing | null;
|
|
32
|
+
/**
|
|
33
|
+
* Fingers for a close triad (`fingering: auto`), low to high: the right hand 1 3 5 in root position
|
|
34
|
+
* and second inversion, 1 2 5 in first; the left hand 5 3 1 in root position and first inversion,
|
|
35
|
+
* 5 2 1 in second; a left-hand bass under a right-hand chord gets 5. Null for anything else.
|
|
36
|
+
*/
|
|
37
|
+
export declare function triadFingering(voicing: PianoVoicing): Map<number, string> | null;
|
|
38
|
+
/** Piano voicing of a chord as a note set: close root position from octave 4, a slash chord's bass in octave 3. */
|
|
39
|
+
export declare function pianoPitches(symbol: string, options?: PianoVoicingOptions): NoteSet;
|
|
40
|
+
/**
|
|
41
|
+
* A `chord` block's piano keys (`inversion`, `octave`, `voicing`, `hands`) as options; throws a
|
|
42
|
+
* message that says what to write. A numbered `voicing` (guitar's n-th voicing) is left alone.
|
|
43
|
+
*/
|
|
44
|
+
export declare function pianoOptionsOf(get: (key: string) => string | undefined): PianoVoicingOptions;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MIDI pitches for each chord, low to high: the first in root position from middle C's octave,
|
|
3
|
+
* each next one in the close-position inversion that moves least from the one before (ties go to
|
|
4
|
+
* the lower one). A slash chord's bass sounds below. Null for a chord that doesn't read.
|
|
5
|
+
*/
|
|
6
|
+
export declare function voiceLead(symbols: readonly string[]): (number[] | null)[];
|
package/dist/music-notation.css
CHANGED
|
@@ -12,6 +12,9 @@
|
|
|
12
12
|
--mn-root: #c2410c;
|
|
13
13
|
/* A mode's characteristic notes: dark enough for white labels too. */
|
|
14
14
|
--mn-char: #047857;
|
|
15
|
+
/* A note that sounds while a diagram plays: bright, with dark labels, in both themes. */
|
|
16
|
+
--mn-playing: #facc15;
|
|
17
|
+
--mn-on-playing: #1c1917;
|
|
15
18
|
/* Piano keys keep their real colors in every theme. */
|
|
16
19
|
--mn-key-white: #fafafa;
|
|
17
20
|
--mn-key-black: #222;
|
|
@@ -271,6 +274,31 @@
|
|
|
271
274
|
pointer-events: auto;
|
|
272
275
|
}
|
|
273
276
|
|
|
277
|
+
/* alphaTab's cursor (the bar that plays, the beat line) and the notes of the beat that sounds, in
|
|
278
|
+
the player bar's accent color: alphaTab ships no style for them, so they didn't show. */
|
|
279
|
+
.mn-tab .at-cursor-bar {
|
|
280
|
+
background: color-mix(in srgb, var(--mn-accent) 12%, transparent);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.mn-tab .at-cursor-beat {
|
|
284
|
+
background: var(--mn-accent);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.mn-tab .at-selection div {
|
|
288
|
+
background: color-mix(in srgb, var(--mn-accent) 15%, transparent);
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.mn-tab .at-highlight,
|
|
292
|
+
.mn-tab .at-highlight * {
|
|
293
|
+
fill: var(--mn-accent);
|
|
294
|
+
stroke: var(--mn-accent);
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
/* alphaTab's outlined rectangles stay hollow. */
|
|
298
|
+
.mn-tab .at-highlight [fill='transparent'] {
|
|
299
|
+
fill: transparent;
|
|
300
|
+
}
|
|
301
|
+
|
|
274
302
|
.mn-tab-time {
|
|
275
303
|
font-variant-numeric: tabular-nums;
|
|
276
304
|
opacity: 0.8;
|
|
@@ -335,6 +363,27 @@
|
|
|
335
363
|
stroke: var(--mn-root);
|
|
336
364
|
}
|
|
337
365
|
|
|
366
|
+
/* A capo: a bar across the strings, in the text color but lighter than the dots. */
|
|
367
|
+
.mn-svg .mn-capo {
|
|
368
|
+
fill: var(--mn-fg);
|
|
369
|
+
opacity: 0.55;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
/* A string the capo plays (frets counted from the nut): a ring on the capo. */
|
|
373
|
+
.mn-svg .mn-capo-open {
|
|
374
|
+
fill: var(--mn-bg);
|
|
375
|
+
stroke: var(--mn-fg);
|
|
376
|
+
stroke-width: 1.5;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.mn-svg .mn-capo-open.mn-root {
|
|
380
|
+
stroke: var(--mn-root);
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.mn-svg .mn-caption {
|
|
384
|
+
fill: var(--mn-muted);
|
|
385
|
+
}
|
|
386
|
+
|
|
338
387
|
.mn-svg .mn-muted,
|
|
339
388
|
.mn-svg .mn-base-fret,
|
|
340
389
|
.mn-svg .mn-fret-number,
|
|
@@ -385,6 +434,17 @@
|
|
|
385
434
|
font-weight: 600;
|
|
386
435
|
}
|
|
387
436
|
|
|
437
|
+
/* Which hand plays each key of a piano chord (hands: left+right): L or R under the keys. */
|
|
438
|
+
.mn-svg .mn-key-hand {
|
|
439
|
+
font-size: 10px;
|
|
440
|
+
font-weight: 600;
|
|
441
|
+
fill: var(--mn-muted);
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
.mn-svg .mn-key-hand.mn-hand-left {
|
|
445
|
+
fill: var(--mn-fg);
|
|
446
|
+
}
|
|
447
|
+
|
|
388
448
|
/* Several diagrams in one block: a row that wraps, or a grid of at most `columns` columns that
|
|
389
449
|
also wraps on narrow screens rather than shrinking diagrams to nothing. */
|
|
390
450
|
.mn-block .mn-row {
|
|
@@ -539,7 +599,286 @@
|
|
|
539
599
|
white-space: pre;
|
|
540
600
|
}
|
|
541
601
|
|
|
602
|
+
/* A chart's chord diagrams: the chords used row (wraps like a block's row) and {chord} in place. */
|
|
603
|
+
.mn-chart-diagrams {
|
|
604
|
+
margin: 0.75em 0;
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
.mn-chart .mn-chart-row {
|
|
608
|
+
display: flex;
|
|
609
|
+
flex-wrap: wrap;
|
|
610
|
+
align-items: flex-start;
|
|
611
|
+
gap: 0.75em 1.25em;
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
.mn-chart .mn-chart-row .mn-cell {
|
|
615
|
+
min-width: 0;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
.mn-chart-diagrams-caption,
|
|
619
|
+
.mn-chart-diagrams-note {
|
|
620
|
+
color: var(--mn-muted);
|
|
621
|
+
font-size: 0.9em;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
.mn-chart-diagrams-caption {
|
|
625
|
+
font-weight: 600;
|
|
626
|
+
margin-bottom: 0.3em;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
.mn-chart-diagrams-note {
|
|
630
|
+
margin-top: 0.3em;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
.mn-chart-chord {
|
|
634
|
+
margin: 0.4em 0;
|
|
635
|
+
}
|
|
636
|
+
|
|
542
637
|
.mn-error-message {
|
|
543
638
|
color: var(--text-error, #c92a2a);
|
|
544
639
|
font-size: 0.9em;
|
|
545
640
|
}
|
|
641
|
+
|
|
642
|
+
/* Strumming patterns: arrows and counts in the text color, accents and chords in the accent
|
|
643
|
+
color; ghost strums are smaller and in parentheses, so they don't rest on color alone. */
|
|
644
|
+
.mn-svg .mn-strum-arrow,
|
|
645
|
+
.mn-svg .mn-strum-mute {
|
|
646
|
+
stroke: var(--mn-fg);
|
|
647
|
+
stroke-width: 2;
|
|
648
|
+
stroke-linecap: round;
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
.mn-svg .mn-strum-head {
|
|
652
|
+
fill: var(--mn-fg);
|
|
653
|
+
stroke: none;
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
.mn-svg .mn-strum-arrow.mn-strum-accented,
|
|
657
|
+
.mn-svg .mn-strum-mute.mn-strum-accented {
|
|
658
|
+
stroke-width: 3;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
.mn-svg .mn-strum-arrow.mn-strum-ghost,
|
|
662
|
+
.mn-svg .mn-strum-mute.mn-strum-ghost {
|
|
663
|
+
stroke: var(--mn-muted);
|
|
664
|
+
stroke-width: 1.5;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
.mn-svg .mn-strum-head.mn-strum-ghost {
|
|
668
|
+
fill: var(--mn-muted);
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
.mn-svg .mn-strum-accent {
|
|
672
|
+
fill: none;
|
|
673
|
+
stroke: var(--mn-accent);
|
|
674
|
+
stroke-width: 1.8;
|
|
675
|
+
stroke-linecap: round;
|
|
676
|
+
stroke-linejoin: round;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
.mn-svg .mn-strum-paren,
|
|
680
|
+
.mn-svg .mn-strum-count {
|
|
681
|
+
fill: var(--mn-muted);
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
.mn-svg .mn-strum-count-beat {
|
|
685
|
+
fill: var(--mn-fg);
|
|
686
|
+
font-weight: 600;
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
.mn-svg .mn-strum-chord {
|
|
690
|
+
fill: var(--mn-accent);
|
|
691
|
+
font-size: 12px;
|
|
692
|
+
font-weight: 700;
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
.mn-svg .mn-strum-line,
|
|
696
|
+
.mn-svg .mn-strum-tick {
|
|
697
|
+
stroke: var(--mn-muted);
|
|
698
|
+
stroke-width: 1;
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
.mn-svg .mn-strum-bar {
|
|
702
|
+
stroke: var(--mn-fg);
|
|
703
|
+
stroke-width: 1.5;
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
.mn-svg .mn-strum-cell {
|
|
707
|
+
fill: transparent;
|
|
708
|
+
stroke: none;
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
/* Following a strumming pattern: the slot that plays gets a band and its strum the playing
|
|
712
|
+
color (the band keeps it visible for a muted strum and in any theme). */
|
|
713
|
+
.mn-playable .mn-svg .mn-strum-slot.mn-playing .mn-strum-cell {
|
|
714
|
+
fill: color-mix(in srgb, var(--mn-playing) 35%, transparent);
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
.mn-playable .mn-svg .mn-strum-slot.mn-playing .mn-strum-arrow,
|
|
718
|
+
.mn-playable .mn-svg .mn-strum-slot.mn-playing .mn-strum-mute {
|
|
719
|
+
stroke: var(--mn-fg);
|
|
720
|
+
stroke-width: 3;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
/* A chord over a scale (#48): chord tones solid, the scale's other notes hollow (passing notes), so
|
|
724
|
+
the difference doesn't rest on color alone. */
|
|
725
|
+
.mn-svg .mn-dot.mn-passing {
|
|
726
|
+
fill: var(--mn-bg);
|
|
727
|
+
stroke: var(--mn-accent);
|
|
728
|
+
stroke-width: 2;
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
.mn-svg .mn-dot.mn-passing.mn-root {
|
|
732
|
+
stroke: var(--mn-root);
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
.mn-svg .mn-dot.mn-passing + .mn-dot-text {
|
|
736
|
+
fill: var(--mn-fg);
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
.mn-svg .mn-key-white.mn-on.mn-passing {
|
|
740
|
+
fill: color-mix(in srgb, var(--mn-accent) 25%, var(--mn-key-white));
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
.mn-svg .mn-key-white.mn-on.mn-passing.mn-root {
|
|
744
|
+
fill: color-mix(in srgb, var(--mn-root) 25%, var(--mn-key-white));
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
.mn-svg .mn-key-black.mn-on.mn-passing {
|
|
748
|
+
fill: color-mix(in srgb, var(--mn-accent) 45%, var(--mn-key-black));
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
.mn-svg .mn-key-black.mn-on.mn-passing.mn-root {
|
|
752
|
+
fill: color-mix(in srgb, var(--mn-root) 45%, var(--mn-key-black));
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
/* Piano keys keep their colors in every theme: a light passing key takes dark text. */
|
|
756
|
+
.mn-svg .mn-key-white.mn-passing + .mn-key-label {
|
|
757
|
+
fill: var(--mn-key-black);
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
/* Progressions (#9): one column per chord (numeral, diagram or name, function). */
|
|
761
|
+
.mn-progression-title {
|
|
762
|
+
font-size: 1.1em;
|
|
763
|
+
font-weight: 700;
|
|
764
|
+
margin-bottom: 0.3em;
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
.mn-progression-section + .mn-progression-section,
|
|
768
|
+
.mn-progression-section-title {
|
|
769
|
+
margin-top: 0.75em;
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
.mn-progression-section-title {
|
|
773
|
+
font-weight: 600;
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
.mn-progression-key {
|
|
777
|
+
color: var(--mn-muted);
|
|
778
|
+
font-size: 0.85em;
|
|
779
|
+
margin-bottom: 0.3em;
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
.mn-block .mn-progression-chord {
|
|
783
|
+
display: flex;
|
|
784
|
+
flex-direction: column;
|
|
785
|
+
align-items: center;
|
|
786
|
+
text-align: center;
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
.mn-progression-numeral {
|
|
790
|
+
font-weight: 700;
|
|
791
|
+
font-size: 1.05em;
|
|
792
|
+
color: var(--mn-accent);
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
.mn-progression-name {
|
|
796
|
+
font-weight: 600;
|
|
797
|
+
min-width: 2.5em;
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
.mn-progression-function {
|
|
801
|
+
color: var(--mn-muted);
|
|
802
|
+
font-size: 0.8em;
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
/* Circle of fifths (#44): the key's chords tinted, its tonic and neighbours solid. */
|
|
806
|
+
.mn-svg .mn-circle-cell,
|
|
807
|
+
.mn-svg .mn-circle-chip {
|
|
808
|
+
fill: var(--mn-bg);
|
|
809
|
+
stroke: var(--mn-faint);
|
|
810
|
+
stroke-width: 1;
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
.mn-svg .mn-circle-diatonic {
|
|
814
|
+
fill: color-mix(in srgb, var(--mn-accent) 22%, var(--mn-bg));
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
.mn-svg .mn-circle-neighbour {
|
|
818
|
+
fill: var(--mn-accent);
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
.mn-svg .mn-circle-tonic {
|
|
822
|
+
fill: var(--mn-root);
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
.mn-svg .mn-circle-label {
|
|
826
|
+
font-size: 12px;
|
|
827
|
+
font-weight: 600;
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
.mn-svg .mn-circle-label-minor {
|
|
831
|
+
font-size: 11px;
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
.mn-svg .mn-circle-label-dim {
|
|
835
|
+
font-size: 9px;
|
|
836
|
+
font-weight: 400;
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
.mn-svg .mn-circle-numeral {
|
|
840
|
+
font-size: 10px;
|
|
841
|
+
font-weight: 700;
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
.mn-svg text.mn-circle-on {
|
|
845
|
+
fill: var(--mn-on-accent);
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
.mn-svg .mn-circle-sig {
|
|
849
|
+
fill: var(--mn-muted);
|
|
850
|
+
font-size: 9px;
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
.mn-svg .mn-circle-sig-key {
|
|
854
|
+
fill: var(--mn-fg);
|
|
855
|
+
font-weight: 700;
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
.mn-svg .mn-circle-key {
|
|
859
|
+
font-size: 13px;
|
|
860
|
+
font-weight: 700;
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
.mn-svg .mn-circle-key-sig,
|
|
864
|
+
.mn-svg .mn-circle-key-notes {
|
|
865
|
+
font-size: 9px;
|
|
866
|
+
fill: var(--mn-muted);
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
/* Following the notes: the dot, key or string mark that sounds while a diagram plays. Last in the
|
|
870
|
+
file and more specific than any other mark (a root, a characteristic note, a passing key), so
|
|
871
|
+
the playing color always wins. Most specific selector first: the tests' DOM (happy-dom) weighs
|
|
872
|
+
a selector list by its first match. */
|
|
873
|
+
.mn-playable .mn-svg .mn-passing.mn-root[data-midi].mn-playing,
|
|
874
|
+
.mn-playable .mn-svg .mn-passing[data-midi].mn-playing,
|
|
875
|
+
.mn-playable .mn-svg [data-midi].mn-playing {
|
|
876
|
+
fill: var(--mn-playing);
|
|
877
|
+
stroke: var(--mn-fg);
|
|
878
|
+
stroke-width: 2.5;
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
.mn-playable .mn-svg [data-midi].mn-playing + .mn-dot-text,
|
|
882
|
+
.mn-playable .mn-svg [data-midi].mn-playing + .mn-key-label {
|
|
883
|
+
fill: var(--mn-on-playing);
|
|
884
|
+
}
|