@scorelabs/core 1.0.5 → 1.0.9

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 (82) hide show
  1. package/README.md +1 -1
  2. package/dist/importers/MusicXMLParser.d.ts +2 -1
  3. package/dist/importers/MusicXMLParser.js +102 -29
  4. package/dist/index.d.ts +2 -2
  5. package/dist/index.js +2 -2
  6. package/dist/models/Instrument.d.ts +8 -19
  7. package/dist/models/Instrument.js +77 -23
  8. package/dist/models/Measure.d.ts +3 -1
  9. package/dist/models/Measure.js +7 -1
  10. package/dist/models/Note.d.ts +1 -1
  11. package/dist/models/Note.js +1 -1
  12. package/dist/models/NoteSet.d.ts +40 -38
  13. package/dist/models/NoteSet.js +5 -2
  14. package/dist/models/Part.d.ts +2 -2
  15. package/dist/models/Part.js +1 -1
  16. package/dist/models/Pitch.js +4 -0
  17. package/dist/models/PreMeasure.d.ts +24 -0
  18. package/dist/models/PreMeasure.js +30 -0
  19. package/dist/models/Score.d.ts +18 -3
  20. package/dist/models/Score.js +196 -8
  21. package/dist/models/Staff.d.ts +2 -2
  22. package/dist/models/index.d.ts +1 -0
  23. package/dist/models/index.js +1 -0
  24. package/dist/models/types.d.ts +2 -213
  25. package/dist/models/types.js +2 -213
  26. package/dist/types/Accidental.d.ts +7 -0
  27. package/dist/types/Accidental.js +8 -0
  28. package/dist/types/Arpeggio.d.ts +5 -0
  29. package/dist/types/Arpeggio.js +6 -0
  30. package/dist/types/Articulation.d.ts +10 -0
  31. package/dist/types/Articulation.js +11 -0
  32. package/dist/types/BarlineStyle.d.ts +9 -0
  33. package/dist/types/BarlineStyle.js +10 -0
  34. package/dist/types/Bowing.d.ts +4 -0
  35. package/dist/types/Bowing.js +5 -0
  36. package/dist/types/Clef.d.ts +10 -0
  37. package/dist/types/Clef.js +11 -0
  38. package/dist/types/Duration.d.ts +20 -0
  39. package/dist/types/Duration.js +60 -0
  40. package/dist/types/Dynamic.d.ts +12 -0
  41. package/dist/types/Dynamic.js +13 -0
  42. package/dist/types/Fretboard.d.ts +19 -0
  43. package/dist/types/Fretboard.js +1 -0
  44. package/dist/types/Genre.d.ts +27 -0
  45. package/dist/types/Genre.js +28 -0
  46. package/dist/types/Glissando.d.ts +8 -0
  47. package/dist/types/Glissando.js +5 -0
  48. package/dist/types/Hairpin.d.ts +10 -0
  49. package/dist/types/Hairpin.js +11 -0
  50. package/dist/types/InstrumentPreset.d.ts +11 -0
  51. package/dist/types/InstrumentPreset.js +12 -0
  52. package/dist/types/InstrumentType.d.ts +8 -0
  53. package/dist/types/InstrumentType.js +9 -0
  54. package/dist/types/KeySignature.d.ts +3 -0
  55. package/dist/types/KeySignature.js +1 -0
  56. package/dist/types/Lyric.d.ts +11 -0
  57. package/dist/types/Lyric.js +7 -0
  58. package/dist/types/NoteheadShape.d.ts +8 -0
  59. package/dist/types/NoteheadShape.js +9 -0
  60. package/dist/types/Ornament.d.ts +8 -0
  61. package/dist/types/Ornament.js +9 -0
  62. package/dist/types/Ottava.d.ts +10 -0
  63. package/dist/types/Ottava.js +7 -0
  64. package/dist/types/Pedal.d.ts +4 -0
  65. package/dist/types/Pedal.js +1 -0
  66. package/dist/types/Repeat.d.ts +8 -0
  67. package/dist/types/Repeat.js +1 -0
  68. package/dist/types/Slur.d.ts +4 -0
  69. package/dist/types/Slur.js +1 -0
  70. package/dist/types/StemDirection.d.ts +4 -0
  71. package/dist/types/StemDirection.js +5 -0
  72. package/dist/types/Tempo.d.ts +8 -0
  73. package/dist/types/Tempo.js +1 -0
  74. package/dist/types/TimeSignature.d.ts +6 -0
  75. package/dist/types/TimeSignature.js +3 -0
  76. package/dist/types/Tuplet.d.ts +5 -0
  77. package/dist/types/Tuplet.js +1 -0
  78. package/dist/types/index.d.ts +26 -0
  79. package/dist/types/index.js +26 -0
  80. package/package.json +5 -4
  81. package/dist/utils/tier.d.ts +0 -36
  82. package/dist/utils/tier.js +0 -112
