@tspro/web-music-score 3.1.0 → 3.1.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 +5 -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-PU4J7K4Z.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-BedxdQDE.d.mts → interface-Bz_525zj.d.mts} +15 -75
- package/dist/{interface-DprVf__B.d.ts → interface-Fn8ufBQx.d.ts} +15 -75
- 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 +155 -150
- package/dist/score/index.mjs +156 -151
- 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,10 +1,8 @@
|
|
|
1
|
-
import { N as Note, A as Accidental } from './note-
|
|
2
|
-
import { R as RhythmProps, N as NoteLength, c as Tempo, K as KeySignature, a as TimeSignature, T as TimeSignatureString } from './tempo-
|
|
1
|
+
import { N as Note, A as Accidental } from './note-BFa43I86.js';
|
|
2
|
+
import { R as RhythmProps, N as NoteLength, c as Tempo, K as KeySignature, a as TimeSignature, T as TimeSignatureString } from './tempo-DgqDEsn0.js';
|
|
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,
|
|
@@ -212,12 +209,10 @@ declare enum StaffPreset {
|
|
|
212
209
|
GuitarTab = 8,
|
|
213
210
|
GuitarCombined = 12
|
|
214
211
|
}
|
|
215
|
-
/** @public */
|
|
216
212
|
declare enum Clef {
|
|
217
213
|
G = "G",
|
|
218
214
|
F = "F"
|
|
219
215
|
}
|
|
220
|
-
/** @public */
|
|
221
216
|
type StaffConfig = {
|
|
222
217
|
type: "staff";
|
|
223
218
|
clef: Clef;
|
|
@@ -228,40 +223,30 @@ type StaffConfig = {
|
|
|
228
223
|
voiceIds?: number[];
|
|
229
224
|
isGrand?: boolean;
|
|
230
225
|
};
|
|
231
|
-
/** @public */
|
|
232
226
|
type TabConfig = {
|
|
233
227
|
type: "tab";
|
|
234
228
|
name?: string;
|
|
235
229
|
tuning?: string | string[];
|
|
236
230
|
voiceIds?: number[];
|
|
237
231
|
};
|
|
238
|
-
/** @public */
|
|
239
232
|
type ScoreConfiguration = StaffConfig | TabConfig | (StaffConfig | TabConfig)[];
|
|
240
|
-
/** @public */
|
|
241
233
|
type VoiceId = 0 | 1 | 2 | 3;
|
|
242
|
-
/** @public */
|
|
243
234
|
declare function getVoiceIds(): ReadonlyArray<VoiceId>;
|
|
244
|
-
/** @public */
|
|
245
235
|
type StringNumber = 1 | 2 | 3 | 4 | 5 | 6;
|
|
246
|
-
/** @public */
|
|
247
236
|
declare function getStringNumbers(): ReadonlyArray<StringNumber>;
|
|
248
|
-
/** @public */
|
|
249
237
|
declare enum Stem {
|
|
250
238
|
Auto = 0,
|
|
251
239
|
Up = 1,
|
|
252
240
|
Down = 2
|
|
253
241
|
}
|
|
254
|
-
/** @public */
|
|
255
242
|
declare enum Arpeggio {
|
|
256
243
|
Up = 0,
|
|
257
244
|
Down = 1
|
|
258
245
|
}
|
|
259
|
-
/** @public */
|
|
260
246
|
declare enum TieType {
|
|
261
247
|
Stub = -1,
|
|
262
248
|
ToMeasureEnd = -2
|
|
263
249
|
}
|
|
264
|
-
/** @public */
|
|
265
250
|
declare enum NoteAnchor {
|
|
266
251
|
Auto = 0,
|
|
267
252
|
Above = 1,
|
|
@@ -269,22 +254,20 @@ declare enum NoteAnchor {
|
|
|
269
254
|
Below = 3,
|
|
270
255
|
StemTip = 4
|
|
271
256
|
}
|
|
272
|
-
/** @public */
|
|
273
257
|
declare enum Connective {
|
|
274
258
|
Tie = 0,
|
|
275
259
|
Slur = 1,
|
|
276
260
|
Slide = 2
|
|
277
261
|
}
|
|
278
|
-
/** @public */
|
|
279
262
|
type ConnectiveSpan = number | TieType;
|
|
280
|
-
/** @public */
|
|
281
263
|
declare enum VerticalPosition {
|
|
282
264
|
Above = 0,
|
|
283
265
|
Below = 1,
|
|
284
266
|
Both = 2,
|
|
285
267
|
Auto = 3
|
|
286
268
|
}
|
|
287
|
-
|
|
269
|
+
type StaffTabOrGroup = number | string;
|
|
270
|
+
type StaffTabOrGroups = StaffTabOrGroup | StaffTabOrGroup[];
|
|
288
271
|
type NoteOptions = {
|
|
289
272
|
dotted?: boolean;
|
|
290
273
|
stem?: Stem;
|
|
@@ -295,7 +278,6 @@ type NoteOptions = {
|
|
|
295
278
|
triplet?: boolean;
|
|
296
279
|
string?: StringNumber | StringNumber[];
|
|
297
280
|
};
|
|
298
|
-
/** @public */
|
|
299
281
|
type RestOptions = {
|
|
300
282
|
dotted?: boolean;
|
|
301
283
|
staffPos?: Note | string | number;
|
|
@@ -303,20 +285,16 @@ type RestOptions = {
|
|
|
303
285
|
hide?: boolean;
|
|
304
286
|
triplet?: boolean;
|
|
305
287
|
};
|
|
306
|
-
/** @public */
|
|
307
288
|
declare enum PlayState {
|
|
308
289
|
Playing = 0,
|
|
309
290
|
Paused = 1,
|
|
310
291
|
Stopped = 2
|
|
311
292
|
}
|
|
312
|
-
/** @public */
|
|
313
293
|
type PlayStateChangeListener = (playState: PlayState) => void;
|
|
314
|
-
/** @public */
|
|
315
294
|
declare enum Fermata {
|
|
316
295
|
AtNote = 0,
|
|
317
296
|
AtMeasureEnd = 1
|
|
318
297
|
}
|
|
319
|
-
/** @public */
|
|
320
298
|
declare enum Navigation {
|
|
321
299
|
/** Repeat back to beginning and play to the "Fine" marking. */
|
|
322
300
|
DC_al_Fine = 0,
|
|
@@ -341,14 +319,12 @@ declare enum Navigation {
|
|
|
341
319
|
/** Jump to ending with correct passage number. */
|
|
342
320
|
Ending = 10
|
|
343
321
|
}
|
|
344
|
-
/** @public */
|
|
345
322
|
declare enum Annotation {
|
|
346
323
|
/** "ppp", "pp", "p", "mp", "m", "mf", "f", "ff", "fff", "cresc.", "decresc.", "dim." */
|
|
347
324
|
Dynamics = 0,
|
|
348
325
|
/** "accel.", "rit.", "a tempo" */
|
|
349
326
|
Tempo = 1
|
|
350
327
|
}
|
|
351
|
-
/** @public */
|
|
352
328
|
declare enum Label {
|
|
353
329
|
/** "C", "C#", "Db", "D", etc. */
|
|
354
330
|
Note = 0,
|
|
@@ -979,26 +955,26 @@ declare class ObjMeasure extends MusicObject {
|
|
|
979
955
|
hasPostMeasureBreak(): boolean;
|
|
980
956
|
getPostMeasureBreakWidth(): number;
|
|
981
957
|
private addLayoutObject;
|
|
982
|
-
|
|
958
|
+
private forEachStaffGroup;
|
|
959
|
+
addFermata(staffTabOrGroups: StaffTabOrGroups | undefined, fermata: Fermata): void;
|
|
983
960
|
hasFermata(anchor: ObjRhythmColumn | ObjBarLineRight): boolean;
|
|
984
|
-
addNavigation(
|
|
961
|
+
addNavigation(staffTabOrGroups: StaffTabOrGroups | undefined, navigation: Navigation, ...args: unknown[]): void;
|
|
985
962
|
hasNavigation(n: Navigation): boolean;
|
|
986
|
-
|
|
987
|
-
|
|
963
|
+
addAnnotation(staffTabOrGroups: StaffTabOrGroups | undefined, annotation: Annotation, text: string): void;
|
|
964
|
+
addLabel(staffTabOrGroups: StaffTabOrGroups | undefined, label: Label, text: string): void;
|
|
988
965
|
addConnective(connective: Connective.Tie, tieSpan?: number | TieType, notAnchor?: NoteAnchor): void;
|
|
989
966
|
addConnective(connective: Connective.Slur, slurSpan?: number, notAnchor?: NoteAnchor): void;
|
|
990
967
|
addConnective(connective: Connective.Slide, notAnchor?: NoteAnchor): void;
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
968
|
+
addExtension(extensionLength: number, extensionVisible: boolean): void;
|
|
969
|
+
private enableExtension;
|
|
970
|
+
private disableExtension;
|
|
971
|
+
getEnding(): ObjEnding | undefined;
|
|
972
|
+
getEndRepeatPlayCount(): number;
|
|
994
973
|
endSong(): void;
|
|
995
974
|
hasEndSong(): boolean;
|
|
996
975
|
endSection(): void;
|
|
997
976
|
hasEndSection(): boolean;
|
|
998
977
|
endRow(): void;
|
|
999
|
-
private enableExtension;
|
|
1000
|
-
private disableExtension;
|
|
1001
|
-
addExtension(extensionLength: number, extensionVisible: boolean): void;
|
|
1002
978
|
private addRhythmSymbol;
|
|
1003
979
|
addNoteGroup(voiceId: number, notes: (Note | string)[], noteLength: NoteLength, options?: NoteOptions): void;
|
|
1004
980
|
addRest(voiceId: number, restLength: NoteLength, options?: RestOptions): void;
|
|
@@ -1467,21 +1443,17 @@ declare class ObjSignature extends MusicObject {
|
|
|
1467
1443
|
draw(renderer: Renderer): void;
|
|
1468
1444
|
}
|
|
1469
1445
|
|
|
1470
|
-
/** @public */
|
|
1471
1446
|
type ScoreEventType = "enter" | "leave" | "click";
|
|
1472
|
-
/** @public */
|
|
1473
1447
|
declare abstract class ScoreEvent {
|
|
1474
1448
|
readonly type: ScoreEventType;
|
|
1475
1449
|
constructor(type: ScoreEventType);
|
|
1476
1450
|
}
|
|
1477
|
-
/** @public */
|
|
1478
1451
|
declare class ScoreStaffPosEvent extends ScoreEvent {
|
|
1479
1452
|
readonly renderer: MRenderer;
|
|
1480
1453
|
readonly scoreRow: MScoreRow;
|
|
1481
1454
|
readonly diatonicId: number;
|
|
1482
1455
|
constructor(type: ScoreEventType, renderer: MRenderer, scoreRow: MScoreRow, diatonicId: number);
|
|
1483
1456
|
}
|
|
1484
|
-
/** @public */
|
|
1485
1457
|
declare class ScoreObjectEvent extends ScoreEvent {
|
|
1486
1458
|
readonly renderer: MRenderer;
|
|
1487
1459
|
readonly objects: MusicInterface[];
|
|
@@ -1489,10 +1461,8 @@ declare class ScoreObjectEvent extends ScoreEvent {
|
|
|
1489
1461
|
get topObject(): MusicInterface;
|
|
1490
1462
|
findObject(fn: (obj: MusicInterface) => boolean): MusicInterface | undefined;
|
|
1491
1463
|
}
|
|
1492
|
-
/** @public */
|
|
1493
1464
|
type ScoreEventListener = (event: ScoreEvent) => void;
|
|
1494
1465
|
|
|
1495
|
-
/** @public */
|
|
1496
1466
|
declare abstract class MusicInterface {
|
|
1497
1467
|
readonly name: string;
|
|
1498
1468
|
constructor(name: string);
|
|
@@ -1500,7 +1470,6 @@ declare abstract class MusicInterface {
|
|
|
1500
1470
|
abstract getMusicObject(): MusicObject;
|
|
1501
1471
|
getParent(): MusicInterface | undefined;
|
|
1502
1472
|
}
|
|
1503
|
-
/** @public */
|
|
1504
1473
|
declare class MAccidental extends MusicInterface {
|
|
1505
1474
|
private readonly obj;
|
|
1506
1475
|
static readonly Name = "Accidental";
|
|
@@ -1510,7 +1479,6 @@ declare class MAccidental extends MusicInterface {
|
|
|
1510
1479
|
getMusicObject(): ObjAccidental;
|
|
1511
1480
|
getAccidental(): Accidental;
|
|
1512
1481
|
}
|
|
1513
|
-
/** @public */
|
|
1514
1482
|
declare class MConnective extends MusicInterface {
|
|
1515
1483
|
private readonly obj;
|
|
1516
1484
|
static readonly Name = "Connective";
|
|
@@ -1519,7 +1487,6 @@ declare class MConnective extends MusicInterface {
|
|
|
1519
1487
|
/** @internal */
|
|
1520
1488
|
getMusicObject(): ObjConnective;
|
|
1521
1489
|
}
|
|
1522
|
-
/** @public */
|
|
1523
1490
|
declare class MArpeggio extends MusicInterface {
|
|
1524
1491
|
private readonly obj;
|
|
1525
1492
|
static readonly Name = "Arpeggio";
|
|
@@ -1528,7 +1495,6 @@ declare class MArpeggio extends MusicInterface {
|
|
|
1528
1495
|
/** @internal */
|
|
1529
1496
|
getMusicObject(): ObjArpeggio;
|
|
1530
1497
|
}
|
|
1531
|
-
/** @public */
|
|
1532
1498
|
declare class MBeamGroup extends MusicInterface {
|
|
1533
1499
|
private readonly obj;
|
|
1534
1500
|
static readonly Name = "BeamGroup";
|
|
@@ -1537,7 +1503,6 @@ declare class MBeamGroup extends MusicInterface {
|
|
|
1537
1503
|
/** @internal */
|
|
1538
1504
|
getMusicObject(): ObjBeamGroup;
|
|
1539
1505
|
}
|
|
1540
|
-
/** @public */
|
|
1541
1506
|
declare class MStaffBeamGroup extends MusicInterface {
|
|
1542
1507
|
private readonly obj;
|
|
1543
1508
|
static readonly Name = "StaffBeamGroup";
|
|
@@ -1546,7 +1511,6 @@ declare class MStaffBeamGroup extends MusicInterface {
|
|
|
1546
1511
|
/** @internal */
|
|
1547
1512
|
getMusicObject(): ObjStaffBeamGroup;
|
|
1548
1513
|
}
|
|
1549
|
-
/** @public */
|
|
1550
1514
|
declare class MDocument extends MusicInterface {
|
|
1551
1515
|
private readonly obj;
|
|
1552
1516
|
static readonly Name = "Document";
|
|
@@ -1559,7 +1523,6 @@ declare class MDocument extends MusicInterface {
|
|
|
1559
1523
|
getArranger(): string | undefined;
|
|
1560
1524
|
play(fn?: PlayStateChangeListener): MPlayer;
|
|
1561
1525
|
}
|
|
1562
|
-
/** @public */
|
|
1563
1526
|
declare class MEnding extends MusicInterface {
|
|
1564
1527
|
private readonly obj;
|
|
1565
1528
|
static readonly Name = "Ending";
|
|
@@ -1570,7 +1533,6 @@ declare class MEnding extends MusicInterface {
|
|
|
1570
1533
|
getPassages(): ReadonlyArray<number>;
|
|
1571
1534
|
hasPassage(passage: number): boolean;
|
|
1572
1535
|
}
|
|
1573
|
-
/** @public */
|
|
1574
1536
|
declare class MFermata extends MusicInterface {
|
|
1575
1537
|
private readonly obj;
|
|
1576
1538
|
static readonly Name = "Fermata";
|
|
@@ -1579,7 +1541,6 @@ declare class MFermata extends MusicInterface {
|
|
|
1579
1541
|
/** @internal */
|
|
1580
1542
|
getMusicObject(): ObjFermata;
|
|
1581
1543
|
}
|
|
1582
|
-
/** @public */
|
|
1583
1544
|
declare class MHeader extends MusicInterface {
|
|
1584
1545
|
private readonly obj;
|
|
1585
1546
|
static readonly Name = "Header";
|
|
@@ -1591,7 +1552,6 @@ declare class MHeader extends MusicInterface {
|
|
|
1591
1552
|
getComposer(): string | undefined;
|
|
1592
1553
|
getArranger(): string | undefined;
|
|
1593
1554
|
}
|
|
1594
|
-
/** @public */
|
|
1595
1555
|
declare class MImage extends MusicInterface {
|
|
1596
1556
|
private readonly obj;
|
|
1597
1557
|
static readonly Name = "Image";
|
|
@@ -1600,7 +1560,6 @@ declare class MImage extends MusicInterface {
|
|
|
1600
1560
|
/** @internal */
|
|
1601
1561
|
getMusicObject(): ObjImage;
|
|
1602
1562
|
}
|
|
1603
|
-
/** @public */
|
|
1604
1563
|
declare class MMeasure extends MusicInterface {
|
|
1605
1564
|
private readonly obj;
|
|
1606
1565
|
static readonly Name = "Measure";
|
|
@@ -1611,7 +1570,6 @@ declare class MMeasure extends MusicInterface {
|
|
|
1611
1570
|
getMeasureNumber(): number;
|
|
1612
1571
|
getRhythmColumns(): ReadonlyArray<MRhythmColumn>;
|
|
1613
1572
|
}
|
|
1614
|
-
/** @public */
|
|
1615
1573
|
declare class MBarLineRight extends MusicInterface {
|
|
1616
1574
|
private readonly obj;
|
|
1617
1575
|
static readonly Name = "BarLineRight";
|
|
@@ -1620,7 +1578,6 @@ declare class MBarLineRight extends MusicInterface {
|
|
|
1620
1578
|
/** @internal */
|
|
1621
1579
|
getMusicObject(): ObjBarLineRight;
|
|
1622
1580
|
}
|
|
1623
|
-
/** @public */
|
|
1624
1581
|
declare class MBarLineLeft extends MusicInterface {
|
|
1625
1582
|
private readonly obj;
|
|
1626
1583
|
static readonly Name = "BarLineLeft";
|
|
@@ -1629,7 +1586,6 @@ declare class MBarLineLeft extends MusicInterface {
|
|
|
1629
1586
|
/** @internal */
|
|
1630
1587
|
getMusicObject(): ObjBarLineLeft;
|
|
1631
1588
|
}
|
|
1632
|
-
/** @public */
|
|
1633
1589
|
declare class MStaffTabBarLine extends MusicInterface {
|
|
1634
1590
|
private readonly obj;
|
|
1635
1591
|
static readonly Name = "StaffTabBarLine";
|
|
@@ -1638,7 +1594,6 @@ declare class MStaffTabBarLine extends MusicInterface {
|
|
|
1638
1594
|
/** @internal */
|
|
1639
1595
|
getMusicObject(): ObjStaffTabBarLine;
|
|
1640
1596
|
}
|
|
1641
|
-
/** @public */
|
|
1642
1597
|
declare class MNoteGroup extends MusicInterface {
|
|
1643
1598
|
private readonly obj;
|
|
1644
1599
|
static readonly Name = "NoteGroup";
|
|
@@ -1649,7 +1604,6 @@ declare class MNoteGroup extends MusicInterface {
|
|
|
1649
1604
|
getNotes(): ReadonlyArray<Note>;
|
|
1650
1605
|
getRhythmProps(): RhythmProps;
|
|
1651
1606
|
}
|
|
1652
|
-
/** @public */
|
|
1653
1607
|
declare class MStaffNoteGroup extends MusicInterface {
|
|
1654
1608
|
private readonly obj;
|
|
1655
1609
|
static readonly Name = "StaffNoteGroup";
|
|
@@ -1659,7 +1613,6 @@ declare class MStaffNoteGroup extends MusicInterface {
|
|
|
1659
1613
|
getMusicObject(): ObjStaffNoteGroup;
|
|
1660
1614
|
getNoteGroup(): MNoteGroup;
|
|
1661
1615
|
}
|
|
1662
|
-
/** @public */
|
|
1663
1616
|
declare class MTabNoteGroup extends MusicInterface {
|
|
1664
1617
|
private readonly obj;
|
|
1665
1618
|
static readonly Name = "TabNoteGroup";
|
|
@@ -1669,7 +1622,6 @@ declare class MTabNoteGroup extends MusicInterface {
|
|
|
1669
1622
|
getMusicObject(): ObjTabNoteGroup;
|
|
1670
1623
|
getNoteGroup(): MNoteGroup;
|
|
1671
1624
|
}
|
|
1672
|
-
/** @public */
|
|
1673
1625
|
declare class MRest extends MusicInterface {
|
|
1674
1626
|
private readonly obj;
|
|
1675
1627
|
static readonly Name = "Rest";
|
|
@@ -1679,7 +1631,6 @@ declare class MRest extends MusicInterface {
|
|
|
1679
1631
|
getMusicObject(): ObjRest;
|
|
1680
1632
|
getRhythmProps(): RhythmProps;
|
|
1681
1633
|
}
|
|
1682
|
-
/** @public */
|
|
1683
1634
|
declare class MStaffRest extends MusicInterface {
|
|
1684
1635
|
private readonly obj;
|
|
1685
1636
|
static readonly Name = "StaffRest";
|
|
@@ -1689,7 +1640,6 @@ declare class MStaffRest extends MusicInterface {
|
|
|
1689
1640
|
getMusicObject(): ObjStaffRest;
|
|
1690
1641
|
getRest(): MRest;
|
|
1691
1642
|
}
|
|
1692
|
-
/** @public */
|
|
1693
1643
|
declare class MRhythmColumn extends MusicInterface {
|
|
1694
1644
|
private readonly obj;
|
|
1695
1645
|
static readonly Name = "RhythmColumn";
|
|
@@ -1699,7 +1649,6 @@ declare class MRhythmColumn extends MusicInterface {
|
|
|
1699
1649
|
getMusicObject(): ObjRhythmColumn;
|
|
1700
1650
|
getRhythmSymbol(voiceId: number): MNoteGroup | MRest | undefined;
|
|
1701
1651
|
}
|
|
1702
|
-
/** @public */
|
|
1703
1652
|
declare class MScoreRow extends MusicInterface {
|
|
1704
1653
|
private readonly obj;
|
|
1705
1654
|
static readonly Name = "ScoreRow";
|
|
@@ -1709,7 +1658,6 @@ declare class MScoreRow extends MusicInterface {
|
|
|
1709
1658
|
getMusicObject(): ObjScoreRow;
|
|
1710
1659
|
getMeasures(): ReadonlyArray<MMeasure>;
|
|
1711
1660
|
}
|
|
1712
|
-
/** @public */
|
|
1713
1661
|
declare class MStaff extends MusicInterface {
|
|
1714
1662
|
private readonly obj;
|
|
1715
1663
|
static readonly Name = "Staff";
|
|
@@ -1718,7 +1666,6 @@ declare class MStaff extends MusicInterface {
|
|
|
1718
1666
|
/** @internal */
|
|
1719
1667
|
getMusicObject(): ObjStaff;
|
|
1720
1668
|
}
|
|
1721
|
-
/** @public */
|
|
1722
1669
|
declare class MTab extends MusicInterface {
|
|
1723
1670
|
private readonly obj;
|
|
1724
1671
|
static readonly Name = "Tab";
|
|
@@ -1727,7 +1674,6 @@ declare class MTab extends MusicInterface {
|
|
|
1727
1674
|
/** @internal */
|
|
1728
1675
|
getMusicObject(): ObjTab;
|
|
1729
1676
|
}
|
|
1730
|
-
/** @public */
|
|
1731
1677
|
declare class MSignature extends MusicInterface {
|
|
1732
1678
|
private readonly obj;
|
|
1733
1679
|
static readonly Name = "Signature";
|
|
@@ -1736,7 +1682,6 @@ declare class MSignature extends MusicInterface {
|
|
|
1736
1682
|
/** @internal */
|
|
1737
1683
|
getMusicObject(): ObjSignature;
|
|
1738
1684
|
}
|
|
1739
|
-
/** @public */
|
|
1740
1685
|
declare class MSpecialText extends MusicInterface {
|
|
1741
1686
|
private readonly obj;
|
|
1742
1687
|
static readonly Name = "SpecialText";
|
|
@@ -1745,7 +1690,6 @@ declare class MSpecialText extends MusicInterface {
|
|
|
1745
1690
|
/** @internal */
|
|
1746
1691
|
getMusicObject(): ObjSpecialText;
|
|
1747
1692
|
}
|
|
1748
|
-
/** @public */
|
|
1749
1693
|
declare class MText extends MusicInterface {
|
|
1750
1694
|
private readonly obj;
|
|
1751
1695
|
static readonly Name = "Text";
|
|
@@ -1755,7 +1699,6 @@ declare class MText extends MusicInterface {
|
|
|
1755
1699
|
getMusicObject(): ObjText;
|
|
1756
1700
|
getText(): string;
|
|
1757
1701
|
}
|
|
1758
|
-
/** @public */
|
|
1759
1702
|
declare class MExtensionLine extends MusicInterface {
|
|
1760
1703
|
private readonly obj;
|
|
1761
1704
|
static readonly Name = "ExtensionLine";
|
|
@@ -1764,7 +1707,6 @@ declare class MExtensionLine extends MusicInterface {
|
|
|
1764
1707
|
/** @internal */
|
|
1765
1708
|
getMusicObject(): ObjExtensionLine;
|
|
1766
1709
|
}
|
|
1767
|
-
/** @public */
|
|
1768
1710
|
declare class MPlayer {
|
|
1769
1711
|
private static currentlyPlaying;
|
|
1770
1712
|
private readonly player;
|
|
@@ -1774,7 +1716,6 @@ declare class MPlayer {
|
|
|
1774
1716
|
pause(): this;
|
|
1775
1717
|
stop(): this;
|
|
1776
1718
|
}
|
|
1777
|
-
/** @public */
|
|
1778
1719
|
declare class MRenderer {
|
|
1779
1720
|
private readonly renderer;
|
|
1780
1721
|
constructor();
|
|
@@ -1788,7 +1729,6 @@ declare class MRenderer {
|
|
|
1788
1729
|
}): void;
|
|
1789
1730
|
draw(): void;
|
|
1790
1731
|
}
|
|
1791
|
-
/** @public */
|
|
1792
1732
|
declare class MPlaybackButtons {
|
|
1793
1733
|
private playButton?;
|
|
1794
1734
|
private stopButton?;
|
|
@@ -1816,4 +1756,4 @@ declare class MPlaybackButtons {
|
|
|
1816
1756
|
private static addOnClickListener;
|
|
1817
1757
|
}
|
|
1818
1758
|
|
|
1819
|
-
export {
|
|
1759
|
+
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;
|
package/dist/pieces/index.d.mts
CHANGED
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import { M as MDocument } from '../interface-
|
|
2
|
-
import '../note-
|
|
3
|
-
import '../tempo-
|
|
1
|
+
import { M as MDocument } from '../interface-Bz_525zj.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 };
|
package/dist/pieces/index.d.ts
CHANGED
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import { M as MDocument } from '../interface-
|
|
2
|
-
import '../note-
|
|
3
|
-
import '../tempo-
|
|
1
|
+
import { M as MDocument } from '../interface-Fn8ufBQx.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 };
|
package/dist/pieces/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* WebMusicScore v3.1.
|
|
1
|
+
/* WebMusicScore v3.1.1 | (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.1.
|
|
2
|
-
import "../chunk-
|
|
1
|
+
/* WebMusicScore v3.1.1 | (c) 2023 PahkaSoft | MIT License | Includes: Tone.js (MIT License) */
|
|
2
|
+
import "../chunk-PU4J7K4Z.mjs";
|
|
3
3
|
|
|
4
4
|
// src/pieces/frere-jacques.ts
|
|
5
5
|
import { NoteLength, ScaleType } from "@tspro/web-music-score/theory";
|