@tspro/web-music-score 3.1.1 → 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 +12 -0
- package/dist/audio/index.js +1 -1
- package/dist/audio/index.mjs +2 -2
- package/dist/audio-cg/index.js +1 -1
- package/dist/audio-cg/index.mjs +2 -2
- package/dist/{chunk-PU4J7K4Z.mjs → chunk-LCTM7BID.mjs} +2 -2
- package/dist/core/index.js +2 -2
- package/dist/core/index.mjs +3 -3
- package/dist/iife/index.global.js +11 -11
- package/dist/{interface-Fn8ufBQx.d.ts → interface-BlNl69uT.d.ts} +42 -2
- package/dist/{interface-Bz_525zj.d.mts → interface-Bn5HFt_U.d.mts} +42 -2
- package/dist/pieces/index.d.mts +1 -1
- package/dist/pieces/index.d.ts +1 -1
- package/dist/pieces/index.js +1 -1
- package/dist/pieces/index.mjs +2 -2
- package/dist/react-ui/index.d.mts +1 -1
- package/dist/react-ui/index.d.ts +1 -1
- package/dist/react-ui/index.js +1 -1
- package/dist/react-ui/index.mjs +2 -2
- package/dist/score/index.d.mts +2 -2
- package/dist/score/index.d.ts +2 -2
- package/dist/score/index.js +222 -80
- package/dist/score/index.mjs +223 -81
- package/dist/theory/index.js +1 -1
- package/dist/theory/index.mjs +2 -2
- package/package.json +1 -1
|
@@ -206,7 +206,9 @@ declare enum StaffPreset {
|
|
|
206
206
|
Grand = 3,
|
|
207
207
|
/** GuitarTreble has treble clef but is one octave lower. */
|
|
208
208
|
GuitarTreble = 4,
|
|
209
|
+
/** GuitarTab has tab for guitar. */
|
|
209
210
|
GuitarTab = 8,
|
|
211
|
+
/** GuitarCombined has treble clef and tab for guitar. */
|
|
210
212
|
GuitarCombined = 12
|
|
211
213
|
}
|
|
212
214
|
declare enum Clef {
|
|
@@ -815,11 +817,12 @@ declare enum BarLineType {
|
|
|
815
817
|
EndStartRepeat = 6
|
|
816
818
|
}
|
|
817
819
|
declare class ObjStaffTabBarLine extends MusicObject {
|
|
820
|
+
readonly barLine: ObjBarLine;
|
|
818
821
|
readonly line: ObjNotationLine;
|
|
819
822
|
lineRects: DivRect[];
|
|
820
823
|
dotRects: DivRect[];
|
|
821
824
|
readonly mi: MStaffTabBarLine;
|
|
822
|
-
constructor(line: ObjNotationLine);
|
|
825
|
+
constructor(barLine: ObjBarLine, line: ObjNotationLine);
|
|
823
826
|
getMusicInterface(): MusicInterface;
|
|
824
827
|
pick(x: number, y: number): MusicObject[];
|
|
825
828
|
setRect(r: DivRect): void;
|
|
@@ -1001,6 +1004,7 @@ declare class ObjMeasure extends MusicObject {
|
|
|
1001
1004
|
createExtensions(): void;
|
|
1002
1005
|
addBeamGroup(beam: ObjBeamGroup): void;
|
|
1003
1006
|
requestBeamsUpdate(): void;
|
|
1007
|
+
private createOldStyleTriplets;
|
|
1004
1008
|
createBeams(): void;
|
|
1005
1009
|
private static setupBeamGroup;
|
|
1006
1010
|
getBarLineLeft(): ObjBarLineLeft;
|
|
@@ -1096,6 +1100,8 @@ declare class ObjDocument extends MusicObject {
|
|
|
1096
1100
|
private addNewRow;
|
|
1097
1101
|
getFirstRow(): ObjScoreRow;
|
|
1098
1102
|
getLastRow(): ObjScoreRow;
|
|
1103
|
+
getRows(): ReadonlyArray<ObjScoreRow>;
|
|
1104
|
+
getMeasures(): ReadonlyArray<ObjMeasure>;
|
|
1099
1105
|
requestNewRow(): void;
|
|
1100
1106
|
addMeasure(): ObjMeasure;
|
|
1101
1107
|
addStaffGroup(groupName: string, layoutElements: number | string | (number | string)[], verticalPosition: VerticalPosition): void;
|
|
@@ -1257,11 +1263,12 @@ type ExtensionLineLeftObj = ObjBarLineLeft | MusicObject;
|
|
|
1257
1263
|
type ExtensionLineRightObj = ObjRhythmColumn | ObjBarLineRight;
|
|
1258
1264
|
declare class ObjExtensionLine extends MusicObject {
|
|
1259
1265
|
readonly measure: ObjMeasure;
|
|
1266
|
+
readonly line: ObjNotationLine;
|
|
1260
1267
|
readonly extension: Extension;
|
|
1261
1268
|
readonly leftObj: ExtensionLineLeftObj;
|
|
1262
1269
|
readonly rightObj: ExtensionLineRightObj;
|
|
1263
1270
|
readonly mi: MExtensionLine;
|
|
1264
|
-
constructor(measure: ObjMeasure, extension: Extension, leftObj: ExtensionLineLeftObj, rightObj: ExtensionLineRightObj);
|
|
1271
|
+
constructor(measure: ObjMeasure, line: ObjNotationLine, extension: Extension, leftObj: ExtensionLineLeftObj, rightObj: ExtensionLineRightObj);
|
|
1265
1272
|
get row(): ObjScoreRow;
|
|
1266
1273
|
getMusicInterface(): MExtensionLine;
|
|
1267
1274
|
private getLineLeft;
|
|
@@ -1494,6 +1501,8 @@ declare class MArpeggio extends MusicInterface {
|
|
|
1494
1501
|
constructor(obj: ObjArpeggio);
|
|
1495
1502
|
/** @internal */
|
|
1496
1503
|
getMusicObject(): ObjArpeggio;
|
|
1504
|
+
getRhythmColumn(): MRhythmColumn;
|
|
1505
|
+
getNotationLine(): MStaff | MTab;
|
|
1497
1506
|
}
|
|
1498
1507
|
declare class MBeamGroup extends MusicInterface {
|
|
1499
1508
|
private readonly obj;
|
|
@@ -1510,6 +1519,7 @@ declare class MStaffBeamGroup extends MusicInterface {
|
|
|
1510
1519
|
constructor(obj: ObjStaffBeamGroup);
|
|
1511
1520
|
/** @internal */
|
|
1512
1521
|
getMusicObject(): ObjStaffBeamGroup;
|
|
1522
|
+
getStaff(): MStaff;
|
|
1513
1523
|
}
|
|
1514
1524
|
declare class MDocument extends MusicInterface {
|
|
1515
1525
|
private readonly obj;
|
|
@@ -1521,6 +1531,8 @@ declare class MDocument extends MusicInterface {
|
|
|
1521
1531
|
getTitle(): string | undefined;
|
|
1522
1532
|
getComposer(): string | undefined;
|
|
1523
1533
|
getArranger(): string | undefined;
|
|
1534
|
+
getRows(): ReadonlyArray<MScoreRow>;
|
|
1535
|
+
getMeasures(): ReadonlyArray<MMeasure>;
|
|
1524
1536
|
play(fn?: PlayStateChangeListener): MPlayer;
|
|
1525
1537
|
}
|
|
1526
1538
|
declare class MEnding extends MusicInterface {
|
|
@@ -1569,6 +1581,7 @@ declare class MMeasure extends MusicInterface {
|
|
|
1569
1581
|
getMusicObject(): ObjMeasure;
|
|
1570
1582
|
getMeasureNumber(): number;
|
|
1571
1583
|
getRhythmColumns(): ReadonlyArray<MRhythmColumn>;
|
|
1584
|
+
getRow(): MScoreRow;
|
|
1572
1585
|
}
|
|
1573
1586
|
declare class MBarLineRight extends MusicInterface {
|
|
1574
1587
|
private readonly obj;
|
|
@@ -1593,6 +1606,8 @@ declare class MStaffTabBarLine extends MusicInterface {
|
|
|
1593
1606
|
constructor(obj: ObjStaffTabBarLine);
|
|
1594
1607
|
/** @internal */
|
|
1595
1608
|
getMusicObject(): ObjStaffTabBarLine;
|
|
1609
|
+
getBarLine(): MBarLineLeft | MBarLineRight;
|
|
1610
|
+
getNotationLine(): MStaff | MTab;
|
|
1596
1611
|
}
|
|
1597
1612
|
declare class MNoteGroup extends MusicInterface {
|
|
1598
1613
|
private readonly obj;
|
|
@@ -1603,6 +1618,8 @@ declare class MNoteGroup extends MusicInterface {
|
|
|
1603
1618
|
getMusicObject(): ObjNoteGroup;
|
|
1604
1619
|
getNotes(): ReadonlyArray<Note>;
|
|
1605
1620
|
getRhythmProps(): RhythmProps;
|
|
1621
|
+
getRhythmColumn(): MRhythmColumn;
|
|
1622
|
+
getMeasure(): MMeasure;
|
|
1606
1623
|
}
|
|
1607
1624
|
declare class MStaffNoteGroup extends MusicInterface {
|
|
1608
1625
|
private readonly obj;
|
|
@@ -1612,6 +1629,9 @@ declare class MStaffNoteGroup extends MusicInterface {
|
|
|
1612
1629
|
/** @internal */
|
|
1613
1630
|
getMusicObject(): ObjStaffNoteGroup;
|
|
1614
1631
|
getNoteGroup(): MNoteGroup;
|
|
1632
|
+
getRhythmColumn(): MRhythmColumn;
|
|
1633
|
+
getMeasure(): MMeasure;
|
|
1634
|
+
getStaff(): MStaff;
|
|
1615
1635
|
}
|
|
1616
1636
|
declare class MTabNoteGroup extends MusicInterface {
|
|
1617
1637
|
private readonly obj;
|
|
@@ -1621,6 +1641,9 @@ declare class MTabNoteGroup extends MusicInterface {
|
|
|
1621
1641
|
/** @internal */
|
|
1622
1642
|
getMusicObject(): ObjTabNoteGroup;
|
|
1623
1643
|
getNoteGroup(): MNoteGroup;
|
|
1644
|
+
getRhythmColumn(): MRhythmColumn;
|
|
1645
|
+
getMeasure(): MMeasure;
|
|
1646
|
+
getTab(): MTab;
|
|
1624
1647
|
}
|
|
1625
1648
|
declare class MRest extends MusicInterface {
|
|
1626
1649
|
private readonly obj;
|
|
@@ -1630,6 +1653,8 @@ declare class MRest extends MusicInterface {
|
|
|
1630
1653
|
/** @internal */
|
|
1631
1654
|
getMusicObject(): ObjRest;
|
|
1632
1655
|
getRhythmProps(): RhythmProps;
|
|
1656
|
+
getRhythmColumn(): MRhythmColumn;
|
|
1657
|
+
getMeasure(): MMeasure;
|
|
1633
1658
|
}
|
|
1634
1659
|
declare class MStaffRest extends MusicInterface {
|
|
1635
1660
|
private readonly obj;
|
|
@@ -1639,6 +1664,9 @@ declare class MStaffRest extends MusicInterface {
|
|
|
1639
1664
|
/** @internal */
|
|
1640
1665
|
getMusicObject(): ObjStaffRest;
|
|
1641
1666
|
getRest(): MRest;
|
|
1667
|
+
getRhythmColumn(): MRhythmColumn;
|
|
1668
|
+
getMeasure(): MMeasure;
|
|
1669
|
+
getStaff(): MStaff;
|
|
1642
1670
|
}
|
|
1643
1671
|
declare class MRhythmColumn extends MusicInterface {
|
|
1644
1672
|
private readonly obj;
|
|
@@ -1648,6 +1676,8 @@ declare class MRhythmColumn extends MusicInterface {
|
|
|
1648
1676
|
/** @internal */
|
|
1649
1677
|
getMusicObject(): ObjRhythmColumn;
|
|
1650
1678
|
getRhythmSymbol(voiceId: number): MNoteGroup | MRest | undefined;
|
|
1679
|
+
getMeasure(): MMeasure;
|
|
1680
|
+
getVoiceSymbol(voiceId: VoiceId): MNoteGroup | MRest | undefined;
|
|
1651
1681
|
}
|
|
1652
1682
|
declare class MScoreRow extends MusicInterface {
|
|
1653
1683
|
private readonly obj;
|
|
@@ -1656,7 +1686,9 @@ declare class MScoreRow extends MusicInterface {
|
|
|
1656
1686
|
constructor(obj: ObjScoreRow);
|
|
1657
1687
|
/** @internal */
|
|
1658
1688
|
getMusicObject(): ObjScoreRow;
|
|
1689
|
+
getDocument(): MDocument;
|
|
1659
1690
|
getMeasures(): ReadonlyArray<MMeasure>;
|
|
1691
|
+
getNotationLines(): ReadonlyArray<MStaff | MTab>;
|
|
1660
1692
|
}
|
|
1661
1693
|
declare class MStaff extends MusicInterface {
|
|
1662
1694
|
private readonly obj;
|
|
@@ -1665,6 +1697,9 @@ declare class MStaff extends MusicInterface {
|
|
|
1665
1697
|
constructor(obj: ObjStaff);
|
|
1666
1698
|
/** @internal */
|
|
1667
1699
|
getMusicObject(): ObjStaff;
|
|
1700
|
+
getId(): number;
|
|
1701
|
+
getName(): string | undefined;
|
|
1702
|
+
getRow(): MScoreRow;
|
|
1668
1703
|
}
|
|
1669
1704
|
declare class MTab extends MusicInterface {
|
|
1670
1705
|
private readonly obj;
|
|
@@ -1673,6 +1708,9 @@ declare class MTab extends MusicInterface {
|
|
|
1673
1708
|
constructor(obj: ObjTab);
|
|
1674
1709
|
/** @internal */
|
|
1675
1710
|
getMusicObject(): ObjTab;
|
|
1711
|
+
getId(): number;
|
|
1712
|
+
getName(): string | undefined;
|
|
1713
|
+
getRow(): MScoreRow;
|
|
1676
1714
|
}
|
|
1677
1715
|
declare class MSignature extends MusicInterface {
|
|
1678
1716
|
private readonly obj;
|
|
@@ -1681,6 +1719,7 @@ declare class MSignature extends MusicInterface {
|
|
|
1681
1719
|
constructor(obj: ObjSignature);
|
|
1682
1720
|
/** @internal */
|
|
1683
1721
|
getMusicObject(): ObjSignature;
|
|
1722
|
+
getStaff(): MStaff;
|
|
1684
1723
|
}
|
|
1685
1724
|
declare class MSpecialText extends MusicInterface {
|
|
1686
1725
|
private readonly obj;
|
|
@@ -1689,6 +1728,7 @@ declare class MSpecialText extends MusicInterface {
|
|
|
1689
1728
|
constructor(obj: ObjSpecialText);
|
|
1690
1729
|
/** @internal */
|
|
1691
1730
|
getMusicObject(): ObjSpecialText;
|
|
1731
|
+
getText(): string;
|
|
1692
1732
|
}
|
|
1693
1733
|
declare class MText extends MusicInterface {
|
|
1694
1734
|
private readonly obj;
|
|
@@ -206,7 +206,9 @@ declare enum StaffPreset {
|
|
|
206
206
|
Grand = 3,
|
|
207
207
|
/** GuitarTreble has treble clef but is one octave lower. */
|
|
208
208
|
GuitarTreble = 4,
|
|
209
|
+
/** GuitarTab has tab for guitar. */
|
|
209
210
|
GuitarTab = 8,
|
|
211
|
+
/** GuitarCombined has treble clef and tab for guitar. */
|
|
210
212
|
GuitarCombined = 12
|
|
211
213
|
}
|
|
212
214
|
declare enum Clef {
|
|
@@ -815,11 +817,12 @@ declare enum BarLineType {
|
|
|
815
817
|
EndStartRepeat = 6
|
|
816
818
|
}
|
|
817
819
|
declare class ObjStaffTabBarLine extends MusicObject {
|
|
820
|
+
readonly barLine: ObjBarLine;
|
|
818
821
|
readonly line: ObjNotationLine;
|
|
819
822
|
lineRects: DivRect[];
|
|
820
823
|
dotRects: DivRect[];
|
|
821
824
|
readonly mi: MStaffTabBarLine;
|
|
822
|
-
constructor(line: ObjNotationLine);
|
|
825
|
+
constructor(barLine: ObjBarLine, line: ObjNotationLine);
|
|
823
826
|
getMusicInterface(): MusicInterface;
|
|
824
827
|
pick(x: number, y: number): MusicObject[];
|
|
825
828
|
setRect(r: DivRect): void;
|
|
@@ -1001,6 +1004,7 @@ declare class ObjMeasure extends MusicObject {
|
|
|
1001
1004
|
createExtensions(): void;
|
|
1002
1005
|
addBeamGroup(beam: ObjBeamGroup): void;
|
|
1003
1006
|
requestBeamsUpdate(): void;
|
|
1007
|
+
private createOldStyleTriplets;
|
|
1004
1008
|
createBeams(): void;
|
|
1005
1009
|
private static setupBeamGroup;
|
|
1006
1010
|
getBarLineLeft(): ObjBarLineLeft;
|
|
@@ -1096,6 +1100,8 @@ declare class ObjDocument extends MusicObject {
|
|
|
1096
1100
|
private addNewRow;
|
|
1097
1101
|
getFirstRow(): ObjScoreRow;
|
|
1098
1102
|
getLastRow(): ObjScoreRow;
|
|
1103
|
+
getRows(): ReadonlyArray<ObjScoreRow>;
|
|
1104
|
+
getMeasures(): ReadonlyArray<ObjMeasure>;
|
|
1099
1105
|
requestNewRow(): void;
|
|
1100
1106
|
addMeasure(): ObjMeasure;
|
|
1101
1107
|
addStaffGroup(groupName: string, layoutElements: number | string | (number | string)[], verticalPosition: VerticalPosition): void;
|
|
@@ -1257,11 +1263,12 @@ type ExtensionLineLeftObj = ObjBarLineLeft | MusicObject;
|
|
|
1257
1263
|
type ExtensionLineRightObj = ObjRhythmColumn | ObjBarLineRight;
|
|
1258
1264
|
declare class ObjExtensionLine extends MusicObject {
|
|
1259
1265
|
readonly measure: ObjMeasure;
|
|
1266
|
+
readonly line: ObjNotationLine;
|
|
1260
1267
|
readonly extension: Extension;
|
|
1261
1268
|
readonly leftObj: ExtensionLineLeftObj;
|
|
1262
1269
|
readonly rightObj: ExtensionLineRightObj;
|
|
1263
1270
|
readonly mi: MExtensionLine;
|
|
1264
|
-
constructor(measure: ObjMeasure, extension: Extension, leftObj: ExtensionLineLeftObj, rightObj: ExtensionLineRightObj);
|
|
1271
|
+
constructor(measure: ObjMeasure, line: ObjNotationLine, extension: Extension, leftObj: ExtensionLineLeftObj, rightObj: ExtensionLineRightObj);
|
|
1265
1272
|
get row(): ObjScoreRow;
|
|
1266
1273
|
getMusicInterface(): MExtensionLine;
|
|
1267
1274
|
private getLineLeft;
|
|
@@ -1494,6 +1501,8 @@ declare class MArpeggio extends MusicInterface {
|
|
|
1494
1501
|
constructor(obj: ObjArpeggio);
|
|
1495
1502
|
/** @internal */
|
|
1496
1503
|
getMusicObject(): ObjArpeggio;
|
|
1504
|
+
getRhythmColumn(): MRhythmColumn;
|
|
1505
|
+
getNotationLine(): MStaff | MTab;
|
|
1497
1506
|
}
|
|
1498
1507
|
declare class MBeamGroup extends MusicInterface {
|
|
1499
1508
|
private readonly obj;
|
|
@@ -1510,6 +1519,7 @@ declare class MStaffBeamGroup extends MusicInterface {
|
|
|
1510
1519
|
constructor(obj: ObjStaffBeamGroup);
|
|
1511
1520
|
/** @internal */
|
|
1512
1521
|
getMusicObject(): ObjStaffBeamGroup;
|
|
1522
|
+
getStaff(): MStaff;
|
|
1513
1523
|
}
|
|
1514
1524
|
declare class MDocument extends MusicInterface {
|
|
1515
1525
|
private readonly obj;
|
|
@@ -1521,6 +1531,8 @@ declare class MDocument extends MusicInterface {
|
|
|
1521
1531
|
getTitle(): string | undefined;
|
|
1522
1532
|
getComposer(): string | undefined;
|
|
1523
1533
|
getArranger(): string | undefined;
|
|
1534
|
+
getRows(): ReadonlyArray<MScoreRow>;
|
|
1535
|
+
getMeasures(): ReadonlyArray<MMeasure>;
|
|
1524
1536
|
play(fn?: PlayStateChangeListener): MPlayer;
|
|
1525
1537
|
}
|
|
1526
1538
|
declare class MEnding extends MusicInterface {
|
|
@@ -1569,6 +1581,7 @@ declare class MMeasure extends MusicInterface {
|
|
|
1569
1581
|
getMusicObject(): ObjMeasure;
|
|
1570
1582
|
getMeasureNumber(): number;
|
|
1571
1583
|
getRhythmColumns(): ReadonlyArray<MRhythmColumn>;
|
|
1584
|
+
getRow(): MScoreRow;
|
|
1572
1585
|
}
|
|
1573
1586
|
declare class MBarLineRight extends MusicInterface {
|
|
1574
1587
|
private readonly obj;
|
|
@@ -1593,6 +1606,8 @@ declare class MStaffTabBarLine extends MusicInterface {
|
|
|
1593
1606
|
constructor(obj: ObjStaffTabBarLine);
|
|
1594
1607
|
/** @internal */
|
|
1595
1608
|
getMusicObject(): ObjStaffTabBarLine;
|
|
1609
|
+
getBarLine(): MBarLineLeft | MBarLineRight;
|
|
1610
|
+
getNotationLine(): MStaff | MTab;
|
|
1596
1611
|
}
|
|
1597
1612
|
declare class MNoteGroup extends MusicInterface {
|
|
1598
1613
|
private readonly obj;
|
|
@@ -1603,6 +1618,8 @@ declare class MNoteGroup extends MusicInterface {
|
|
|
1603
1618
|
getMusicObject(): ObjNoteGroup;
|
|
1604
1619
|
getNotes(): ReadonlyArray<Note>;
|
|
1605
1620
|
getRhythmProps(): RhythmProps;
|
|
1621
|
+
getRhythmColumn(): MRhythmColumn;
|
|
1622
|
+
getMeasure(): MMeasure;
|
|
1606
1623
|
}
|
|
1607
1624
|
declare class MStaffNoteGroup extends MusicInterface {
|
|
1608
1625
|
private readonly obj;
|
|
@@ -1612,6 +1629,9 @@ declare class MStaffNoteGroup extends MusicInterface {
|
|
|
1612
1629
|
/** @internal */
|
|
1613
1630
|
getMusicObject(): ObjStaffNoteGroup;
|
|
1614
1631
|
getNoteGroup(): MNoteGroup;
|
|
1632
|
+
getRhythmColumn(): MRhythmColumn;
|
|
1633
|
+
getMeasure(): MMeasure;
|
|
1634
|
+
getStaff(): MStaff;
|
|
1615
1635
|
}
|
|
1616
1636
|
declare class MTabNoteGroup extends MusicInterface {
|
|
1617
1637
|
private readonly obj;
|
|
@@ -1621,6 +1641,9 @@ declare class MTabNoteGroup extends MusicInterface {
|
|
|
1621
1641
|
/** @internal */
|
|
1622
1642
|
getMusicObject(): ObjTabNoteGroup;
|
|
1623
1643
|
getNoteGroup(): MNoteGroup;
|
|
1644
|
+
getRhythmColumn(): MRhythmColumn;
|
|
1645
|
+
getMeasure(): MMeasure;
|
|
1646
|
+
getTab(): MTab;
|
|
1624
1647
|
}
|
|
1625
1648
|
declare class MRest extends MusicInterface {
|
|
1626
1649
|
private readonly obj;
|
|
@@ -1630,6 +1653,8 @@ declare class MRest extends MusicInterface {
|
|
|
1630
1653
|
/** @internal */
|
|
1631
1654
|
getMusicObject(): ObjRest;
|
|
1632
1655
|
getRhythmProps(): RhythmProps;
|
|
1656
|
+
getRhythmColumn(): MRhythmColumn;
|
|
1657
|
+
getMeasure(): MMeasure;
|
|
1633
1658
|
}
|
|
1634
1659
|
declare class MStaffRest extends MusicInterface {
|
|
1635
1660
|
private readonly obj;
|
|
@@ -1639,6 +1664,9 @@ declare class MStaffRest extends MusicInterface {
|
|
|
1639
1664
|
/** @internal */
|
|
1640
1665
|
getMusicObject(): ObjStaffRest;
|
|
1641
1666
|
getRest(): MRest;
|
|
1667
|
+
getRhythmColumn(): MRhythmColumn;
|
|
1668
|
+
getMeasure(): MMeasure;
|
|
1669
|
+
getStaff(): MStaff;
|
|
1642
1670
|
}
|
|
1643
1671
|
declare class MRhythmColumn extends MusicInterface {
|
|
1644
1672
|
private readonly obj;
|
|
@@ -1648,6 +1676,8 @@ declare class MRhythmColumn extends MusicInterface {
|
|
|
1648
1676
|
/** @internal */
|
|
1649
1677
|
getMusicObject(): ObjRhythmColumn;
|
|
1650
1678
|
getRhythmSymbol(voiceId: number): MNoteGroup | MRest | undefined;
|
|
1679
|
+
getMeasure(): MMeasure;
|
|
1680
|
+
getVoiceSymbol(voiceId: VoiceId): MNoteGroup | MRest | undefined;
|
|
1651
1681
|
}
|
|
1652
1682
|
declare class MScoreRow extends MusicInterface {
|
|
1653
1683
|
private readonly obj;
|
|
@@ -1656,7 +1686,9 @@ declare class MScoreRow extends MusicInterface {
|
|
|
1656
1686
|
constructor(obj: ObjScoreRow);
|
|
1657
1687
|
/** @internal */
|
|
1658
1688
|
getMusicObject(): ObjScoreRow;
|
|
1689
|
+
getDocument(): MDocument;
|
|
1659
1690
|
getMeasures(): ReadonlyArray<MMeasure>;
|
|
1691
|
+
getNotationLines(): ReadonlyArray<MStaff | MTab>;
|
|
1660
1692
|
}
|
|
1661
1693
|
declare class MStaff extends MusicInterface {
|
|
1662
1694
|
private readonly obj;
|
|
@@ -1665,6 +1697,9 @@ declare class MStaff extends MusicInterface {
|
|
|
1665
1697
|
constructor(obj: ObjStaff);
|
|
1666
1698
|
/** @internal */
|
|
1667
1699
|
getMusicObject(): ObjStaff;
|
|
1700
|
+
getId(): number;
|
|
1701
|
+
getName(): string | undefined;
|
|
1702
|
+
getRow(): MScoreRow;
|
|
1668
1703
|
}
|
|
1669
1704
|
declare class MTab extends MusicInterface {
|
|
1670
1705
|
private readonly obj;
|
|
@@ -1673,6 +1708,9 @@ declare class MTab extends MusicInterface {
|
|
|
1673
1708
|
constructor(obj: ObjTab);
|
|
1674
1709
|
/** @internal */
|
|
1675
1710
|
getMusicObject(): ObjTab;
|
|
1711
|
+
getId(): number;
|
|
1712
|
+
getName(): string | undefined;
|
|
1713
|
+
getRow(): MScoreRow;
|
|
1676
1714
|
}
|
|
1677
1715
|
declare class MSignature extends MusicInterface {
|
|
1678
1716
|
private readonly obj;
|
|
@@ -1681,6 +1719,7 @@ declare class MSignature extends MusicInterface {
|
|
|
1681
1719
|
constructor(obj: ObjSignature);
|
|
1682
1720
|
/** @internal */
|
|
1683
1721
|
getMusicObject(): ObjSignature;
|
|
1722
|
+
getStaff(): MStaff;
|
|
1684
1723
|
}
|
|
1685
1724
|
declare class MSpecialText extends MusicInterface {
|
|
1686
1725
|
private readonly obj;
|
|
@@ -1689,6 +1728,7 @@ declare class MSpecialText extends MusicInterface {
|
|
|
1689
1728
|
constructor(obj: ObjSpecialText);
|
|
1690
1729
|
/** @internal */
|
|
1691
1730
|
getMusicObject(): ObjSpecialText;
|
|
1731
|
+
getText(): string;
|
|
1692
1732
|
}
|
|
1693
1733
|
declare class MText extends MusicInterface {
|
|
1694
1734
|
private readonly obj;
|
package/dist/pieces/index.d.mts
CHANGED
package/dist/pieces/index.d.ts
CHANGED
package/dist/pieces/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/pieces/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/* WebMusicScore v3.
|
|
2
|
-
import "../chunk-
|
|
1
|
+
/* WebMusicScore v3.2.0 | (c) 2023 PahkaSoft | MIT License | Includes: Tone.js (MIT License) */
|
|
2
|
+
import "../chunk-LCTM7BID.mjs";
|
|
3
3
|
|
|
4
4
|
// src/pieces/frere-jacques.ts
|
|
5
5
|
import { NoteLength, ScaleType } from "@tspro/web-music-score/theory";
|
|
@@ -3,7 +3,7 @@ import * as React from 'react';
|
|
|
3
3
|
import { c as Scale, S as ScaleType } from '../scale-DRR-t4Kr.mjs';
|
|
4
4
|
import { b as PitchNotation, G as GuitarNoteLabel, N as Note } from '../note-BFa43I86.mjs';
|
|
5
5
|
import { H as Handedness } from '../guitar-DggbM2UL.mjs';
|
|
6
|
-
import { D as DivRect, M as MDocument, i as ScoreEventListener, W as MRenderer, X as MPlaybackButtons } from '../interface-
|
|
6
|
+
import { D as DivRect, M as MDocument, i as ScoreEventListener, W as MRenderer, X as MPlaybackButtons } from '../interface-Bn5HFt_U.mjs';
|
|
7
7
|
import '../tempo-B4h5Ktob.mjs';
|
|
8
8
|
import '@tspro/ts-utils-lib';
|
|
9
9
|
|
package/dist/react-ui/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as React from 'react';
|
|
|
3
3
|
import { c as Scale, S as ScaleType } from '../scale-ebJm37q1.js';
|
|
4
4
|
import { b as PitchNotation, G as GuitarNoteLabel, N as Note } from '../note-BFa43I86.js';
|
|
5
5
|
import { H as Handedness } from '../guitar-C2Cp71NZ.js';
|
|
6
|
-
import { D as DivRect, M as MDocument, i as ScoreEventListener, W as MRenderer, X as MPlaybackButtons } from '../interface-
|
|
6
|
+
import { D as DivRect, M as MDocument, i as ScoreEventListener, W as MRenderer, X as MPlaybackButtons } from '../interface-BlNl69uT.js';
|
|
7
7
|
import '../tempo-DgqDEsn0.js';
|
|
8
8
|
import '@tspro/ts-utils-lib';
|
|
9
9
|
|
package/dist/react-ui/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 __create = Object.create;
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist/react-ui/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/react-ui/circle-of-fifths.tsx
|
|
7
7
|
import * as React from "react";
|
package/dist/score/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as StaffPreset, a as ScoreConfiguration, M as MDocument, N as NoteOptions, R as RestOptions, F as Fermata, b as StaffTabOrGroups, c as Navigation, L as Label, A as Annotation, C as Connective, T as TieType, d as NoteAnchor, V as VerticalPosition } from '../interface-
|
|
2
|
-
export { a4 as Arpeggio, Y as Clef, a5 as ConnectiveSpan, D as DivRect, k as MAccidental, m as MArpeggio, v as MBarLineLeft, u as MBarLineRight, n as MBeamGroup, l as MConnective, p as MEnding, Q as MExtensionLine, q as MFermata, r as MHeader, s as MImage, t as MMeasure, x as MNoteGroup, X as MPlaybackButtons, U as MPlayer, W as MRenderer, B as MRest, G as MRhythmColumn, H as MScoreRow, K as MSignature, O as MSpecialText, I as MStaff, o as MStaffBeamGroup, y as MStaffNoteGroup, E as MStaffRest, w as MStaffTabBarLine, J as MTab, z as MTabNoteGroup, P as MText, j as MusicInterface, a7 as PlayState, a8 as PlayStateChangeListener, f as ScoreEvent, i as ScoreEventListener, e as ScoreEventType, h as ScoreObjectEvent, g as ScoreStaffPosEvent, Z as StaffConfig, a6 as StaffTabOrGroup, a3 as Stem, a1 as StringNumber, _ as TabConfig, $ as VoiceId, a2 as getStringNumbers, a0 as getVoiceIds } from '../interface-
|
|
1
|
+
import { S as StaffPreset, a as ScoreConfiguration, M as MDocument, N as NoteOptions, R as RestOptions, F as Fermata, b as StaffTabOrGroups, c as Navigation, L as Label, A as Annotation, C as Connective, T as TieType, d as NoteAnchor, V as VerticalPosition } from '../interface-Bn5HFt_U.mjs';
|
|
2
|
+
export { a4 as Arpeggio, Y as Clef, a5 as ConnectiveSpan, D as DivRect, k as MAccidental, m as MArpeggio, v as MBarLineLeft, u as MBarLineRight, n as MBeamGroup, l as MConnective, p as MEnding, Q as MExtensionLine, q as MFermata, r as MHeader, s as MImage, t as MMeasure, x as MNoteGroup, X as MPlaybackButtons, U as MPlayer, W as MRenderer, B as MRest, G as MRhythmColumn, H as MScoreRow, K as MSignature, O as MSpecialText, I as MStaff, o as MStaffBeamGroup, y as MStaffNoteGroup, E as MStaffRest, w as MStaffTabBarLine, J as MTab, z as MTabNoteGroup, P as MText, j as MusicInterface, a7 as PlayState, a8 as PlayStateChangeListener, f as ScoreEvent, i as ScoreEventListener, e as ScoreEventType, h as ScoreObjectEvent, g as ScoreStaffPosEvent, Z as StaffConfig, a6 as StaffTabOrGroup, a3 as Stem, a1 as StringNumber, _ as TabConfig, $ as VoiceId, a2 as getStringNumbers, a0 as getVoiceIds } from '../interface-Bn5HFt_U.mjs';
|
|
3
3
|
import { N as Note } from '../note-BFa43I86.mjs';
|
|
4
4
|
import { S as ScaleType, c as Scale } from '../scale-DRR-t4Kr.mjs';
|
|
5
5
|
import { K as KeySignature, a as TimeSignature, T as TimeSignatureString, N as NoteLength } from '../tempo-B4h5Ktob.mjs';
|
package/dist/score/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as StaffPreset, a as ScoreConfiguration, M as MDocument, N as NoteOptions, R as RestOptions, F as Fermata, b as StaffTabOrGroups, c as Navigation, L as Label, A as Annotation, C as Connective, T as TieType, d as NoteAnchor, V as VerticalPosition } from '../interface-
|
|
2
|
-
export { a4 as Arpeggio, Y as Clef, a5 as ConnectiveSpan, D as DivRect, k as MAccidental, m as MArpeggio, v as MBarLineLeft, u as MBarLineRight, n as MBeamGroup, l as MConnective, p as MEnding, Q as MExtensionLine, q as MFermata, r as MHeader, s as MImage, t as MMeasure, x as MNoteGroup, X as MPlaybackButtons, U as MPlayer, W as MRenderer, B as MRest, G as MRhythmColumn, H as MScoreRow, K as MSignature, O as MSpecialText, I as MStaff, o as MStaffBeamGroup, y as MStaffNoteGroup, E as MStaffRest, w as MStaffTabBarLine, J as MTab, z as MTabNoteGroup, P as MText, j as MusicInterface, a7 as PlayState, a8 as PlayStateChangeListener, f as ScoreEvent, i as ScoreEventListener, e as ScoreEventType, h as ScoreObjectEvent, g as ScoreStaffPosEvent, Z as StaffConfig, a6 as StaffTabOrGroup, a3 as Stem, a1 as StringNumber, _ as TabConfig, $ as VoiceId, a2 as getStringNumbers, a0 as getVoiceIds } from '../interface-
|
|
1
|
+
import { S as StaffPreset, a as ScoreConfiguration, M as MDocument, N as NoteOptions, R as RestOptions, F as Fermata, b as StaffTabOrGroups, c as Navigation, L as Label, A as Annotation, C as Connective, T as TieType, d as NoteAnchor, V as VerticalPosition } from '../interface-BlNl69uT.js';
|
|
2
|
+
export { a4 as Arpeggio, Y as Clef, a5 as ConnectiveSpan, D as DivRect, k as MAccidental, m as MArpeggio, v as MBarLineLeft, u as MBarLineRight, n as MBeamGroup, l as MConnective, p as MEnding, Q as MExtensionLine, q as MFermata, r as MHeader, s as MImage, t as MMeasure, x as MNoteGroup, X as MPlaybackButtons, U as MPlayer, W as MRenderer, B as MRest, G as MRhythmColumn, H as MScoreRow, K as MSignature, O as MSpecialText, I as MStaff, o as MStaffBeamGroup, y as MStaffNoteGroup, E as MStaffRest, w as MStaffTabBarLine, J as MTab, z as MTabNoteGroup, P as MText, j as MusicInterface, a7 as PlayState, a8 as PlayStateChangeListener, f as ScoreEvent, i as ScoreEventListener, e as ScoreEventType, h as ScoreObjectEvent, g as ScoreStaffPosEvent, Z as StaffConfig, a6 as StaffTabOrGroup, a3 as Stem, a1 as StringNumber, _ as TabConfig, $ as VoiceId, a2 as getStringNumbers, a0 as getVoiceIds } from '../interface-BlNl69uT.js';
|
|
3
3
|
import { N as Note } from '../note-BFa43I86.js';
|
|
4
4
|
import { S as ScaleType, c as Scale } from '../scale-ebJm37q1.js';
|
|
5
5
|
import { K as KeySignature, a as TimeSignature, T as TimeSignatureString, N as NoteLength } from '../tempo-DgqDEsn0.js';
|