@@ -1,216 +1,5 @@
1
1
  /**
2
2
  * Shared types and enums for ScoreLabs
3
+ * All types have been moved to ../types/ for better organization.
3
4
  */
4
- // Stem direction
5
- export var StemDirection;
6
- (function (StemDirection) {
7
- StemDirection["Up"] = "up";
8
- StemDirection["Down"] = "down";
9
- })(StemDirection || (StemDirection = {}));
10
- // Clef types supported
11
- export var Clef;
12
- (function (Clef) {
13
- Clef["Treble"] = "treble";
14
- Clef["Bass"] = "bass";
15
- Clef["Alto"] = "alto";
16
- Clef["Tenor"] = "tenor";
17
- Clef["Percussion"] = "percussion";
18
- Clef["Tab"] = "tab";
19
- })(Clef || (Clef = {}));
20
- // Note duration types
21
- export var Duration;
22
- (function (Duration) {
23
- Duration["Whole"] = "whole";
24
- Duration["Half"] = "half";
25
- Duration["Quarter"] = "quarter";
26
- Duration["Eighth"] = "eighth";
27
- Duration["Sixteenth"] = "sixteenth";
28
- Duration["ThirtySecond"] = "thirty-second";
29
- Duration["SixtyFourth"] = "sixty-fourth";
30
- Duration["OneHundredTwentyEighth"] = "one-hundred-twenty-eighth";
31
- Duration["TwoHundredFiftySixth"] = "two-hundred-fifty-sixth";
32
- })(Duration || (Duration = {}));
33
- // Accidental types
34
- export var Accidental;
35
- (function (Accidental) {
36
- Accidental["Sharp"] = "sharp";
37
- Accidental["Flat"] = "flat";
38
- Accidental["Natural"] = "natural";
39
- Accidental["DoubleSharp"] = "double-sharp";
40
- Accidental["DoubleFlat"] = "double-flat";
41
- })(Accidental || (Accidental = {}));
42
- // Articulation types
43
- export var Articulation;
44
- (function (Articulation) {
45
- Articulation["Staccato"] = "staccato";
46
- Articulation["Accent"] = "accent";
47
- Articulation["Tenuto"] = "tenuto";
48
- Articulation["Marcato"] = "marcato";
49
- Articulation["Fermata"] = "fermata";
50
- Articulation["Staccatissimo"] = "staccatissimo";
51
- Articulation["Caesura"] = "caesura";
52
- Articulation["BreathMark"] = "breath-mark";
53
- })(Articulation || (Articulation = {}));
54
- // Bowing markings
55
- export var Bowing;
56
- (function (Bowing) {
57
- Bowing["DownBow"] = "down-bow";
58
- Bowing["UpBow"] = "up-bow";
59
- })(Bowing || (Bowing = {}));
60
- // Lyrics Syllabic types
61
- export var Syllabic;
62
- (function (Syllabic) {
63
- Syllabic["Single"] = "single";
64
- Syllabic["Begin"] = "begin";
65
- Syllabic["Middle"] = "middle";
66
- Syllabic["End"] = "end";
67
- })(Syllabic || (Syllabic = {}));
68
- // Notehead shapes
69
- export var NoteheadShape;
70
- (function (NoteheadShape) {
71
- NoteheadShape["Normal"] = "normal";
72
- NoteheadShape["Cross"] = "cross";
73
- NoteheadShape["Diamond"] = "diamond";
74
- NoteheadShape["Slash"] = "slash";
75
- NoteheadShape["Triangle"] = "triangle";
76
- NoteheadShape["Square"] = "square";
77
- })(NoteheadShape || (NoteheadShape = {}));
78
- // Dynamic markings
79
- export var Dynamic;
80
- (function (Dynamic) {
81
- Dynamic["PPP"] = "ppp";
82
- Dynamic["PP"] = "pp";
83
- Dynamic["P"] = "p";
84
- Dynamic["MP"] = "mp";
85
- Dynamic["MF"] = "mf";
86
- Dynamic["F"] = "f";
87
- Dynamic["FF"] = "ff";
88
- Dynamic["FFF"] = "fff";
89
- Dynamic["SFZ"] = "sfz";
90
- Dynamic["FP"] = "fp";
91
- })(Dynamic || (Dynamic = {}));
92
- // Genre types
93
- export var Genre;
94
- (function (Genre) {
95
- Genre["Blues"] = "Blues";
96
- Genre["Children"] = "Children";
97
- Genre["Christian"] = "Christian";
98
- Genre["Christmas"] = "Christmas";
99
- Genre["Classical"] = "Classical";
100
- Genre["ContestFestival"] = "Contest/Festival";
101
- Genre["Country"] = "Country";
102
- Genre["Educational"] = "Educational";
103
- Genre["FilmTV"] = "Film/TV";
104
- Genre["Folk"] = "Folk";
105
- Genre["Games"] = "Games";
106
- Genre["Gospel"] = "Gospel";
107
- Genre["Holiday"] = "Holiday";
108
- Genre["Jazz"] = "Jazz";
109
- Genre["Latin"] = "Latin";
110
- Genre["Musicals"] = "Musicals";
111
- Genre["Pop"] = "Pop";
112
- Genre["RBHipHop"] = "R&B/Hip-Hop";
113
- Genre["Rock"] = "Rock";
114
- Genre["Standards"] = "Standards";
115
- Genre["Traditional"] = "Traditional";
116
- Genre["Wedding"] = "Wedding";
117
- Genre["World"] = "World";
118
- Genre["Worship"] = "Worship";
119
- Genre["Unknown"] = "unknown";
120
- })(Genre || (Genre = {}));
121
- // Hairpin (Crescendo/Decrescendo)
122
- export var HairpinType;
123
- (function (HairpinType) {
124
- HairpinType["Crescendo"] = "crescendo";
125
- HairpinType["Decrescendo"] = "decrescendo";
126
- })(HairpinType || (HairpinType = {}));
127
- // Barline styles
128
- export var BarlineStyle;
129
- (function (BarlineStyle) {
130
- BarlineStyle["Regular"] = "regular";
131
- BarlineStyle["Double"] = "light-light";
132
- BarlineStyle["Final"] = "light-heavy";
133
- BarlineStyle["Dotted"] = "dotted";
134
- BarlineStyle["Dashed"] = "dashed";
135
- BarlineStyle["Heavy"] = "heavy";
136
- BarlineStyle["None"] = "none";
137
- })(BarlineStyle || (BarlineStyle = {}));
138
- // Glissando
139
- export var GlissandoType;
140
- (function (GlissandoType) {
141
- GlissandoType["Wavy"] = "wavy";
142
- GlissandoType["Straight"] = "straight";
143
- })(GlissandoType || (GlissandoType = {}));
144
- // Arpeggio (rolled chords)
145
- export var Arpeggio;
146
- (function (Arpeggio) {
147
- Arpeggio["Normal"] = "normal";
148
- Arpeggio["Up"] = "up";
149
- Arpeggio["Down"] = "down";
150
- })(Arpeggio || (Arpeggio = {}));
151
- // Ottava (8va, 8vb, etc.)
152
- export var OttavaType;
153
- (function (OttavaType) {
154
- OttavaType["OttavaAlta"] = "8va";
155
- OttavaType["OttavaBassa"] = "8vb";
156
- OttavaType["QuindicesimaAlta"] = "15ma";
157
- OttavaType["QuindicesimaBassa"] = "15mb";
158
- })(OttavaType || (OttavaType = {}));
159
- // Ornaments
160
- export var Ornament;
161
- (function (Ornament) {
162
- Ornament["Trill"] = "trill";
163
- Ornament["Mordent"] = "mordent";
164
- Ornament["InvertedMordent"] = "inverted-mordent";
165
- Ornament["Turn"] = "turn";
166
- Ornament["InvertedTurn"] = "inverted-turn";
167
- Ornament["Tremolo"] = "tremolo";
168
- })(Ornament || (Ornament = {}));
169
- // Duration values in terms of quarter note = 1
170
- export const DURATION_VALUES = {
171
- [Duration.Whole]: 4,
172
- [Duration.Half]: 2,
173
- [Duration.Quarter]: 1,
174
- [Duration.Eighth]: 0.5,
175
- [Duration.Sixteenth]: 0.25,
176
- [Duration.ThirtySecond]: 0.125,
177
- [Duration.SixtyFourth]: 0.0625,
178
- [Duration.OneHundredTwentyEighth]: 0.03125,
179
- [Duration.TwoHundredFiftySixth]: 0.015625,
180
- };
181
- /**
182
- * Decomposes a duration value (quarter = 1) into a list of duration/dot pairs.
183
- */
184
- export function decomposeDuration(value) {
185
- const result = [];
186
- let remaining = value;
187
- const options = [
188
- { val: 4, dur: Duration.Whole, dot: false },
189
- { val: 3, dur: Duration.Half, dot: true },
190
- { val: 2, dur: Duration.Half, dot: false },
191
- { val: 1.5, dur: Duration.Quarter, dot: true },
192
- { val: 1, dur: Duration.Quarter, dot: false },
193
- { val: 0.75, dur: Duration.Eighth, dot: true },
194
- { val: 0.5, dur: Duration.Eighth, dot: false },
195
- { val: 0.375, dur: Duration.Sixteenth, dot: true },
196
- { val: 0.25, dur: Duration.Sixteenth, dot: false },
197
- { val: 0.1875, dur: Duration.ThirtySecond, dot: true },
198
- { val: 0.125, dur: Duration.ThirtySecond, dot: false },
199
- { val: 0.09375, dur: Duration.SixtyFourth, dot: true },
200
- { val: 0.0625, dur: Duration.SixtyFourth, dot: false },
201
- ];
202
- // Protect against infinite loop with max iterations
203
- let loops = 0;
204
- while (remaining > 0.001 && loops < 100) {
205
- const match = options.find((o) => o.val <= remaining + 0.001);
206
- if (match) {
207
- result.push({ duration: match.dur, isDotted: match.dot, val: match.val });
208
- remaining -= match.val;
209
- }
210
- else {
211
- break;
212
- }
213
- loops++;
214
- }
215
- return result;
216
- }
5
+ export * from '../types/index.js';
@@ -0,0 +1,7 @@
1
+ export declare enum Accidental {
2
+ Sharp = "sharp",
3
+ Flat = "flat",
4
+ Natural = "natural",
5
+ DoubleSharp = "double-sharp",
6
+ DoubleFlat = "double-flat"
7
+ }
@@ -0,0 +1,8 @@
1
+ export var Accidental;
2
+ (function (Accidental) {
3
+ Accidental["Sharp"] = "sharp";
4
+ Accidental["Flat"] = "flat";
5
+ Accidental["Natural"] = "natural";
6
+ Accidental["DoubleSharp"] = "double-sharp";
7
+ Accidental["DoubleFlat"] = "double-flat";
8
+ })(Accidental || (Accidental = {}));
@@ -0,0 +1,5 @@
1
+ export declare enum Arpeggio {
2
+ Normal = "normal",
3
+ Up = "up",
4
+ Down = "down"
5
+ }
@@ -0,0 +1,6 @@
1
+ export var Arpeggio;
2
+ (function (Arpeggio) {
3
+ Arpeggio["Normal"] = "normal";
4
+ Arpeggio["Up"] = "up";
5
+ Arpeggio["Down"] = "down";
6
+ })(Arpeggio || (Arpeggio = {}));
@@ -0,0 +1,10 @@
1
+ export declare enum Articulation {
2
+ Staccato = "staccato",
3
+ Accent = "accent",
4
+ Tenuto = "tenuto",
5
+ Marcato = "marcato",
6
+ Fermata = "fermata",
7
+ Staccatissimo = "staccatissimo",
8
+ Caesura = "caesura",
9
+ BreathMark = "breath-mark"
10
+ }
@@ -0,0 +1,11 @@
1
+ export var Articulation;
2
+ (function (Articulation) {
3
+ Articulation["Staccato"] = "staccato";
4
+ Articulation["Accent"] = "accent";
5
+ Articulation["Tenuto"] = "tenuto";
6
+ Articulation["Marcato"] = "marcato";
7
+ Articulation["Fermata"] = "fermata";
8
+ Articulation["Staccatissimo"] = "staccatissimo";
9
+ Articulation["Caesura"] = "caesura";
10
+ Articulation["BreathMark"] = "breath-mark";
11
+ })(Articulation || (Articulation = {}));
@@ -0,0 +1,9 @@
1
+ export declare enum BarlineStyle {
2
+ Regular = "regular",
3
+ Double = "light-light",
4
+ Final = "light-heavy",
5
+ Dotted = "dotted",
6
+ Dashed = "dashed",
7
+ Heavy = "heavy",
8
+ None = "none"
9
+ }
@@ -0,0 +1,10 @@
1
+ export var BarlineStyle;
2
+ (function (BarlineStyle) {
3
+ BarlineStyle["Regular"] = "regular";
4
+ BarlineStyle["Double"] = "light-light";
5
+ BarlineStyle["Final"] = "light-heavy";
6
+ BarlineStyle["Dotted"] = "dotted";
7
+ BarlineStyle["Dashed"] = "dashed";
8
+ BarlineStyle["Heavy"] = "heavy";
9
+ BarlineStyle["None"] = "none";
10
+ })(BarlineStyle || (BarlineStyle = {}));
@@ -0,0 +1,4 @@
1
+ export declare enum Bowing {
2
+ DownBow = "down-bow",
3
+ UpBow = "up-bow"
4
+ }
@@ -0,0 +1,5 @@
1
+ export var Bowing;
2
+ (function (Bowing) {
3
+ Bowing["DownBow"] = "down-bow";
4
+ Bowing["UpBow"] = "up-bow";
5
+ })(Bowing || (Bowing = {}));
@@ -0,0 +1,10 @@
1
+ export declare enum Clef {
2
+ Treble = "treble",
3
+ Bass = "bass",
4
+ Alto = "alto",
5
+ Tenor = "tenor",
6
+ Percussion = "percussion",
7
+ Tab = "tab",
8
+ Treble8vaBassa = "treble8vabassa",
9
+ Bass8vaBassa = "bass8vabassa"
10
+ }
@@ -0,0 +1,11 @@
1
+ export var Clef;
2
+ (function (Clef) {
3
+ Clef["Treble"] = "treble";
4
+ Clef["Bass"] = "bass";
5
+ Clef["Alto"] = "alto";
6
+ Clef["Tenor"] = "tenor";
7
+ Clef["Percussion"] = "percussion";
8
+ Clef["Tab"] = "tab";
9
+ Clef["Treble8vaBassa"] = "treble8vabassa";
10
+ Clef["Bass8vaBassa"] = "bass8vabassa";
11
+ })(Clef || (Clef = {}));
@@ -0,0 +1,20 @@
1
+ export declare enum Duration {
2
+ Whole = "whole",
3
+ Half = "half",
4
+ Quarter = "quarter",
5
+ Eighth = "eighth",
6
+ Sixteenth = "sixteenth",
7
+ ThirtySecond = "thirty-second",
8
+ SixtyFourth = "sixty-fourth",
9
+ OneHundredTwentyEighth = "one-hundred-twenty-eighth",
10
+ TwoHundredFiftySixth = "two-hundred-fifty-sixth"
11
+ }
12
+ export declare const DURATION_VALUES: Record<Duration, number>;
13
+ /**
14
+ * Decomposes a duration value (quarter = 1) into a list of duration/dot pairs.
15
+ */
16
+ export declare function decomposeDuration(value: number): {
17
+ duration: Duration;
18
+ isDotted: boolean;
19
+ val: number;
20
+ }[];
@@ -0,0 +1,60 @@
1
+ export var Duration;
2
+ (function (Duration) {
3
+ Duration["Whole"] = "whole";
4
+ Duration["Half"] = "half";
5
+ Duration["Quarter"] = "quarter";
6
+ Duration["Eighth"] = "eighth";
7
+ Duration["Sixteenth"] = "sixteenth";
8
+ Duration["ThirtySecond"] = "thirty-second";
9
+ Duration["SixtyFourth"] = "sixty-fourth";
10
+ Duration["OneHundredTwentyEighth"] = "one-hundred-twenty-eighth";
11
+ Duration["TwoHundredFiftySixth"] = "two-hundred-fifty-sixth";
12
+ })(Duration || (Duration = {}));
13
+ // Duration values in terms of quarter note = 1
14
+ export const DURATION_VALUES = {
15
+ [Duration.Whole]: 4,
16
+ [Duration.Half]: 2,
17
+ [Duration.Quarter]: 1,
18
+ [Duration.Eighth]: 0.5,
19
+ [Duration.Sixteenth]: 0.25,
20
+ [Duration.ThirtySecond]: 0.125,
21
+ [Duration.SixtyFourth]: 0.0625,
22
+ [Duration.OneHundredTwentyEighth]: 0.03125,
23
+ [Duration.TwoHundredFiftySixth]: 0.015625,
24
+ };
25
+ /**
26
+ * Decomposes a duration value (quarter = 1) into a list of duration/dot pairs.
27
+ */
28
+ export function decomposeDuration(value) {
29
+ const result = [];
30
+ let remaining = value;
31
+ const options = [
32
+ { val: 4, dur: Duration.Whole, dot: false },
33
+ { val: 3, dur: Duration.Half, dot: true },
34
+ { val: 2, dur: Duration.Half, dot: false },
35
+ { val: 1.5, dur: Duration.Quarter, dot: true },
36
+ { val: 1, dur: Duration.Quarter, dot: false },
37
+ { val: 0.75, dur: Duration.Eighth, dot: true },
38
+ { val: 0.5, dur: Duration.Eighth, dot: false },
39
+ { val: 0.375, dur: Duration.Sixteenth, dot: true },
40
+ { val: 0.25, dur: Duration.Sixteenth, dot: false },
41
+ { val: 0.1875, dur: Duration.ThirtySecond, dot: true },
42
+ { val: 0.125, dur: Duration.ThirtySecond, dot: false },
43
+ { val: 0.09375, dur: Duration.SixtyFourth, dot: true },
44
+ { val: 0.0625, dur: Duration.SixtyFourth, dot: false },
45
+ ];
46
+ // Protect against infinite loop with max iterations
47
+ let loops = 0;
48
+ while (remaining > 0.001 && loops < 100) {
49
+ const match = options.find((o) => o.val <= remaining + 0.001);
50
+ if (match) {
51
+ result.push({ duration: match.dur, isDotted: match.dot, val: match.val });
52
+ remaining -= match.val;
53
+ }
54
+ else {
55
+ break;
56
+ }
57
+ loops++;
58
+ }
59
+ return result;
60
+ }
@@ -0,0 +1,12 @@
1
+ export declare enum Dynamic {
2
+ PPP = "ppp",
3
+ PP = "pp",
4
+ P = "p",
5
+ MP = "mp",
6
+ MF = "mf",
7
+ F = "f",
8
+ FF = "ff",
9
+ FFF = "fff",
10
+ SFZ = "sfz",
11
+ FP = "fp"
12
+ }
@@ -0,0 +1,13 @@
1
+ export var Dynamic;
2
+ (function (Dynamic) {
3
+ Dynamic["PPP"] = "ppp";
4
+ Dynamic["PP"] = "pp";
5
+ Dynamic["P"] = "p";
6
+ Dynamic["MP"] = "mp";
7
+ Dynamic["MF"] = "mf";
8
+ Dynamic["F"] = "f";
9
+ Dynamic["FF"] = "ff";
10
+ Dynamic["FFF"] = "fff";
11
+ Dynamic["SFZ"] = "sfz";
12
+ Dynamic["FP"] = "fp";
13
+ })(Dynamic || (Dynamic = {}));
@@ -0,0 +1,19 @@
1
+ export interface FretboardDot {
2
+ string: number;
3
+ fret: number;
4
+ label?: string;
5
+ }
6
+ export interface FretboardBarre {
7
+ fret: number;
8
+ startString: number;
9
+ endString: number;
10
+ }
11
+ export interface FretboardDiagram {
12
+ strings: number;
13
+ frets: number;
14
+ startingFret?: number;
15
+ dots: FretboardDot[];
16
+ barres?: FretboardBarre[];
17
+ openStrings?: number[];
18
+ mutedStrings?: number[];
19
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,27 @@
1
+ export declare enum Genre {
2
+ Blues = "Blues",
3
+ Children = "Children",
4
+ Christian = "Christian",
5
+ Christmas = "Christmas",
6
+ Classical = "Classical",
7
+ ContestFestival = "Contest/Festival",
8
+ Country = "Country",
9
+ Educational = "Educational",
10
+ FilmTV = "Film/TV",
11
+ Folk = "Folk",
12
+ Games = "Games",
13
+ Gospel = "Gospel",
14
+ Holiday = "Holiday",
15
+ Jazz = "Jazz",
16
+ Latin = "Latin",
17
+ Musicals = "Musicals",
18
+ Pop = "Pop",
19
+ RBHipHop = "R&B/Hip-Hop",
20
+ Rock = "Rock",
21
+ Standards = "Standards",
22
+ Traditional = "Traditional",
23
+ Wedding = "Wedding",
24
+ World = "World",
25
+ Worship = "Worship",
26
+ Unknown = "unknown"
27
+ }
@@ -0,0 +1,28 @@
1
+ export var Genre;
2
+ (function (Genre) {
3
+ Genre["Blues"] = "Blues";
4
+ Genre["Children"] = "Children";
5
+ Genre["Christian"] = "Christian";
6
+ Genre["Christmas"] = "Christmas";
7
+ Genre["Classical"] = "Classical";
8
+ Genre["ContestFestival"] = "Contest/Festival";
9
+ Genre["Country"] = "Country";
10
+ Genre["Educational"] = "Educational";
11
+ Genre["FilmTV"] = "Film/TV";
12
+ Genre["Folk"] = "Folk";
13
+ Genre["Games"] = "Games";
14
+ Genre["Gospel"] = "Gospel";
15
+ Genre["Holiday"] = "Holiday";
16
+ Genre["Jazz"] = "Jazz";
17
+ Genre["Latin"] = "Latin";
18
+ Genre["Musicals"] = "Musicals";
19
+ Genre["Pop"] = "Pop";
20
+ Genre["RBHipHop"] = "R&B/Hip-Hop";
21
+ Genre["Rock"] = "Rock";
22
+ Genre["Standards"] = "Standards";
23
+ Genre["Traditional"] = "Traditional";
24
+ Genre["Wedding"] = "Wedding";
25
+ Genre["World"] = "World";
26
+ Genre["Worship"] = "Worship";
27
+ Genre["Unknown"] = "unknown";
28
+ })(Genre || (Genre = {}));
@@ -0,0 +1,8 @@
1
+ export declare enum GlissandoType {
2
+ Wavy = "wavy",
3
+ Straight = "straight"
4
+ }
5
+ export interface Glissando {
6
+ type: GlissandoType;
7
+ placement: 'start' | 'stop';
8
+ }
@@ -0,0 +1,5 @@
1
+ export var GlissandoType;
2
+ (function (GlissandoType) {
3
+ GlissandoType["Wavy"] = "wavy";
4
+ GlissandoType["Straight"] = "straight";
5
+ })(GlissandoType || (GlissandoType = {}));
@@ -0,0 +1,10 @@
1
+ export declare enum HairpinType {
2
+ Crescendo = "crescendo",
3
+ Decrescendo = "decrescendo"
4
+ }
5
+ export interface Hairpin {
6
+ type: HairpinType;
7
+ placement: 'start' | 'stop';
8
+ }
9
+ export declare function isCrescendo(hairpin: Hairpin): boolean;
10
+ export declare function isDecrescendo(hairpin: Hairpin): boolean;
@@ -0,0 +1,11 @@
1
+ export var HairpinType;
2
+ (function (HairpinType) {
3
+ HairpinType["Crescendo"] = "crescendo";
4
+ HairpinType["Decrescendo"] = "decrescendo";
5
+ })(HairpinType || (HairpinType = {}));
6
+ export function isCrescendo(hairpin) {
7
+ return hairpin.type === HairpinType.Crescendo;
8
+ }
9
+ export function isDecrescendo(hairpin) {
10
+ return hairpin.type === HairpinType.Decrescendo;
11
+ }
@@ -0,0 +1,11 @@
1
+ export declare enum InstrumentPreset {
2
+ Piano = "piano",
3
+ Violin = "violin",
4
+ Cello = "cello",
5
+ Guitar = "guitar",
6
+ ElectricGuitar = "electric-guitar",
7
+ Bass = "bass",
8
+ Flute = "flute",
9
+ Trumpet = "trumpet",
10
+ Drums = "drums"
11
+ }
@@ -0,0 +1,12 @@
1
+ export var InstrumentPreset;
2
+ (function (InstrumentPreset) {
3
+ InstrumentPreset["Piano"] = "piano";
4
+ InstrumentPreset["Violin"] = "violin";
5
+ InstrumentPreset["Cello"] = "cello";
6
+ InstrumentPreset["Guitar"] = "guitar";
7
+ InstrumentPreset["ElectricGuitar"] = "electric-guitar";
8
+ InstrumentPreset["Bass"] = "bass";
9
+ InstrumentPreset["Flute"] = "flute";
10
+ InstrumentPreset["Trumpet"] = "trumpet";
11
+ InstrumentPreset["Drums"] = "drums";
12
+ })(InstrumentPreset || (InstrumentPreset = {}));
@@ -0,0 +1,8 @@
1
+ export declare enum InstrumentType {
2
+ String = "string",
3
+ Brass = "brass",
4
+ Woodwind = "woodwind",
5
+ Percussion = "percussion",
6
+ Keyboard = "keyboard",
7
+ Synth = "synth"
8
+ }
@@ -0,0 +1,9 @@
1
+ export var InstrumentType;
2
+ (function (InstrumentType) {
3
+ InstrumentType["String"] = "string";
4
+ InstrumentType["Brass"] = "brass";
5
+ InstrumentType["Woodwind"] = "woodwind";
6
+ InstrumentType["Percussion"] = "percussion";
7
+ InstrumentType["Keyboard"] = "keyboard";
8
+ InstrumentType["Synth"] = "synth";
9
+ })(InstrumentType || (InstrumentType = {}));
@@ -0,0 +1,3 @@
1
+ export interface KeySignature {
2
+ fifths: number;
3
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ export declare enum Syllabic {
2
+ Single = "single",
3
+ Begin = "begin",
4
+ Middle = "middle",
5
+ End = "end"
6
+ }
7
+ export interface Lyric {
8
+ text: string;
9
+ syllabic?: Syllabic;
10
+ isExtension?: boolean;
11
+ }
@@ -0,0 +1,7 @@
1
+ export var Syllabic;
2
+ (function (Syllabic) {
3
+ Syllabic["Single"] = "single";
4
+ Syllabic["Begin"] = "begin";
5
+ Syllabic["Middle"] = "middle";
6
+ Syllabic["End"] = "end";
7
+ })(Syllabic || (Syllabic = {}));
@@ -0,0 +1,8 @@
1
+ export declare enum NoteheadShape {
2
+ Normal = "normal",
3
+ Cross = "cross",// X shape (percussion, spoken)
4
+ Diamond = "diamond",// Harmonics
5
+ Slash = "slash",// Rhythmic notation
6
+ Triangle = "triangle",// Percussion
7
+ Square = "square"
8
+ }