@tspro/web-music-score 3.1.0 → 3.2.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/CHANGELOG.md +17 -0
- package/README.md +5 -3
- package/dist/audio/index.d.mts +1 -8
- package/dist/audio/index.d.ts +1 -8
- package/dist/audio/index.js +1 -1
- package/dist/audio/index.mjs +2 -2
- package/dist/audio-cg/index.d.mts +0 -1
- package/dist/audio-cg/index.d.ts +0 -1
- package/dist/audio-cg/index.js +1 -1
- package/dist/audio-cg/index.mjs +2 -2
- package/dist/{chunk-B4J3KED2.mjs → chunk-LCTM7BID.mjs} +2 -2
- package/dist/core/index.d.mts +0 -3
- package/dist/core/index.d.ts +0 -3
- package/dist/core/index.js +2 -2
- package/dist/core/index.mjs +3 -3
- package/dist/{guitar-BIFwFT31.d.ts → guitar-C2Cp71NZ.d.ts} +1 -8
- package/dist/{guitar-zASF7B1g.d.mts → guitar-DggbM2UL.d.mts} +1 -8
- package/dist/iife/index.global.js +11 -11
- package/dist/{interface-DprVf__B.d.ts → interface-BlNl69uT.d.ts} +57 -77
- package/dist/{interface-BedxdQDE.d.mts → interface-Bn5HFt_U.d.mts} +57 -77
- package/dist/{note-B5ZtlHc8.d.mts → note-BFa43I86.d.mts} +0 -14
- package/dist/{note-B5ZtlHc8.d.ts → note-BFa43I86.d.ts} +0 -14
- package/dist/pieces/index.d.mts +3 -6
- package/dist/pieces/index.d.ts +3 -6
- package/dist/pieces/index.js +1 -1
- package/dist/pieces/index.mjs +2 -2
- package/dist/react-ui/index.d.mts +5 -23
- package/dist/react-ui/index.d.ts +5 -23
- package/dist/react-ui/index.js +1 -1
- package/dist/react-ui/index.mjs +2 -2
- package/dist/{scale-B_2MZaT9.d.ts → scale-DRR-t4Kr.d.mts} +2 -15
- package/dist/{scale-C-YS5iVG.d.mts → scale-ebJm37q1.d.ts} +2 -15
- package/dist/score/index.d.mts +18 -18
- package/dist/score/index.d.ts +18 -18
- package/dist/score/index.js +376 -229
- package/dist/score/index.mjs +377 -230
- package/dist/{tempo-TjQKn46X.d.mts → tempo-B4h5Ktob.d.mts} +1 -17
- package/dist/{tempo-DoJd-UYT.d.ts → tempo-DgqDEsn0.d.ts} +1 -17
- package/dist/theory/index.d.mts +6 -8
- package/dist/theory/index.d.ts +6 -8
- package/dist/theory/index.js +1 -1
- package/dist/theory/index.mjs +2 -2
- package/package.json +1 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { N as Note, A as Accidental } from './note-
|
|
1
|
+
import { N as Note, A as Accidental } from './note-BFa43I86.mjs';
|
|
2
2
|
|
|
3
|
-
/** @public */
|
|
4
3
|
declare enum Mode {
|
|
5
4
|
Ionian = 1,
|
|
6
5
|
Dorian = 2,
|
|
@@ -10,15 +9,12 @@ declare enum Mode {
|
|
|
10
9
|
Aeolian = 6,
|
|
11
10
|
Locrian = 7
|
|
12
11
|
}
|
|
13
|
-
/** @public */
|
|
14
12
|
declare enum AccidentalType {
|
|
15
13
|
Natural = 0,
|
|
16
14
|
Flats = 1,
|
|
17
15
|
Sharps = 2
|
|
18
16
|
}
|
|
19
|
-
/** @public */
|
|
20
17
|
declare function getDefaultKeySignature(): KeySignature;
|
|
21
|
-
/** @public */
|
|
22
18
|
declare class KeySignature {
|
|
23
19
|
readonly tonic: string;
|
|
24
20
|
readonly mode: Mode;
|
|
@@ -46,7 +42,6 @@ declare class KeySignature {
|
|
|
46
42
|
static equals(a: KeySignature | null | undefined, b: KeySignature | null | undefined): boolean;
|
|
47
43
|
}
|
|
48
44
|
|
|
49
|
-
/** @public */
|
|
50
45
|
declare enum NoteLength {
|
|
51
46
|
Whole = 192,// * 3 because triplets are multiplied by 2 / 3, integer result
|
|
52
47
|
Half = 96,
|
|
@@ -56,13 +51,9 @@ declare enum NoteLength {
|
|
|
56
51
|
ThirtySecond = 6,
|
|
57
52
|
SixtyFourth = 3
|
|
58
53
|
}
|
|
59
|
-
/** @public */
|
|
60
54
|
declare const MaxNoteLength = NoteLength.Whole;
|
|
61
|
-
/** @public */
|
|
62
55
|
declare const MinNoteLength = NoteLength.SixtyFourth;
|
|
63
|
-
/** @public */
|
|
64
56
|
declare function validateNoteLength(noteLength: unknown): NoteLength;
|
|
65
|
-
/** @public */
|
|
66
57
|
declare class RhythmProps {
|
|
67
58
|
readonly noteLength: NoteLength;
|
|
68
59
|
readonly dotted: boolean;
|
|
@@ -76,9 +67,7 @@ declare class RhythmProps {
|
|
|
76
67
|
toString(): string;
|
|
77
68
|
}
|
|
78
69
|
|
|
79
|
-
/** @public */
|
|
80
70
|
type TimeSignatureString = "2/4" | "3/4" | "4/4" | "6/8" | "9/8";
|
|
81
|
-
/** @public */
|
|
82
71
|
declare class TimeSignature {
|
|
83
72
|
readonly beatCount: number;
|
|
84
73
|
readonly beatSize: number;
|
|
@@ -99,10 +88,8 @@ declare class TimeSignature {
|
|
|
99
88
|
is(beatCount: number, beatSize: number): boolean;
|
|
100
89
|
toString(): string;
|
|
101
90
|
}
|
|
102
|
-
/** @public */
|
|
103
91
|
declare function getDefaultTimeSignature(): TimeSignature;
|
|
104
92
|
|
|
105
|
-
/** @public */
|
|
106
93
|
type Tempo = {
|
|
107
94
|
beatsPerMinute: number;
|
|
108
95
|
options: {
|
|
@@ -110,11 +97,8 @@ type Tempo = {
|
|
|
110
97
|
dotted: boolean;
|
|
111
98
|
};
|
|
112
99
|
};
|
|
113
|
-
/** @public */
|
|
114
100
|
declare function getDefaultTempo(): Readonly<Tempo>;
|
|
115
|
-
/** @public */
|
|
116
101
|
declare function getTempoString(tempo: Tempo): string;
|
|
117
|
-
/** @public */
|
|
118
102
|
declare function alterTempoSpeed(tempo: Tempo, speed: number): Tempo;
|
|
119
103
|
|
|
120
104
|
export { AccidentalType as A, KeySignature as K, Mode as M, NoteLength as N, RhythmProps as R, type TimeSignatureString as T, TimeSignature as a, getDefaultTimeSignature as b, type Tempo as c, getDefaultTempo as d, getTempoString as e, alterTempoSpeed as f, getDefaultKeySignature as g, MaxNoteLength as h, MinNoteLength as i, validateNoteLength as v };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { N as Note, A as Accidental } from './note-
|
|
1
|
+
import { N as Note, A as Accidental } from './note-BFa43I86.js';
|
|
2
2
|
|
|
3
|
-
/** @public */
|
|
4
3
|
declare enum Mode {
|
|
5
4
|
Ionian = 1,
|
|
6
5
|
Dorian = 2,
|
|
@@ -10,15 +9,12 @@ declare enum Mode {
|
|
|
10
9
|
Aeolian = 6,
|
|
11
10
|
Locrian = 7
|
|
12
11
|
}
|
|
13
|
-
/** @public */
|
|
14
12
|
declare enum AccidentalType {
|
|
15
13
|
Natural = 0,
|
|
16
14
|
Flats = 1,
|
|
17
15
|
Sharps = 2
|
|
18
16
|
}
|
|
19
|
-
/** @public */
|
|
20
17
|
declare function getDefaultKeySignature(): KeySignature;
|
|
21
|
-
/** @public */
|
|
22
18
|
declare class KeySignature {
|
|
23
19
|
readonly tonic: string;
|
|
24
20
|
readonly mode: Mode;
|
|
@@ -46,7 +42,6 @@ declare class KeySignature {
|
|
|
46
42
|
static equals(a: KeySignature | null | undefined, b: KeySignature | null | undefined): boolean;
|
|
47
43
|
}
|
|
48
44
|
|
|
49
|
-
/** @public */
|
|
50
45
|
declare enum NoteLength {
|
|
51
46
|
Whole = 192,// * 3 because triplets are multiplied by 2 / 3, integer result
|
|
52
47
|
Half = 96,
|
|
@@ -56,13 +51,9 @@ declare enum NoteLength {
|
|
|
56
51
|
ThirtySecond = 6,
|
|
57
52
|
SixtyFourth = 3
|
|
58
53
|
}
|
|
59
|
-
/** @public */
|
|
60
54
|
declare const MaxNoteLength = NoteLength.Whole;
|
|
61
|
-
/** @public */
|
|
62
55
|
declare const MinNoteLength = NoteLength.SixtyFourth;
|
|
63
|
-
/** @public */
|
|
64
56
|
declare function validateNoteLength(noteLength: unknown): NoteLength;
|
|
65
|
-
/** @public */
|
|
66
57
|
declare class RhythmProps {
|
|
67
58
|
readonly noteLength: NoteLength;
|
|
68
59
|
readonly dotted: boolean;
|
|
@@ -76,9 +67,7 @@ declare class RhythmProps {
|
|
|
76
67
|
toString(): string;
|
|
77
68
|
}
|
|
78
69
|
|
|
79
|
-
/** @public */
|
|
80
70
|
type TimeSignatureString = "2/4" | "3/4" | "4/4" | "6/8" | "9/8";
|
|
81
|
-
/** @public */
|
|
82
71
|
declare class TimeSignature {
|
|
83
72
|
readonly beatCount: number;
|
|
84
73
|
readonly beatSize: number;
|
|
@@ -99,10 +88,8 @@ declare class TimeSignature {
|
|
|
99
88
|
is(beatCount: number, beatSize: number): boolean;
|
|
100
89
|
toString(): string;
|
|
101
90
|
}
|
|
102
|
-
/** @public */
|
|
103
91
|
declare function getDefaultTimeSignature(): TimeSignature;
|
|
104
92
|
|
|
105
|
-
/** @public */
|
|
106
93
|
type Tempo = {
|
|
107
94
|
beatsPerMinute: number;
|
|
108
95
|
options: {
|
|
@@ -110,11 +97,8 @@ type Tempo = {
|
|
|
110
97
|
dotted: boolean;
|
|
111
98
|
};
|
|
112
99
|
};
|
|
113
|
-
/** @public */
|
|
114
100
|
declare function getDefaultTempo(): Readonly<Tempo>;
|
|
115
|
-
/** @public */
|
|
116
101
|
declare function getTempoString(tempo: Tempo): string;
|
|
117
|
-
/** @public */
|
|
118
102
|
declare function alterTempoSpeed(tempo: Tempo, speed: number): Tempo;
|
|
119
103
|
|
|
120
104
|
export { AccidentalType as A, KeySignature as K, Mode as M, NoteLength as N, RhythmProps as R, type TimeSignatureString as T, TimeSignature as a, getDefaultTimeSignature as b, type Tempo as c, getDefaultTempo as d, getTempoString as e, alterTempoSpeed as f, getDefaultKeySignature as g, MaxNoteLength as h, MinNoteLength as i, validateNoteLength as v };
|
package/dist/theory/index.d.mts
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import { N as Note } from '../note-
|
|
2
|
-
export { A as Accidental, d as DefaultGuitarNoteLabel, D as DefaultPitchNotation, G as GuitarNoteLabel, e as GuitarNoteLabelList, a as NoteLetter, P as ParsedNote, b as PitchNotation, c as PitchNotationList, S as SymbolSet, g as getPitchNotationName, f as validateGuitarNoteLabel, v as validatePitchNotation } from '../note-
|
|
3
|
-
import { D as Degree } from '../scale-
|
|
4
|
-
export { b as Interval, I as IntervalDirection, a as IntervalQuality, c as Scale, d as ScaleFactory, S as ScaleType, i as getDefaultScale, h as getScale, e as getScaleFactory, g as getScaleFactoryList, v as validateIntervalQuality, f as validateScaleType } from '../scale-
|
|
5
|
-
export { D as DefaultHandedness, a as DefaultTuningName, H as Handedness, T as TuningNameList, g as getTuningStrings, v as validateHandedness, b as validateTuningName } from '../guitar-
|
|
6
|
-
export { A as AccidentalType, K as KeySignature, h as MaxNoteLength, i as MinNoteLength, M as Mode, N as NoteLength, R as RhythmProps, c as Tempo, a as TimeSignature, T as TimeSignatureString, f as alterTempoSpeed, g as getDefaultKeySignature, d as getDefaultTempo, b as getDefaultTimeSignature, e as getTempoString, v as validateNoteLength } from '../tempo-
|
|
1
|
+
import { N as Note } from '../note-BFa43I86.mjs';
|
|
2
|
+
export { A as Accidental, d as DefaultGuitarNoteLabel, D as DefaultPitchNotation, G as GuitarNoteLabel, e as GuitarNoteLabelList, a as NoteLetter, P as ParsedNote, b as PitchNotation, c as PitchNotationList, S as SymbolSet, g as getPitchNotationName, f as validateGuitarNoteLabel, v as validatePitchNotation } from '../note-BFa43I86.mjs';
|
|
3
|
+
import { D as Degree } from '../scale-DRR-t4Kr.mjs';
|
|
4
|
+
export { b as Interval, I as IntervalDirection, a as IntervalQuality, c as Scale, d as ScaleFactory, S as ScaleType, i as getDefaultScale, h as getScale, e as getScaleFactory, g as getScaleFactoryList, v as validateIntervalQuality, f as validateScaleType } from '../scale-DRR-t4Kr.mjs';
|
|
5
|
+
export { D as DefaultHandedness, a as DefaultTuningName, H as Handedness, T as TuningNameList, g as getTuningStrings, v as validateHandedness, b as validateTuningName } from '../guitar-DggbM2UL.mjs';
|
|
6
|
+
export { A as AccidentalType, K as KeySignature, h as MaxNoteLength, i as MinNoteLength, M as Mode, N as NoteLength, R as RhythmProps, c as Tempo, a as TimeSignature, T as TimeSignatureString, f as alterTempoSpeed, g as getDefaultKeySignature, d as getDefaultTempo, b as getDefaultTimeSignature, e as getTempoString, v as validateNoteLength } from '../tempo-B4h5Ktob.mjs';
|
|
7
7
|
|
|
8
|
-
/** @public */
|
|
9
8
|
type ChordInfo = {
|
|
10
9
|
name: string;
|
|
11
10
|
degrees: Degree[];
|
|
12
11
|
};
|
|
13
|
-
/** @public */
|
|
14
12
|
declare class Chord {
|
|
15
13
|
readonly chordInfo: ChordInfo;
|
|
16
14
|
readonly rootNote: Note;
|
package/dist/theory/index.d.ts
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import { N as Note } from '../note-
|
|
2
|
-
export { A as Accidental, d as DefaultGuitarNoteLabel, D as DefaultPitchNotation, G as GuitarNoteLabel, e as GuitarNoteLabelList, a as NoteLetter, P as ParsedNote, b as PitchNotation, c as PitchNotationList, S as SymbolSet, g as getPitchNotationName, f as validateGuitarNoteLabel, v as validatePitchNotation } from '../note-
|
|
3
|
-
import { D as Degree } from '../scale-
|
|
4
|
-
export { b as Interval, I as IntervalDirection, a as IntervalQuality, c as Scale, d as ScaleFactory, S as ScaleType, i as getDefaultScale, h as getScale, e as getScaleFactory, g as getScaleFactoryList, v as validateIntervalQuality, f as validateScaleType } from '../scale-
|
|
5
|
-
export { D as DefaultHandedness, a as DefaultTuningName, H as Handedness, T as TuningNameList, g as getTuningStrings, v as validateHandedness, b as validateTuningName } from '../guitar-
|
|
6
|
-
export { A as AccidentalType, K as KeySignature, h as MaxNoteLength, i as MinNoteLength, M as Mode, N as NoteLength, R as RhythmProps, c as Tempo, a as TimeSignature, T as TimeSignatureString, f as alterTempoSpeed, g as getDefaultKeySignature, d as getDefaultTempo, b as getDefaultTimeSignature, e as getTempoString, v as validateNoteLength } from '../tempo-
|
|
1
|
+
import { N as Note } from '../note-BFa43I86.js';
|
|
2
|
+
export { A as Accidental, d as DefaultGuitarNoteLabel, D as DefaultPitchNotation, G as GuitarNoteLabel, e as GuitarNoteLabelList, a as NoteLetter, P as ParsedNote, b as PitchNotation, c as PitchNotationList, S as SymbolSet, g as getPitchNotationName, f as validateGuitarNoteLabel, v as validatePitchNotation } from '../note-BFa43I86.js';
|
|
3
|
+
import { D as Degree } from '../scale-ebJm37q1.js';
|
|
4
|
+
export { b as Interval, I as IntervalDirection, a as IntervalQuality, c as Scale, d as ScaleFactory, S as ScaleType, i as getDefaultScale, h as getScale, e as getScaleFactory, g as getScaleFactoryList, v as validateIntervalQuality, f as validateScaleType } from '../scale-ebJm37q1.js';
|
|
5
|
+
export { D as DefaultHandedness, a as DefaultTuningName, H as Handedness, T as TuningNameList, g as getTuningStrings, v as validateHandedness, b as validateTuningName } from '../guitar-C2Cp71NZ.js';
|
|
6
|
+
export { A as AccidentalType, K as KeySignature, h as MaxNoteLength, i as MinNoteLength, M as Mode, N as NoteLength, R as RhythmProps, c as Tempo, a as TimeSignature, T as TimeSignatureString, f as alterTempoSpeed, g as getDefaultKeySignature, d as getDefaultTempo, b as getDefaultTimeSignature, e as getTempoString, v as validateNoteLength } from '../tempo-DgqDEsn0.js';
|
|
7
7
|
|
|
8
|
-
/** @public */
|
|
9
8
|
type ChordInfo = {
|
|
10
9
|
name: string;
|
|
11
10
|
degrees: Degree[];
|
|
12
11
|
};
|
|
13
|
-
/** @public */
|
|
14
12
|
declare class Chord {
|
|
15
13
|
readonly chordInfo: ChordInfo;
|
|
16
14
|
readonly rootNote: Note;
|
package/dist/theory/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* WebMusicScore v3.
|
|
1
|
+
/* WebMusicScore v3.2.0 | (c) 2023 PahkaSoft | MIT License | Includes: Tone.js (MIT License) */
|
|
2
2
|
"use strict";
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
package/dist/theory/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/* WebMusicScore v3.
|
|
1
|
+
/* WebMusicScore v3.2.0 | (c) 2023 PahkaSoft | MIT License | Includes: Tone.js (MIT License) */
|
|
2
2
|
import {
|
|
3
3
|
__publicField
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-LCTM7BID.mjs";
|
|
5
5
|
|
|
6
6
|
// src/theory/chord.ts
|
|
7
7
|
import { Utils as Utils6 } from "@tspro/ts-utils-lib";
|