@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.
Files changed (43) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +5 -3
  3. package/dist/audio/index.d.mts +1 -8
  4. package/dist/audio/index.d.ts +1 -8
  5. package/dist/audio/index.js +1 -1
  6. package/dist/audio/index.mjs +2 -2
  7. package/dist/audio-cg/index.d.mts +0 -1
  8. package/dist/audio-cg/index.d.ts +0 -1
  9. package/dist/audio-cg/index.js +1 -1
  10. package/dist/audio-cg/index.mjs +2 -2
  11. package/dist/{chunk-B4J3KED2.mjs → chunk-LCTM7BID.mjs} +2 -2
  12. package/dist/core/index.d.mts +0 -3
  13. package/dist/core/index.d.ts +0 -3
  14. package/dist/core/index.js +2 -2
  15. package/dist/core/index.mjs +3 -3
  16. package/dist/{guitar-BIFwFT31.d.ts → guitar-C2Cp71NZ.d.ts} +1 -8
  17. package/dist/{guitar-zASF7B1g.d.mts → guitar-DggbM2UL.d.mts} +1 -8
  18. package/dist/iife/index.global.js +11 -11
  19. package/dist/{interface-DprVf__B.d.ts → interface-BlNl69uT.d.ts} +57 -77
  20. package/dist/{interface-BedxdQDE.d.mts → interface-Bn5HFt_U.d.mts} +57 -77
  21. package/dist/{note-B5ZtlHc8.d.mts → note-BFa43I86.d.mts} +0 -14
  22. package/dist/{note-B5ZtlHc8.d.ts → note-BFa43I86.d.ts} +0 -14
  23. package/dist/pieces/index.d.mts +3 -6
  24. package/dist/pieces/index.d.ts +3 -6
  25. package/dist/pieces/index.js +1 -1
  26. package/dist/pieces/index.mjs +2 -2
  27. package/dist/react-ui/index.d.mts +5 -23
  28. package/dist/react-ui/index.d.ts +5 -23
  29. package/dist/react-ui/index.js +1 -1
  30. package/dist/react-ui/index.mjs +2 -2
  31. package/dist/{scale-B_2MZaT9.d.ts → scale-DRR-t4Kr.d.mts} +2 -15
  32. package/dist/{scale-C-YS5iVG.d.mts → scale-ebJm37q1.d.ts} +2 -15
  33. package/dist/score/index.d.mts +18 -18
  34. package/dist/score/index.d.ts +18 -18
  35. package/dist/score/index.js +376 -229
  36. package/dist/score/index.mjs +377 -230
  37. package/dist/{tempo-TjQKn46X.d.mts → tempo-B4h5Ktob.d.mts} +1 -17
  38. package/dist/{tempo-DoJd-UYT.d.ts → tempo-DgqDEsn0.d.ts} +1 -17
  39. package/dist/theory/index.d.mts +6 -8
  40. package/dist/theory/index.d.ts +6 -8
  41. package/dist/theory/index.js +1 -1
  42. package/dist/theory/index.mjs +2 -2
  43. package/package.json +1 -1
@@ -1,10 +1,8 @@
1
- import { N as Note, A as Accidental } from './note-B5ZtlHc8.mjs';
2
- import { R as RhythmProps, N as NoteLength, c as Tempo, K as KeySignature, a as TimeSignature, T as TimeSignatureString } from './tempo-TjQKn46X.mjs';
1
+ import { N as Note, A as Accidental } from './note-BFa43I86.mjs';
2
+ import { R as RhythmProps, N as NoteLength, c as Tempo, K as KeySignature, a as TimeSignature, T as TimeSignatureString } from './tempo-B4h5Ktob.mjs';
3
3
  import { Vec2 } from '@tspro/ts-utils-lib';
4
4
 
5
5
  /**
6
- * @public
7
- *
8
6
  * DivRect class, left, top, right, bottom rectangle divided into four sections by centerX, centerY.
9
7
  */
