@tspro/web-music-score 4.0.0 → 4.0.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/CHANGELOG.md +12 -0
- package/README.md +1 -1
- package/dist/audio/index.d.mts +40 -1
- package/dist/audio/index.d.ts +40 -1
- package/dist/audio/index.js +1 -1
- package/dist/audio/index.mjs +2 -2
- package/dist/audio-cg/index.d.mts +3 -0
- package/dist/audio-cg/index.d.ts +3 -0
- package/dist/audio-cg/index.js +1 -1
- package/dist/audio-cg/index.mjs +2 -2
- package/dist/{chunk-D643HZHM.mjs → chunk-YFPLOHP2.mjs} +2 -2
- package/dist/core/index.d.mts +12 -0
- package/dist/core/index.d.ts +12 -0
- package/dist/core/index.js +3 -2
- package/dist/core/index.mjs +4 -3
- package/dist/guitar-CaZJDA05.d.ts +35 -0
- package/dist/guitar-DdexKdN6.d.mts +35 -0
- package/dist/iife/index.global.js +11 -11
- package/dist/{interface-XoKiryoV.d.mts → music-objects-DJQ4d2OA.d.mts} +549 -53
- package/dist/{interface-7k8qGG44.d.ts → music-objects-Dc3kR-XF.d.ts} +549 -53
- package/dist/note-eA2xPPiG.d.mts +294 -0
- package/dist/note-eA2xPPiG.d.ts +294 -0
- package/dist/pieces/index.d.mts +22 -3
- package/dist/pieces/index.d.ts +22 -3
- package/dist/pieces/index.js +5 -2
- package/dist/pieces/index.mjs +6 -3
- package/dist/react-ui/index.d.mts +166 -17
- package/dist/react-ui/index.d.ts +166 -17
- package/dist/react-ui/index.js +78 -1
- package/dist/react-ui/index.mjs +79 -2
- package/dist/scale-B2Icbetz.d.ts +230 -0
- package/dist/scale-BbDJTbrG.d.mts +230 -0
- package/dist/score/index.d.mts +299 -46
- package/dist/score/index.d.ts +299 -46
- package/dist/score/index.js +553 -76
- package/dist/score/index.mjs +550 -75
- package/dist/{tempo-BAYoZ_Li.d.mts → tempo-CtUhvJbr.d.mts} +187 -5
- package/dist/{tempo-r2sb6Ku2.d.ts → tempo-Dt8aHpol.d.ts} +187 -5
- package/dist/theory/index.d.mts +29 -13
- package/dist/theory/index.d.ts +29 -13
- package/dist/theory/index.js +369 -25
- package/dist/theory/index.mjs +370 -26
- package/package.json +1 -1
- package/dist/guitar-DggbM2UL.d.mts +0 -17
- package/dist/guitar-cNmE-EvH.d.ts +0 -17
- package/dist/note-BFa43I86.d.mts +0 -85
- package/dist/note-CcVdUFqS.d.ts +0 -85
- package/dist/scale-C2pCNxdE.d.mts +0 -75
- package/dist/scale-CvPbJvfN.d.ts +0 -75
package/dist/theory/index.d.mts
CHANGED
|
@@ -1,44 +1,60 @@
|
|
|
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, M as Mode, N as NoteLength, i as NoteLengthProps, h as NoteLengthStr, R as RhythmProps, c as Tempo, a as TimeSignature, T as TimeSignatureString, l as Tuplet, j as TupletRatio, f as alterTempoSpeed, g as getDefaultKeySignature, d as getDefaultTempo, b as getDefaultTimeSignature, e as getTempoString, v as validateNoteLength, k as validateTupletRatio } from '../tempo-
|
|
1
|
+
import { N as Note } from '../note-eA2xPPiG.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-eA2xPPiG.mjs';
|
|
3
|
+
import { D as Degree } from '../scale-BbDJTbrG.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-BbDJTbrG.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-DdexKdN6.mjs';
|
|
6
|
+
export { A as AccidentalType, K as KeySignature, M as Mode, N as NoteLength, i as NoteLengthProps, h as NoteLengthStr, R as RhythmProps, c as Tempo, a as TimeSignature, T as TimeSignatureString, l as Tuplet, j as TupletRatio, f as alterTempoSpeed, g as getDefaultKeySignature, d as getDefaultTempo, b as getDefaultTimeSignature, e as getTempoString, v as validateNoteLength, k as validateTupletRatio } from '../tempo-CtUhvJbr.mjs';
|
|
7
7
|
|
|
8
|
+
/** Chord info type. */
|
|
8
9
|
type ChordInfo = {
|
|
9
10
|
name: string;
|
|
10
11
|
degrees: Degree[];
|
|
11
12
|
};
|
|
13
|
+
/** Chord class. */
|
|
12
14
|
declare class Chord {
|
|
13
15
|
readonly chordInfo: ChordInfo;
|
|
14
16
|
readonly rootNote: Note;
|
|
17
|
+
/** Chord name. */
|
|
15
18
|
readonly name: string;
|
|
19
|
+
/** Notes of this chord. */
|
|
16
20
|
readonly notes: Note[];
|
|
21
|
+
/** Notes that are omitted in this chord (partial chord). */
|
|
17
22
|
readonly omitNotes: boolean[];
|
|
23
|
+
/** Bass note if not chord root note (e.g. "B" in "C/B"). */
|
|
18
24
|
readonly slashBassNote?: Note;
|
|
19
25
|
private constructor();
|
|
26
|
+
/**
|
|
27
|
+
* Get all chords that can be made up with given notes.
|
|
28
|
+
* @param notes - Array of notes.
|
|
29
|
+
* @returns - Array of chords.
|
|
30
|
+
*/
|
|
20
31
|
static getChords(notes: ReadonlyArray<Note>): ReadonlyArray<Chord>;
|
|
21
32
|
private replaceWith;
|
|
22
33
|
/**
|
|
23
|
-
*
|
|
34
|
+
* Get chord string presentation.
|
|
35
|
+
* @returns Chord string presentation (e.g. "C/B").
|
|
24
36
|
*/
|
|
25
37
|
toString(): string;
|
|
26
38
|
/**
|
|
27
|
-
*
|
|
39
|
+
* Get degree notation string (e.g. "E - 1(C) - 3(E) - 5(G)").
|
|
40
|
+
* @returns Degree notation string.
|
|
28
41
|
*/
|
|
29
42
|
getDegreeNotationString(): string;
|
|
30
43
|
/**
|
|
31
|
-
*
|
|
44
|
+
* Get string presentation of omitted degrees (e.g. "Omits 5(G), 9(D)").
|
|
45
|
+
* @returns - String presentation of omitted degrees.
|
|
32
46
|
*/
|
|
33
47
|
getOmittedDegreesString(): string;
|
|
34
48
|
/**
|
|
35
|
-
*
|
|
36
|
-
* @
|
|
49
|
+
* Degree index for given degree index (e.g. "3").
|
|
50
|
+
* @param i - Chord degree index (e.g. 0 is first note degree of chord).
|
|
51
|
+
* @returns Degree string.
|
|
37
52
|
*/
|
|
38
53
|
private getDegreeStr;
|
|
39
54
|
/**
|
|
40
|
-
*
|
|
41
|
-
* @
|
|
55
|
+
* Get note name for given degree index (e.g. "E").
|
|
56
|
+
* @param i - Chord degree index (e.g. 0 is first note degree of chord).
|
|
57
|
+
* @returns - Note name string.
|
|
42
58
|
*/
|
|
43
59
|
private getNoteStr;
|
|
44
60
|
}
|
package/dist/theory/index.d.ts
CHANGED
|
@@ -1,44 +1,60 @@
|
|
|
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, M as Mode, N as NoteLength, i as NoteLengthProps, h as NoteLengthStr, R as RhythmProps, c as Tempo, a as TimeSignature, T as TimeSignatureString, l as Tuplet, j as TupletRatio, f as alterTempoSpeed, g as getDefaultKeySignature, d as getDefaultTempo, b as getDefaultTimeSignature, e as getTempoString, v as validateNoteLength, k as validateTupletRatio } from '../tempo-
|
|
1
|
+
import { N as Note } from '../note-eA2xPPiG.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-eA2xPPiG.js';
|
|
3
|
+
import { D as Degree } from '../scale-B2Icbetz.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-B2Icbetz.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-CaZJDA05.js';
|
|
6
|
+
export { A as AccidentalType, K as KeySignature, M as Mode, N as NoteLength, i as NoteLengthProps, h as NoteLengthStr, R as RhythmProps, c as Tempo, a as TimeSignature, T as TimeSignatureString, l as Tuplet, j as TupletRatio, f as alterTempoSpeed, g as getDefaultKeySignature, d as getDefaultTempo, b as getDefaultTimeSignature, e as getTempoString, v as validateNoteLength, k as validateTupletRatio } from '../tempo-Dt8aHpol.js';
|
|
7
7
|
|
|
8
|
+
/** Chord info type. */
|
|
8
9
|
type ChordInfo = {
|
|
9
10
|
name: string;
|
|
10
11
|
degrees: Degree[];
|
|
11
12
|
};
|
|
13
|
+
/** Chord class. */
|
|
12
14
|
declare class Chord {
|
|
13
15
|
readonly chordInfo: ChordInfo;
|
|
14
16
|
readonly rootNote: Note;
|
|
17
|
+
/** Chord name. */
|
|
15
18
|
readonly name: string;
|
|
19
|
+
/** Notes of this chord. */
|
|
16
20
|
readonly notes: Note[];
|
|
21
|
+
/** Notes that are omitted in this chord (partial chord). */
|
|
17
22
|
readonly omitNotes: boolean[];
|
|
23
|
+
/** Bass note if not chord root note (e.g. "B" in "C/B"). */
|
|
18
24
|
readonly slashBassNote?: Note;
|
|
19
25
|
private constructor();
|
|
26
|
+
/**
|
|
27
|
+
* Get all chords that can be made up with given notes.
|
|
28
|
+
* @param notes - Array of notes.
|
|
29
|
+
* @returns - Array of chords.
|
|
30
|
+
*/
|
|
20
31
|
static getChords(notes: ReadonlyArray<Note>): ReadonlyArray<Chord>;
|
|
21
32
|
private replaceWith;
|
|
22
33
|
/**
|
|
23
|
-
*
|
|
34
|
+
* Get chord string presentation.
|
|
35
|
+
* @returns Chord string presentation (e.g. "C/B").
|
|
24
36
|
*/
|
|
25
37
|
toString(): string;
|
|
26
38
|
/**
|
|
27
|
-
*
|
|
39
|
+
* Get degree notation string (e.g. "E - 1(C) - 3(E) - 5(G)").
|
|
40
|
+
* @returns Degree notation string.
|
|
28
41
|
*/
|
|
29
42
|
getDegreeNotationString(): string;
|
|
30
43
|
/**
|
|
31
|
-
*
|
|
44
|
+
* Get string presentation of omitted degrees (e.g. "Omits 5(G), 9(D)").
|
|
45
|
+
* @returns - String presentation of omitted degrees.
|
|
32
46
|
*/
|
|
33
47
|
getOmittedDegreesString(): string;
|
|
34
48
|
/**
|
|
35
|
-
*
|
|
36
|
-
* @
|
|
49
|
+
* Degree index for given degree index (e.g. "3").
|
|
50
|
+
* @param i - Chord degree index (e.g. 0 is first note degree of chord).
|
|
51
|
+
* @returns Degree string.
|
|
37
52
|
*/
|
|
38
53
|
private getDegreeStr;
|
|
39
54
|
/**
|
|
40
|
-
*
|
|
41
|
-
* @
|
|
55
|
+
* Get note name for given degree index (e.g. "E").
|
|
56
|
+
* @param i - Chord degree index (e.g. 0 is first note degree of chord).
|
|
57
|
+
* @returns - Note name string.
|
|
42
58
|
*/
|
|
43
59
|
private getNoteStr;
|
|
44
60
|
}
|