@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.
Files changed (49) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +1 -1
  3. package/dist/audio/index.d.mts +40 -1
  4. package/dist/audio/index.d.ts +40 -1
  5. package/dist/audio/index.js +1 -1
  6. package/dist/audio/index.mjs +2 -2
  7. package/dist/audio-cg/index.d.mts +3 -0
  8. package/dist/audio-cg/index.d.ts +3 -0
  9. package/dist/audio-cg/index.js +1 -1
  10. package/dist/audio-cg/index.mjs +2 -2
  11. package/dist/{chunk-D643HZHM.mjs → chunk-YFPLOHP2.mjs} +2 -2
  12. package/dist/core/index.d.mts +12 -0
  13. package/dist/core/index.d.ts +12 -0
  14. package/dist/core/index.js +3 -2
  15. package/dist/core/index.mjs +4 -3
  16. package/dist/guitar-CaZJDA05.d.ts +35 -0
  17. package/dist/guitar-DdexKdN6.d.mts +35 -0
  18. package/dist/iife/index.global.js +11 -11
  19. package/dist/{interface-XoKiryoV.d.mts → music-objects-DJQ4d2OA.d.mts} +549 -53
  20. package/dist/{interface-7k8qGG44.d.ts → music-objects-Dc3kR-XF.d.ts} +549 -53
  21. package/dist/note-eA2xPPiG.d.mts +294 -0
  22. package/dist/note-eA2xPPiG.d.ts +294 -0
  23. package/dist/pieces/index.d.mts +22 -3
  24. package/dist/pieces/index.d.ts +22 -3
  25. package/dist/pieces/index.js +5 -2
  26. package/dist/pieces/index.mjs +6 -3
  27. package/dist/react-ui/index.d.mts +166 -17
  28. package/dist/react-ui/index.d.ts +166 -17
  29. package/dist/react-ui/index.js +78 -1
  30. package/dist/react-ui/index.mjs +79 -2
  31. package/dist/scale-B2Icbetz.d.ts +230 -0
  32. package/dist/scale-BbDJTbrG.d.mts +230 -0
  33. package/dist/score/index.d.mts +299 -46
  34. package/dist/score/index.d.ts +299 -46
  35. package/dist/score/index.js +553 -76
  36. package/dist/score/index.mjs +550 -75
  37. package/dist/{tempo-BAYoZ_Li.d.mts → tempo-CtUhvJbr.d.mts} +187 -5
  38. package/dist/{tempo-r2sb6Ku2.d.ts → tempo-Dt8aHpol.d.ts} +187 -5
  39. package/dist/theory/index.d.mts +29 -13
  40. package/dist/theory/index.d.ts +29 -13
  41. package/dist/theory/index.js +369 -25
  42. package/dist/theory/index.mjs +370 -26
  43. package/package.json +1 -1
  44. package/dist/guitar-DggbM2UL.d.mts +0 -17
  45. package/dist/guitar-cNmE-EvH.d.ts +0 -17
  46. package/dist/note-BFa43I86.d.mts +0 -85
  47. package/dist/note-CcVdUFqS.d.ts +0 -85
  48. package/dist/scale-C2pCNxdE.d.mts +0 -75
  49. package/dist/scale-CvPbJvfN.d.ts +0 -75
@@ -1,44 +1,60 @@
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-C2pCNxdE.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-C2pCNxdE.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, 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-BAYoZ_Li.mjs';
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
- * @returns Chord name e.g. "C/B"
34
+ * Get chord string presentation.
35
+ * @returns Chord string presentation (e.g. "C/B").
24
36
  */
25
37
  toString(): string;
26
38
  /**
27
- * @returns Degree notation string, e.g. "E - 1(C) - 3(E) - 5(G)"
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
- * @returns Omitted degrees string e.g. "Omits 5(G), 9(D)"
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
- * @param i - Degree index
36
- * @returns Degree string for given degree index, e.g. "3"
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
- * @param i - Degree index
41
- * @returns Note string for given degree index, e.g. "E"
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
  }
@@ -1,44 +1,60 @@
1
- import { N as Note } from '../note-CcVdUFqS.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-CcVdUFqS.js';
3
- import { D as Degree } from '../scale-CvPbJvfN.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-CvPbJvfN.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-cNmE-EvH.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-r2sb6Ku2.js';
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
- * @returns Chord name e.g. "C/B"
34
+ * Get chord string presentation.
35
+ * @returns Chord string presentation (e.g. "C/B").
24
36
  */
25
37
  toString(): string;
26
38
  /**
27
- * @returns Degree notation string, e.g. "E - 1(C) - 3(E) - 5(G)"
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
- * @returns Omitted degrees string e.g. "Omits 5(G), 9(D)"
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
- * @param i - Degree index
36
- * @returns Degree string for given degree index, e.g. "3"
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
- * @param i - Degree index
41
- * @returns Note string for given degree index, e.g. "E"
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
  }