10
8
  declare class DivRect {
@@ -199,7 +197,6 @@ declare class DivRect {
199
197
  getRect(): DivRect;
200
198
  }
201
199
 
202
- /** @public */
203
200
  declare enum StaffPreset {
204
201
  /** Treble staff has treble (G-) clef. */
205
202
  Treble = 1,
@@ -209,15 +206,15 @@ declare enum StaffPreset {
209
206
  Grand = 3,
210
207
  /** GuitarTreble has treble clef but is one octave lower. */
211
208
  GuitarTreble = 4,
209
+ /** GuitarTab has tab for guitar. */
212
210
  GuitarTab = 8,
211
+ /** GuitarCombined has treble clef and tab for guitar. */
213
212
  GuitarCombined = 12
214
213
  }
215
- /** @public */
216
214
  declare enum Clef {
217
215
  G = "G",
218
216
  F = "F"
219
217
  }
220
- /** @public */
221
218
  type StaffConfig = {
222
219
  type: "staff";
223
220
  clef: Clef;
@@ -228,40 +225,30 @@ type StaffConfig = {
228
225
  voiceIds?: number[];
229
226
  isGrand?: boolean;
230
227
  };
231
- /** @public */
232
228
  type TabConfig = {
233
229
  type: "tab";
234
230
  name?: string;
235
231
  tuning?: string | string[];
236
232
  voiceIds?: number[];
237
233
  };
238
- /** @public */
239
234
  type ScoreConfiguration = StaffConfig | TabConfig | (StaffConfig | TabConfig)[];
240
- /** @public */
241
235
  type VoiceId = 0 | 1 | 2 | 3;
242
- /** @public */
243
236
  declare function getVoiceIds(): ReadonlyArray<VoiceId>;
244
- /** @public */
245
237
  type StringNumber = 1 | 2 | 3 | 4 | 5 | 6;
246
- /** @public */
247
238
  declare function getStringNumbers(): ReadonlyArray<StringNumber>;
248
- /** @public */
249
239
  declare enum Stem {
250
240
  Auto = 0,
251
241
  Up = 1,
252
242
  Down = 2
253
243
  }
254
- /** @public */
255
244
  declare enum Arpeggio {
256
245
  Up = 0,
257
246
  Down = 1
258
247
  }
259
- /** @public */
260
248
  declare enum TieType {
261
249
  Stub = -1,
262
250
  ToMeasureEnd = -2
263
251
  }
264
- /** @public */
265
252
  declare enum NoteAnchor {
266
253
  Auto = 0,
267
254
  Above = 1,
@@ -269,22 +256,20 @@ declare enum NoteAnchor {
269
256
  Below = 3,
270
257
  StemTip = 4
271
258
  }
272
- /** @public */
273
259
  declare enum Connective {
274
260
  Tie = 0,
275
261
  Slur = 1,
276
262
  Slide = 2
277
263
  }
278
- /** @public */
279
264
  type ConnectiveSpan = number | TieType;
280
- /** @public */
281
265
  declare enum VerticalPosition {
282
266
  Above = 0,
283
267
  Below = 1,
284
268
  Both = 2,
285
269
  Auto = 3
286
270
  }
287
- /** @public */
271
+ type StaffTabOrGroup = number | string;
272
+ type StaffTabOrGroups = StaffTabOrGroup | StaffTabOrGroup[];
288
273
  type NoteOptions = {
289
274
  dotted?: boolean;
290
275
  stem?: Stem;
@@ -295,7 +280,6 @@ type NoteOptions = {
295
280
  triplet?: boolean;
296
281
  string?: StringNumber | StringNumber[];
297
282
  };
298
- /** @public */
299
283
  type RestOptions = {
300
284
  dotted?: boolean;
301
285
  staffPos?: Note | string | number;
@@ -303,20 +287,16 @@ type RestOptions = {
303
287
  hide?: boolean;
304
288
  triplet?: boolean;
305
289
  };
306
- /** @public */
307
290
  declare enum PlayState {
308
291
  Playing = 0,
309
292
  Paused = 1,
310
293
  Stopped = 2
311
294
  }
312
- /** @public */
313
295
  type PlayStateChangeListener = (playState: PlayState) => void;
314
- /** @public */
315
296
  declare enum Fermata {
316
297
  AtNote = 0,
317
298
  AtMeasureEnd = 1
318
299
  }
319
- /** @public */
320
300
  declare enum Navigation {
321
301
  /** Repeat back to beginning and play to the "Fine" marking. */
322
302
  DC_al_Fine = 0,
@@ -341,14 +321,12 @@ declare enum Navigation {
341
321
  /** Jump to ending with correct passage number. */
342
322
  Ending = 10
343
323
  }
344
- /** @public */
345
324
  declare enum Annotation {
346
325
  /** "ppp", "pp", "p", "mp", "m", "mf", "f", "ff", "fff", "cresc.", "decresc.", "dim." */
347
326
  Dynamics = 0,
348
327
  /** "accel.", "rit.", "a tempo" */
349
328
  Tempo = 1
350
329
  }
351
- /** @public */
352
330
  declare enum Label {
353
331
  /** "C", "C#", "Db", "D", etc. */
354
332
  Note = 0,
@@ -839,11 +817,12 @@ declare enum BarLineType {
839
817
  EndStartRepeat = 6
840
818
  }
841
819
  declare class ObjStaffTabBarLine extends MusicObject {
820
+ readonly barLine: ObjBarLine;
842
821
  readonly line: ObjNotationLine;
843
822
  lineRects: DivRect[];
844
823
  dotRects: DivRect[];
845
824
  readonly mi: MStaffTabBarLine;
846
- constructor(line: ObjNotationLine);
825
+ constructor(barLine: ObjBarLine, line: ObjNotationLine);
847
826
  getMusicInterface(): MusicInterface;
848
827
  pick(x: number, y: number): MusicObject[];
849
828
  setRect(r: DivRect): void;
@@ -979,26 +958,26 @@ declare class ObjMeasure extends MusicObject {
979
958
  hasPostMeasureBreak(): boolean;
980
959
  getPostMeasureBreakWidth(): number;
981
960
  private addLayoutObject;
982
- addFermata(staffTabOrGroup: number | string | undefined, fermata: Fermata): void;
961
+ private forEachStaffGroup;
962
+ addFermata(staffTabOrGroups: StaffTabOrGroups | undefined, fermata: Fermata): void;
983
963
  hasFermata(anchor: ObjRhythmColumn | ObjBarLineRight): boolean;
984
- addNavigation(staffTabOrGroup: number | string | undefined, navigation: Navigation, ...args: unknown[]): void;
964
+ addNavigation(staffTabOrGroups: StaffTabOrGroups | undefined, navigation: Navigation, ...args: unknown[]): void;
985
965
  hasNavigation(n: Navigation): boolean;
986
- getEnding(): ObjEnding | undefined;
987
- getEndRepeatPlayCount(): number;
966
+ addAnnotation(staffTabOrGroups: StaffTabOrGroups | undefined, annotation: Annotation, text: string): void;
967
+ addLabel(staffTabOrGroups: StaffTabOrGroups | undefined, label: Label, text: string): void;
988
968
  addConnective(connective: Connective.Tie, tieSpan?: number | TieType, notAnchor?: NoteAnchor): void;
989
969
  addConnective(connective: Connective.Slur, slurSpan?: number, notAnchor?: NoteAnchor): void;
990
970
  addConnective(connective: Connective.Slide, notAnchor?: NoteAnchor): void;
991
- private forEachStaffGroup;
992
- addLabel(staffTabOrGroup: number | string | undefined, label: Label, text: string): void;
993
- addAnnotation(staffTabOrGroup: number | string | undefined, annotation: Annotation, text: string): void;
971
+ addExtension(extensionLength: number, extensionVisible: boolean): void;
972
+ private enableExtension;
973
+ private disableExtension;
974
+ getEnding(): ObjEnding | undefined;
975
+ getEndRepeatPlayCount(): number;
994
976
  endSong(): void;
995
977
  hasEndSong(): boolean;
996
978
  endSection(): void;
997
979
  hasEndSection(): boolean;
998
980
  endRow(): void;
999
- private enableExtension;
1000
- private disableExtension;
1001
- addExtension(extensionLength: number, extensionVisible: boolean): void;
1002
981
  private addRhythmSymbol;
1003
982
  addNoteGroup(voiceId: number, notes: (Note | string)[], noteLength: NoteLength, options?: NoteOptions): void;
1004
983
  addRest(voiceId: number, restLength: NoteLength, options?: RestOptions): void;
@@ -1025,6 +1004,7 @@ declare class ObjMeasure extends MusicObject {
1025
1004
  createExtensions(): void;
1026
1005
  addBeamGroup(beam: ObjBeamGroup): void;
1027
1006
  requestBeamsUpdate(): void;
1007
+ private createOldStyleTriplets;
1028
1008
  createBeams(): void;
1029
1009
  private static setupBeamGroup;
1030
1010
  getBarLineLeft(): ObjBarLineLeft;
@@ -1120,6 +1100,8 @@ declare class ObjDocument extends MusicObject {
1120
1100
  private addNewRow;
1121
1101
  getFirstRow(): ObjScoreRow;
1122
1102
  getLastRow(): ObjScoreRow;
1103
+ getRows(): ReadonlyArray<ObjScoreRow>;
1104
+ getMeasures(): ReadonlyArray<ObjMeasure>;
1123
1105
  requestNewRow(): void;
1124
1106
  addMeasure(): ObjMeasure;
1125
1107
  addStaffGroup(groupName: string, layoutElements: number | string | (number | string)[], verticalPosition: VerticalPosition): void;
@@ -1281,11 +1263,12 @@ type ExtensionLineLeftObj = ObjBarLineLeft | MusicObject;
1281
1263
  type ExtensionLineRightObj = ObjRhythmColumn | ObjBarLineRight;
1282
1264
  declare class ObjExtensionLine extends MusicObject {
1283
1265
  readonly measure: ObjMeasure;
1266
+ readonly line: ObjNotationLine;
1284
1267
  readonly extension: Extension;
1285
1268
  readonly leftObj: ExtensionLineLeftObj;
1286
1269
  readonly rightObj: ExtensionLineRightObj;
1287
1270
  readonly mi: MExtensionLine;
1288
- constructor(measure: ObjMeasure, extension: Extension, leftObj: ExtensionLineLeftObj, rightObj: ExtensionLineRightObj);
1271
+ constructor(measure: ObjMeasure, line: ObjNotationLine, extension: Extension, leftObj: ExtensionLineLeftObj, rightObj: ExtensionLineRightObj);
1289
1272
  get row(): ObjScoreRow;
1290
1273
  getMusicInterface(): MExtensionLine;
1291
1274
  private getLineLeft;
@@ -1467,21 +1450,17 @@ declare class ObjSignature extends MusicObject {
1467
1450
  draw(renderer: Renderer): void;
1468
1451
  }
1469
1452
 
1470
- /** @public */
1471
1453
  type ScoreEventType = "enter" | "leave" | "click";
1472
- /** @public */
1473
1454
  declare abstract class ScoreEvent {
1474
1455
  readonly type: ScoreEventType;
1475
1456
  constructor(type: ScoreEventType);
1476
1457
  }
1477
- /** @public */
1478
1458
  declare class ScoreStaffPosEvent extends ScoreEvent {
1479
1459
  readonly renderer: MRenderer;
1480
1460
  readonly scoreRow: MScoreRow;
1481
1461
  readonly diatonicId: number;
1482
1462
  constructor(type: ScoreEventType, renderer: MRenderer, scoreRow: MScoreRow, diatonicId: number);
1483
1463
  }
1484
- /** @public */
1485
1464
  declare class ScoreObjectEvent extends ScoreEvent {
1486
1465
  readonly renderer: MRenderer;
1487
1466
  readonly objects: MusicInterface[];
@@ -1489,10 +1468,8 @@ declare class ScoreObjectEvent extends ScoreEvent {
1489
1468
  get topObject(): MusicInterface;
1490
1469
  findObject(fn: (obj: MusicInterface) => boolean): MusicInterface | undefined;
1491
1470
  }
1492
- /** @public */
1493
1471
  type ScoreEventListener = (event: ScoreEvent) => void;
1494
1472
 
1495
- /** @public */
1496
1473
  declare abstract class MusicInterface {
1497
1474
  readonly name: string;
1498
1475
  constructor(name: string);
@@ -1500,7 +1477,6 @@ declare abstract class MusicInterface {
1500
1477
  abstract getMusicObject(): MusicObject;
1501
1478
  getParent(): MusicInterface | undefined;
1502
1479
  }
1503
- /** @public */
1504
1480
  declare class MAccidental extends MusicInterface {
1505
1481
  private readonly obj;
1506
1482
  static readonly Name = "Accidental";
@@ -1510,7 +1486,6 @@ declare class MAccidental extends MusicInterface {
1510
1486
  getMusicObject(): ObjAccidental;
1511
1487
  getAccidental(): Accidental;
1512
1488
  }
1513
- /** @public */
1514
1489
  declare class MConnective extends MusicInterface {
1515
1490
  private readonly obj;
1516
1491
  static readonly Name = "Connective";
@@ -1519,7 +1494,6 @@ declare class MConnective extends MusicInterface {
1519
1494
  /** @internal */
1520
1495
  getMusicObject(): ObjConnective;
1521
1496
  }
1522
- /** @public */
1523
1497
  declare class MArpeggio extends MusicInterface {
1524
1498
  private readonly obj;
1525
1499
  static readonly Name = "Arpeggio";
@@ -1527,8 +1501,9 @@ declare class MArpeggio extends MusicInterface {
1527
1501
  constructor(obj: ObjArpeggio);
1528
1502
  /** @internal */
1529
1503
  getMusicObject(): ObjArpeggio;
1504
+ getRhythmColumn(): MRhythmColumn;
1505
+ getNotationLine(): MStaff | MTab;
1530
1506
  }
1531
- /** @public */
1532
1507
  declare class MBeamGroup extends MusicInterface {
1533
1508
  private readonly obj;
1534
1509
  static readonly Name = "BeamGroup";
@@ -1537,7 +1512,6 @@ declare class MBeamGroup extends MusicInterface {
1537
1512
  /** @internal */
1538
1513
  getMusicObject(): ObjBeamGroup;
1539
1514
  }
1540
- /** @public */
1541
1515
  declare class MStaffBeamGroup extends MusicInterface {
1542
1516
  private readonly obj;
1543
1517
  static readonly Name = "StaffBeamGroup";
@@ -1545,8 +1519,8 @@ declare class MStaffBeamGroup extends MusicInterface {
1545
1519
  constructor(obj: ObjStaffBeamGroup);
1546
1520
  /** @internal */
1547
1521
  getMusicObject(): ObjStaffBeamGroup;
1522
+ getStaff(): MStaff;
1548
1523
  }
1549
- /** @public */
1550
1524
  declare class MDocument extends MusicInterface {
1551
1525
  private readonly obj;
1552
1526
  static readonly Name = "Document";
@@ -1557,9 +1531,10 @@ declare class MDocument extends MusicInterface {
1557
1531
  getTitle(): string | undefined;
1558
1532
  getComposer(): string | undefined;
1559
1533
  getArranger(): string | undefined;
1534
+ getRows(): ReadonlyArray<MScoreRow>;
1535
+ getMeasures(): ReadonlyArray<MMeasure>;
1560
1536
  play(fn?: PlayStateChangeListener): MPlayer;
1561
1537
  }
1562
- /** @public */
1563
1538
  declare class MEnding extends MusicInterface {
1564
1539
  private readonly obj;
1565
1540
  static readonly Name = "Ending";
@@ -1570,7 +1545,6 @@ declare class MEnding extends MusicInterface {
1570
1545
  getPassages(): ReadonlyArray<number>;
1571
1546
  hasPassage(passage: number): boolean;
1572
1547
  }
1573
- /** @public */
1574
1548
  declare class MFermata extends MusicInterface {
1575
1549
  private readonly obj;
1576
1550
  static readonly Name = "Fermata";
@@ -1579,7 +1553,6 @@ declare class MFermata extends MusicInterface {
1579
1553
  /** @internal */
1580
1554
  getMusicObject(): ObjFermata;
1581
1555
  }
1582
- /** @public */
1583
1556
  declare class MHeader extends MusicInterface {
1584
1557
  private readonly obj;
1585
1558
  static readonly Name = "Header";
@@ -1591,7 +1564,6 @@ declare class MHeader extends MusicInterface {
1591
1564
  getComposer(): string | undefined;
1592
1565
  getArranger(): string | undefined;
1593
1566
  }
1594
- /** @public */
1595
1567
  declare class MImage extends MusicInterface {
1596
1568
  private readonly obj;
1597
1569
  static readonly Name = "Image";
@@ -1600,7 +1572,6 @@ declare class MImage extends MusicInterface {
1600
1572
  /** @internal */
1601
1573
  getMusicObject(): ObjImage;
1602
1574
  }
1603
- /** @public */
1604
1575
  declare class MMeasure extends MusicInterface {
1605
1576
  private readonly obj;
1606
1577
  static readonly Name = "Measure";
@@ -1610,8 +1581,8 @@ declare class MMeasure extends MusicInterface {
1610
1581
  getMusicObject(): ObjMeasure;
1611
1582
  getMeasureNumber(): number;
1612
1583
  getRhythmColumns(): ReadonlyArray<MRhythmColumn>;
1584
+ getRow(): MScoreRow;
1613
1585
  }
1614
- /** @public */
1615
1586
  declare class MBarLineRight extends MusicInterface {
1616
1587
  private readonly obj;
1617
1588
  static readonly Name = "BarLineRight";
@@ -1620,7 +1591,6 @@ declare class MBarLineRight extends MusicInterface {
1620
1591
  /** @internal */
1621
1592
  getMusicObject(): ObjBarLineRight;
1622
1593
  }
1623
- /** @public */
1624
1594
  declare class MBarLineLeft extends MusicInterface {
1625
1595
  private readonly obj;
1626
1596
  static readonly Name = "BarLineLeft";
@@ -1629,7 +1599,6 @@ declare class MBarLineLeft extends MusicInterface {
1629
1599
  /** @internal */
1630
1600
  getMusicObject(): ObjBarLineLeft;
1631
1601
  }
1632
- /** @public */
1633
1602
  declare class MStaffTabBarLine extends MusicInterface {
1634
1603
  private readonly obj;
1635
1604
  static readonly Name = "StaffTabBarLine";
@@ -1637,8 +1606,9 @@ declare class MStaffTabBarLine extends MusicInterface {
1637
1606
  constructor(obj: ObjStaffTabBarLine);
1638
1607
  /** @internal */
1639
1608
  getMusicObject(): ObjStaffTabBarLine;
1609
+ getBarLine(): MBarLineLeft | MBarLineRight;
1610
+ getNotationLine(): MStaff | MTab;
1640
1611
  }
1641
- /** @public */
1642
1612
  declare class MNoteGroup extends MusicInterface {
1643
1613
  private readonly obj;
1644
1614
  static readonly Name = "NoteGroup";
@@ -1648,8 +1618,9 @@ declare class MNoteGroup extends MusicInterface {
1648
1618
  getMusicObject(): ObjNoteGroup;
1649
1619
  getNotes(): ReadonlyArray<Note>;
1650
1620
  getRhythmProps(): RhythmProps;
1621
+ getRhythmColumn(): MRhythmColumn;
1622
+ getMeasure(): MMeasure;
1651
1623
  }
1652
- /** @public */
1653
1624
  declare class MStaffNoteGroup extends MusicInterface {
1654
1625
  private readonly obj;
1655
1626
  static readonly Name = "StaffNoteGroup";
@@ -1658,8 +1629,10 @@ declare class MStaffNoteGroup extends MusicInterface {
1658
1629
  /** @internal */
1659
1630
  getMusicObject(): ObjStaffNoteGroup;
1660
1631
  getNoteGroup(): MNoteGroup;
1632
+ getRhythmColumn(): MRhythmColumn;
1633
+ getMeasure(): MMeasure;
1634
+ getStaff(): MStaff;
1661
1635
  }
1662
- /** @public */
1663
1636
  declare class MTabNoteGroup extends MusicInterface {
1664
1637
  private readonly obj;
1665
1638
  static readonly Name = "TabNoteGroup";
@@ -1668,8 +1641,10 @@ declare class MTabNoteGroup extends MusicInterface {
1668
1641
  /** @internal */
1669
1642
  getMusicObject(): ObjTabNoteGroup;
1670
1643
  getNoteGroup(): MNoteGroup;
1644
+ getRhythmColumn(): MRhythmColumn;
1645
+ getMeasure(): MMeasure;
1646
+ getTab(): MTab;
1671
1647
  }
1672
- /** @public */
1673
1648
  declare class MRest extends MusicInterface {
1674
1649
  private readonly obj;
1675
1650
  static readonly Name = "Rest";
@@ -1678,8 +1653,9 @@ declare class MRest extends MusicInterface {
1678
1653
  /** @internal */
1679
1654
  getMusicObject(): ObjRest;
1680
1655
  getRhythmProps(): RhythmProps;
1656
+ getRhythmColumn(): MRhythmColumn;
1657
+ getMeasure(): MMeasure;
1681
1658
  }
1682
- /** @public */
1683
1659
  declare class MStaffRest extends MusicInterface {
1684
1660
  private readonly obj;
1685
1661
  static readonly Name = "StaffRest";
@@ -1688,8 +1664,10 @@ declare class MStaffRest extends MusicInterface {
1688
1664
  /** @internal */
1689
1665
  getMusicObject(): ObjStaffRest;
1690
1666
  getRest(): MRest;
1667
+ getRhythmColumn(): MRhythmColumn;
1668
+ getMeasure(): MMeasure;
1669
+ getStaff(): MStaff;
1691
1670
  }
1692
- /** @public */
1693
1671
  declare class MRhythmColumn extends MusicInterface {
1694
1672
  private readonly obj;
1695
1673
  static readonly Name = "RhythmColumn";
@@ -1698,8 +1676,9 @@ declare class MRhythmColumn extends MusicInterface {
1698
1676
  /** @internal */
1699
1677
  getMusicObject(): ObjRhythmColumn;
1700
1678
  getRhythmSymbol(voiceId: number): MNoteGroup | MRest | undefined;
1679
+ getMeasure(): MMeasure;
1680
+ getVoiceSymbol(voiceId: VoiceId): MNoteGroup | MRest | undefined;
1701
1681
  }
1702
- /** @public */
1703
1682
  declare class MScoreRow extends MusicInterface {
1704
1683
  private readonly obj;
1705
1684
  static readonly Name = "ScoreRow";
@@ -1707,9 +1686,10 @@ declare class MScoreRow extends MusicInterface {
1707
1686
  constructor(obj: ObjScoreRow);
1708
1687
  /** @internal */
1709
1688
  getMusicObject(): ObjScoreRow;
1689
+ getDocument(): MDocument;
1710
1690
  getMeasures(): ReadonlyArray<MMeasure>;
1691
+ getNotationLines(): ReadonlyArray<MStaff | MTab>;
1711
1692
  }
1712
- /** @public */
1713
1693
  declare class MStaff extends MusicInterface {
1714
1694
  private readonly obj;
1715
1695
  static readonly Name = "Staff";
@@ -1717,8 +1697,10 @@ declare class MStaff extends MusicInterface {
1717
1697
  constructor(obj: ObjStaff);
1718
1698
  /** @internal */
1719
1699
  getMusicObject(): ObjStaff;
1700
+ getId(): number;
1701
+ getName(): string | undefined;
1702
+ getRow(): MScoreRow;
1720
1703
  }
1721
- /** @public */
1722
1704
  declare class MTab extends MusicInterface {
1723
1705
  private readonly obj;
1724
1706
  static readonly Name = "Tab";
@@ -1726,8 +1708,10 @@ declare class MTab extends MusicInterface {
1726
1708
  constructor(obj: ObjTab);
1727
1709
  /** @internal */
1728
1710
  getMusicObject(): ObjTab;
1711
+ getId(): number;
1712
+ getName(): string | undefined;
1713
+ getRow(): MScoreRow;
1729
1714
  }
1730
- /** @public */
1731
1715
  declare class MSignature extends MusicInterface {
1732
1716
  private readonly obj;
1733
1717
  static readonly Name = "Signature";
@@ -1735,8 +1719,8 @@ declare class MSignature extends MusicInterface {
1735
1719
  constructor(obj: ObjSignature);
1736
1720
  /** @internal */
1737
1721
  getMusicObject(): ObjSignature;
1722
+ getStaff(): MStaff;
1738
1723
  }
1739
- /** @public */
1740
1724
  declare class MSpecialText extends MusicInterface {
1741
1725
  private readonly obj;
1742
1726
  static readonly Name = "SpecialText";
@@ -1744,8 +1728,8 @@ declare class MSpecialText extends MusicInterface {
1744
1728
  constructor(obj: ObjSpecialText);
1745
1729
  /** @internal */
1746
1730
  getMusicObject(): ObjSpecialText;
1731
+ getText(): string;
1747
1732
  }
1748
- /** @public */
1749
1733
  declare class MText extends MusicInterface {
1750
1734
  private readonly obj;
1751
1735
  static readonly Name = "Text";
@@ -1755,7 +1739,6 @@ declare class MText extends MusicInterface {
1755
1739
  getMusicObject(): ObjText;
1756
1740
  getText(): string;
1757
1741
  }
1758
- /** @public */
1759
1742
  declare class MExtensionLine extends MusicInterface {
1760
1743
  private readonly obj;
1761
1744
  static readonly Name = "ExtensionLine";
@@ -1764,7 +1747,6 @@ declare class MExtensionLine extends MusicInterface {
1764
1747
  /** @internal */
1765
1748
  getMusicObject(): ObjExtensionLine;
1766
1749
  }
1767
- /** @public */
1768
1750
  declare class MPlayer {
1769
1751
  private static currentlyPlaying;
1770
1752
  private readonly player;
@@ -1774,7 +1756,6 @@ declare class MPlayer {
1774
1756
  pause(): this;
1775
1757
  stop(): this;
1776
1758
  }
1777
- /** @public */
1778
1759
  declare class MRenderer {
1779
1760
  private readonly renderer;
1780
1761
  constructor();
@@ -1788,7 +1769,6 @@ declare class MRenderer {
1788
1769
  }): void;
1789
1770
  draw(): void;
1790
1771
  }
1791
- /** @public */
1792
1772
  declare class MPlaybackButtons {
1793
1773
  private playButton?;
1794
1774
  private stopButton?;
@@ -1816,4 +1796,4 @@ declare class MPlaybackButtons {
1816
1796
  private static addOnClickListener;
1817
1797
  }
1818
1798
 
1819
- export { getVoiceIds as $, Annotation as A, MStaffRest as B, Connective as C, DivRect as D, MRhythmColumn as E, Fermata as F, MScoreRow as G, MStaff as H, MTab as I, MSignature as J, MSpecialText as K, Label as L, MDocument as M, type NoteOptions as N, MText as O, MExtensionLine as P, MPlayer as Q, type RestOptions as R, StaffPreset as S, TieType as T, MRenderer as U, VerticalPosition as V, MPlaybackButtons as W, Clef as X, type StaffConfig as Y, type TabConfig as Z, type VoiceId as _, type ScoreConfiguration as a, type StringNumber as a0, getStringNumbers as a1, Stem as a2, Arpeggio as a3, type ConnectiveSpan as a4, PlayState as a5, type PlayStateChangeListener as a6, Navigation as b, NoteAnchor as c, type ScoreEventType as d, ScoreEvent as e, ScoreStaffPosEvent as f, ScoreObjectEvent as g, type ScoreEventListener as h, MusicInterface as i, MAccidental as j, MConnective as k, MArpeggio as l, MBeamGroup as m, MStaffBeamGroup as n, MEnding as o, MFermata as p, MHeader as q, MImage as r, MMeasure as s, MBarLineRight as t, MBarLineLeft as u, MStaffTabBarLine as v, MNoteGroup as w, MStaffNoteGroup as x, MTabNoteGroup as y, MRest as z };
1799
+ export { type VoiceId as $, Annotation as A, MRest as B, Connective as C, DivRect as D, MStaffRest as E, Fermata as F, MRhythmColumn as G, MScoreRow as H, MStaff as I, MTab as J, MSignature as K, Label as L, MDocument as M, type NoteOptions as N, MSpecialText as O, MText as P, MExtensionLine as Q, type RestOptions as R, StaffPreset as S, TieType as T, MPlayer as U, VerticalPosition as V, MRenderer as W, MPlaybackButtons as X, Clef as Y, type StaffConfig as Z, type TabConfig as _, type ScoreConfiguration as a, getVoiceIds as a0, type StringNumber as a1, getStringNumbers as a2, Stem as a3, Arpeggio as a4, type ConnectiveSpan as a5, type StaffTabOrGroup as a6, PlayState as a7, type PlayStateChangeListener as a8, type StaffTabOrGroups as b, Navigation as c, NoteAnchor as d, type ScoreEventType as e, ScoreEvent as f, ScoreStaffPosEvent as g, ScoreObjectEvent as h, type ScoreEventListener as i, MusicInterface as j, MAccidental as k, MConnective as l, MArpeggio as m, MBeamGroup as n, MStaffBeamGroup as o, MEnding as p, MFermata as q, MHeader as r, MImage as s, MMeasure as t, MBarLineRight as u, MBarLineLeft as v, MStaffTabBarLine as w, MNoteGroup as x, MStaffNoteGroup as y, MTabNoteGroup as z };
@@ -1,45 +1,31 @@
1
- /** @public */
2
1
  declare enum SymbolSet {
3
2
  Ascii = 0,
4
3
  Unicode = 1
5
4
  }
6
- /** @public */
7
5
  declare enum PitchNotation {
8
6
  Scientific = 0,
9
7
  Helmholtz = 1
10
8
  }
11
- /** @public */
12
9
  declare const PitchNotationList: PitchNotation[];
13
- /** @public */
14
10
  declare const DefaultPitchNotation = PitchNotation.Scientific;
15
- /** @public */
16
11
  declare function validatePitchNotation(pn: unknown): PitchNotation;
17
- /** @public */
18
12
  declare function getPitchNotationName(pn: PitchNotation): string;
19
- /** @public */
20
13
  declare enum GuitarNoteLabel {
21
14
  Default = "Default",
22
15
  OmitOctave = "Omit Octave",
23
16
  Interval = "Interval"
24
17
  }
25
- /** @public */
26
18
  declare const DefaultGuitarNoteLabel = GuitarNoteLabel.Default;
27
- /** @public */
28
19
  declare const GuitarNoteLabelList: GuitarNoteLabel[];
29
- /** @public */
30
20
  declare function validateGuitarNoteLabel(label: string): GuitarNoteLabel;
31
21
 
32
- /** @public */
33
22
  type Accidental = -2 | -1 | 0 | 1 | 2;
34
- /** @public */
35
23
  type NoteLetter = "C" | "D" | "E" | "F" | "G" | "A" | "B";
36
- /** @public */
37
24
  type ParsedNote = {
38
25
  noteLetter: NoteLetter;
39
26
  accidental: Accidental;
40
27
  octave?: number;
41
28
  };
42
- /** @public */
43
29
  declare class Note {
44
30
  private static noteByNameCache;
45
31
  private static chromaticNoteCache;
@@ -1,45 +1,31 @@
1
- /** @public */
2
1
  declare enum SymbolSet {
3
2
  Ascii = 0,
4
3
  Unicode = 1
5
4
  }
6
- /** @public */
7
5
  declare enum PitchNotation {
8
6
  Scientific = 0,
9
7
  Helmholtz = 1
10
8
  }
11
- /** @public */
12
9
  declare const PitchNotationList: PitchNotation[];
13
- /** @public */
14
10
  declare const DefaultPitchNotation = PitchNotation.Scientific;
15
- /** @public */
16
11
  declare function validatePitchNotation(pn: unknown): PitchNotation;
17
- /** @public */
18
12
  declare function getPitchNotationName(pn: PitchNotation): string;
19
- /** @public */
20
13
  declare enum GuitarNoteLabel {
21
14
  Default = "Default",
22
15
  OmitOctave = "Omit Octave",
23
16
  Interval = "Interval"
24
17
  }
25
- /** @public */
26
18
  declare const DefaultGuitarNoteLabel = GuitarNoteLabel.Default;
27
- /** @public */
28
19
  declare const GuitarNoteLabelList: GuitarNoteLabel[];
29
- /** @public */
30
20
  declare function validateGuitarNoteLabel(label: string): GuitarNoteLabel;
31
21
 
32
- /** @public */
33
22
  type Accidental = -2 | -1 | 0 | 1 | 2;
34
- /** @public */
35
23
  type NoteLetter = "C" | "D" | "E" | "F" | "G" | "A" | "B";
36
- /** @public */
37
24
  type ParsedNote = {
38
25
  noteLetter: NoteLetter;
39
26
  accidental: Accidental;
40
27
  octave?: number;
41
28
  };
42
- /** @public */
43
29
  declare class Note {
44
30
  private static noteByNameCache;
45
31
  private static chromaticNoteCache;
@@ -1,15 +1,12 @@
1
- import { M as MDocument } from '../interface-BedxdQDE.mjs';
2
- import '../note-B5ZtlHc8.mjs';
3
- import '../tempo-TjQKn46X.mjs';
1
+ import { M as MDocument } from '../interface-Bn5HFt_U.mjs';
2
+ import '../note-BFa43I86.mjs';
3
+ import '../tempo-B4h5Ktob.mjs';
4
4
  import '@tspro/ts-utils-lib';
5
5
 
6
- /** @public */
7
6
  declare function createFrereJacques(): MDocument;
8
7
 
9
- /** @public */
10
8
  declare function createGreensleeves(): MDocument;
11
9
 
12
- /** @public */
13
10
  declare function createAndanteByDiabelli(): MDocument;
14
11
 
15
12
  export { createAndanteByDiabelli, createFrereJacques, createGreensleeves };
@@ -1,15 +1,12 @@
1
- import { M as MDocument } from '../interface-DprVf__B.js';
2
- import '../note-B5ZtlHc8.js';
3
- import '../tempo-DoJd-UYT.js';
1
+ import { M as MDocument } from '../interface-BlNl69uT.js';
2
+ import '../note-BFa43I86.js';
3
+ import '../tempo-DgqDEsn0.js';
4
4
  import '@tspro/ts-utils-lib';
5
5
 
6
- /** @public */
7
6
  declare function createFrereJacques(): MDocument;
8
7
 
9
- /** @public */
10
8
  declare function createGreensleeves(): MDocument;
11
9
 
12
- /** @public */
13
10
  declare function createAndanteByDiabelli(): MDocument;
14
11
 
15
12
  export { createAndanteByDiabelli, createFrereJacques, createGreensleeves };
@@ -1,4 +1,4 @@
1
- /* WebMusicScore v3.1.0 | (c) 2023 PahkaSoft | MIT License | Includes: Tone.js (MIT License) */
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;