smoosic 1.0.25 → 1.0.26
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/build/smoosic.js +1 -1
- package/package.json +1 -1
- package/release/smoosic.js +1 -1
- package/src/application/exports.ts +1 -0
- package/types/src/application/application.d.ts +102 -102
- package/types/src/application/common.d.ts +74 -74
- package/types/src/application/configuration.d.ts +74 -74
- package/types/src/application/dom.d.ts +8 -8
- package/types/src/application/dynamicInit.d.ts +1 -1
- package/types/src/application/eventHandler.d.ts +78 -78
- package/types/src/application/exports.d.ts +494 -493
- package/types/src/application/generateVexTests.d.ts +10 -10
- package/types/src/application/keyCommands.d.ts +90 -90
- package/types/src/common/bootstrap.bundle.d.ts +1138 -1138
- package/types/src/common/htmlHelpers.d.ts +105 -105
- package/types/src/common/jszip.d.ts +2 -2
- package/types/src/common/midi-parser.d.ts +38 -38
- package/types/src/common/promiseHelpers.d.ts +30 -30
- package/types/src/common/serializationHelpers.d.ts +29 -29
- package/types/src/common/textformatter.d.ts +140 -140
- package/types/src/common/vex.d.ts +222 -222
- package/types/src/render/audio/musicCursor.d.ts +25 -25
- package/types/src/render/audio/oscillator.d.ts +98 -98
- package/types/src/render/audio/player.d.ts +141 -141
- package/types/src/render/audio/samples.d.ts +56 -56
- package/types/src/render/sui/configuration.d.ts +12 -12
- package/types/src/render/sui/formatter.d.ts +151 -151
- package/types/src/render/sui/layoutDebug.d.ts +43 -43
- package/types/src/render/sui/mapper.d.ts +116 -116
- package/types/src/render/sui/piano.d.ts +46 -46
- package/types/src/render/sui/renderState.d.ts +88 -88
- package/types/src/render/sui/scoreRender.d.ts +93 -93
- package/types/src/render/sui/scoreView.d.ts +267 -267
- package/types/src/render/sui/scoreViewOperations.d.ts +594 -594
- package/types/src/render/sui/scroller.d.ts +34 -34
- package/types/src/render/sui/svgHelpers.d.ts +85 -85
- package/types/src/render/sui/svgPageMap.d.ts +318 -318
- package/types/src/render/sui/textEdit.d.ts +310 -310
- package/types/src/render/sui/textRender.d.ts +189 -189
- package/types/src/render/sui/tracker.d.ts +90 -90
- package/types/src/render/vex/glyphDimensions.d.ts +23 -23
- package/types/src/render/vex/smoAdapter.d.ts +46 -46
- package/types/src/render/vex/toVex.d.ts +13 -13
- package/types/src/render/vex/vxMeasure.d.ts +95 -95
- package/types/src/render/vex/vxNote.d.ts +55 -55
- package/types/src/render/vex/vxSystem.d.ts +64 -64
- package/types/src/smo/data/common.d.ts +220 -220
- package/types/src/smo/data/measure.d.ts +510 -510
- package/types/src/smo/data/measureModifiers.d.ts +506 -506
- package/types/src/smo/data/music.d.ts +438 -438
- package/types/src/smo/data/note.d.ts +485 -485
- package/types/src/smo/data/noteModifiers.d.ts +590 -590
- package/types/src/smo/data/partInfo.d.ts +162 -162
- package/types/src/smo/data/score.d.ts +395 -395
- package/types/src/smo/data/scoreModifiers.d.ts +433 -433
- package/types/src/smo/data/scoreText.d.ts +277 -277
- package/types/src/smo/data/staffModifiers.d.ts +767 -767
- package/types/src/smo/data/systemStaff.d.ts +238 -238
- package/types/src/smo/data/tuplet.d.ts +146 -146
- package/types/src/smo/midi/midiToSmo.d.ts +198 -198
- package/types/src/smo/midi/smoToMidi.d.ts +23 -23
- package/types/src/smo/mxml/smoToXml.d.ts +165 -165
- package/types/src/smo/mxml/xmlHelpers.d.ts +140 -140
- package/types/src/smo/mxml/xmlState.d.ts +257 -257
- package/types/src/smo/mxml/xmlToSmo.d.ts +92 -92
- package/types/src/smo/xform/beamers.d.ts +46 -46
- package/types/src/smo/xform/copypaste.d.ts +99 -99
- package/types/src/smo/xform/operations.d.ts +127 -127
- package/types/src/smo/xform/roadmap.d.ts +70 -70
- package/types/src/smo/xform/selections.d.ts +153 -153
- package/types/src/smo/xform/tickDuration.d.ts +155 -155
- package/types/src/smo/xform/tickMap.d.ts +34 -34
- package/types/src/smo/xform/undo.d.ts +142 -142
- package/types/src/smo/xform/updateAudio.d.ts +9 -9
- package/types/src/styles/font_metrics/Commissioner-Medium-Metrics.d.ts +871 -871
- package/types/src/styles/font_metrics/ConcertOne-Regular.d.ts +871 -871
- package/types/src/styles/font_metrics/Merriweather-Regular.d.ts +871 -871
- package/types/src/styles/font_metrics/arial_metrics.d.ts +870 -870
- package/types/src/styles/font_metrics/ssp-sans-metrics.d.ts +871 -871
- package/types/src/styles/font_metrics/ssp-serif-metrics.d.ts +871 -871
- package/types/src/styles/font_metrics/times_metrics.d.ts +870 -870
- package/types/src/ui/buttons/button.d.ts +95 -95
- package/types/src/ui/buttons/collapsable.d.ts +42 -42
- package/types/src/ui/buttons/display.d.ts +23 -23
- package/types/src/ui/buttons/ribbon.d.ts +76 -76
- package/types/src/ui/common.d.ts +45 -45
- package/types/src/ui/composable/draggable.d.ts +12 -12
- package/types/src/ui/configuration.d.ts +31 -31
- package/types/src/ui/dialogs/adapter.d.ts +107 -107
- package/types/src/ui/dialogs/addMeasure.d.ts +20 -20
- package/types/src/ui/dialogs/arpeggio.d.ts +2 -2
- package/types/src/ui/dialogs/articulation.d.ts +2 -2
- package/types/src/ui/dialogs/audioSettings.d.ts +32 -32
- package/types/src/ui/dialogs/chordChange.d.ts +35 -35
- package/types/src/ui/dialogs/clefChange.d.ts +2 -2
- package/types/src/ui/dialogs/components/baseComponent.d.ts +158 -158
- package/types/src/ui/dialogs/components/button.d.ts +54 -54
- package/types/src/ui/dialogs/components/buttonArray.d.ts +101 -101
- package/types/src/ui/dialogs/components/checkdrop.d.ts +27 -27
- package/types/src/ui/dialogs/components/dragText.d.ts +27 -27
- package/types/src/ui/dialogs/components/dropdown.d.ts +78 -78
- package/types/src/ui/dialogs/components/fileDownload.d.ts +28 -28
- package/types/src/ui/dialogs/components/fontComponent.d.ts +32 -32
- package/types/src/ui/dialogs/components/noteText.d.ts +98 -98
- package/types/src/ui/dialogs/components/pitch.d.ts +95 -95
- package/types/src/ui/dialogs/components/rocker.d.ts +66 -66
- package/types/src/ui/dialogs/components/staffComponents.d.ts +77 -77
- package/types/src/ui/dialogs/components/textCheck.d.ts +38 -38
- package/types/src/ui/dialogs/components/textInPlace.d.ts +90 -90
- package/types/src/ui/dialogs/components/textInput.d.ts +58 -58
- package/types/src/ui/dialogs/components/tie.d.ts +41 -41
- package/types/src/ui/dialogs/components/toggle.d.ts +53 -53
- package/types/src/ui/dialogs/components/tree.d.ts +46 -46
- package/types/src/ui/dialogs/customTuplets.d.ts +25 -25
- package/types/src/ui/dialogs/dialog.d.ts +201 -201
- package/types/src/ui/dialogs/durations.d.ts +2 -2
- package/types/src/ui/dialogs/dynamics.d.ts +37 -37
- package/types/src/ui/dialogs/endings.d.ts +61 -61
- package/types/src/ui/dialogs/factory.d.ts +15 -15
- package/types/src/ui/dialogs/fileDialogs.d.ts +4 -4
- package/types/src/ui/dialogs/fonts.d.ts +2 -2
- package/types/src/ui/dialogs/globalLayout.d.ts +2 -2
- package/types/src/ui/dialogs/gracenote.d.ts +2 -2
- package/types/src/ui/dialogs/hairpin.d.ts +35 -35
- package/types/src/ui/dialogs/instrument.d.ts +3 -3
- package/types/src/ui/dialogs/keySignature.d.ts +33 -33
- package/types/src/ui/dialogs/library.d.ts +70 -70
- package/types/src/ui/dialogs/lyric.d.ts +39 -39
- package/types/src/ui/dialogs/measureFormat.d.ts +52 -52
- package/types/src/ui/dialogs/microtones.d.ts +2 -2
- package/types/src/ui/dialogs/noteHead.d.ts +2 -2
- package/types/src/ui/dialogs/ornament.d.ts +2 -2
- package/types/src/ui/dialogs/pageLayout.d.ts +2 -2
- package/types/src/ui/dialogs/partInfo.d.ts +2 -2
- package/types/src/ui/dialogs/pedalMarking.d.ts +35 -35
- package/types/src/ui/dialogs/pitch.d.ts +2 -2
- package/types/src/ui/dialogs/preferences.d.ts +2 -2
- package/types/src/ui/dialogs/scoreId.d.ts +2 -2
- package/types/src/ui/dialogs/scoreView.d.ts +2 -2
- package/types/src/ui/dialogs/slur.d.ts +57 -57
- package/types/src/ui/dialogs/staffGroup.d.ts +2 -2
- package/types/src/ui/dialogs/tabNote.d.ts +32 -32
- package/types/src/ui/dialogs/tabStave.d.ts +43 -43
- package/types/src/ui/dialogs/tempo.d.ts +50 -50
- package/types/src/ui/dialogs/textBlock.d.ts +61 -61
- package/types/src/ui/dialogs/textBracket.d.ts +35 -35
- package/types/src/ui/dialogs/tie.d.ts +41 -41
- package/types/src/ui/dialogs/timeSignature.d.ts +34 -34
- package/types/src/ui/dialogs/transposeScore.d.ts +2 -2
- package/types/src/ui/dialogs/volta.d.ts +40 -40
- package/types/src/ui/eventSource.d.ts +63 -63
- package/types/src/ui/exceptions.d.ts +12 -12
- package/types/src/ui/fileio/fileInput.d.ts +12 -12
- package/types/src/ui/fileio/library.d.ts +40 -40
- package/types/src/ui/fileio/xhrLoader.d.ts +18 -18
- package/types/src/ui/help.d.ts +22 -22
- package/types/src/ui/i18n/language.d.ts +37 -37
- package/types/src/ui/i18n/language_ar.d.ts +5 -5
- package/types/src/ui/i18n/language_de.d.ts +1 -1
- package/types/src/ui/i18n/language_en.d.ts +18 -18
- package/types/src/ui/i18n/translationEditor.d.ts +14 -14
- package/types/src/ui/keyBindings/default/editorKeys.d.ts +7 -7
- package/types/src/ui/keyBindings/default/trackerKeys.d.ts +7 -7
- package/types/src/ui/menus/beams.d.ts +13 -13
- package/types/src/ui/menus/edit.d.ts +8 -8
- package/types/src/ui/menus/file.d.ts +26 -26
- package/types/src/ui/menus/help.d.ts +8 -8
- package/types/src/ui/menus/keySignature.d.ts +13 -13
- package/types/src/ui/menus/language.d.ts +12 -12
- package/types/src/ui/menus/manager.d.ts +57 -57
- package/types/src/ui/menus/measure.d.ts +8 -8
- package/types/src/ui/menus/menu.d.ts +136 -136
- package/types/src/ui/menus/note.d.ts +8 -8
- package/types/src/ui/menus/partSelection.d.ts +19 -19
- package/types/src/ui/menus/parts.d.ts +50 -50
- package/types/src/ui/menus/score.d.ts +20 -20
- package/types/src/ui/menus/staffModifier.d.ts +21 -21
- package/types/src/ui/menus/text.d.ts +8 -8
- package/types/src/ui/menus/timeSignature.d.ts +12 -12
- package/types/src/ui/menus/tuplets.d.ts +13 -13
- package/types/src/ui/menus/voices.d.ts +8 -8
- package/types/src/ui/modalDialogs.d.ts +1 -1
- package/types/src/ui/navigation.d.ts +15 -15
- package/types/src/ui/qwerty.d.ts +41 -41
- package/types/src/ui/ribbonLayout/default/defaultRibbon.d.ts +15 -15
- package/types/src/ui/ribbonLayout/default/tabletRibbon.d.ts +22 -22
- package/types/typedoc.d.ts +158 -158
|
@@ -1,105 +1,105 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
/**
|
|
3
|
-
* returns an object that lets you build a DOM in a somewhat readable way.
|
|
4
|
-
*
|
|
5
|
-
* ## Usage
|
|
6
|
-
* ``` javascript
|
|
7
|
-
* var b = buildDom;
|
|
8
|
-
* var r =
|
|
9
|
-
* b('tr').classes('jsSharingMember').data('entitykey', key).data('name', name).data('entitytype', entityType).append(
|
|
10
|
-
* b('td').classes('noSideBorderRight').append(
|
|
11
|
-
* ...
|
|
12
|
-
* $(parent).append(r.dom());
|
|
13
|
-
* ```
|
|
14
|
-
* Don't forget the '.dom()' ! That is the actual jquery element object
|
|
15
|
-
* @internal
|
|
16
|
-
* @returns
|
|
17
|
-
**/
|
|
18
|
-
export declare class DomBuilder {
|
|
19
|
-
e: any;
|
|
20
|
-
constructor(el: any);
|
|
21
|
-
classes(cl: any): this;
|
|
22
|
-
html(value: any): this;
|
|
23
|
-
data(name: string, value: string): this;
|
|
24
|
-
attr(name: string, value: string): this;
|
|
25
|
-
prop(name: string, value: boolean): this;
|
|
26
|
-
css(name: string, value: string): this;
|
|
27
|
-
append(el: any): this;
|
|
28
|
-
text(tx: any): this;
|
|
29
|
-
dom(): any;
|
|
30
|
-
}
|
|
31
|
-
export declare function buildDom(e: any): DomBuilder;
|
|
32
|
-
export declare function focusableElements(): string[];
|
|
33
|
-
export declare function addFileLink(filename: string, txt: any, parent: any, mimeType?: string): void;
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
|
-
export declare class InputTrapper {
|
|
38
|
-
selector: any;
|
|
39
|
-
parent: any;
|
|
40
|
-
id: any;
|
|
41
|
-
parentId: any;
|
|
42
|
-
modalInputs: any[];
|
|
43
|
-
disabledInputs: any[];
|
|
44
|
-
siblingInputs: any[];
|
|
45
|
-
constructor(selector: any);
|
|
46
|
-
trap(this: any): void;
|
|
47
|
-
close(): void;
|
|
48
|
-
}
|
|
49
|
-
export declare function closeDialogPromise(): Promise<void>;
|
|
50
|
-
/**
|
|
51
|
-
* Extract an HTMLElement from a Jquery id, DOM element ID, or HTMLELement. If
|
|
52
|
-
* an HTMLElement can't be created, return null
|
|
53
|
-
* @param selector
|
|
54
|
-
* @returns HTMLElement
|
|
55
|
-
*/
|
|
56
|
-
export declare function getDomContainer(selector: HTMLElement | string): HTMLElement | undefined;
|
|
57
|
-
/**
|
|
58
|
-
* Create a top-level HTML element for modal containers - dialogs etc.
|
|
59
|
-
* from a jquery selector, or just return same if it exists
|
|
60
|
-
* @param selector
|
|
61
|
-
* @returns
|
|
62
|
-
*/
|
|
63
|
-
export declare function createTopDomContainer(selector: string | HTMLElement, elementType?: string): HTMLElement;
|
|
64
|
-
/**
|
|
65
|
-
*
|
|
66
|
-
* @param parameters
|
|
67
|
-
* @returns
|
|
68
|
-
*/
|
|
69
|
-
export declare function draggable(parameters: any): Draggable;
|
|
70
|
-
export interface DraggableParameters {
|
|
71
|
-
parent: HTMLElement;
|
|
72
|
-
handle: HTMLElement;
|
|
73
|
-
animateDiv: string;
|
|
74
|
-
dragParent: boolean;
|
|
75
|
-
svg: any;
|
|
76
|
-
cb: () => void;
|
|
77
|
-
topRef?: Ref<number>;
|
|
78
|
-
leftRef?: Ref<number>;
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* @internal
|
|
82
|
-
*/
|
|
83
|
-
export declare class Draggable {
|
|
84
|
-
parent: HTMLElement;
|
|
85
|
-
handle: HTMLElement;
|
|
86
|
-
animeClass: any;
|
|
87
|
-
dragParent: any;
|
|
88
|
-
domOffset: any;
|
|
89
|
-
svg: any;
|
|
90
|
-
width: number;
|
|
91
|
-
height: number;
|
|
92
|
-
lastX: number;
|
|
93
|
-
lastY: number;
|
|
94
|
-
cb: any;
|
|
95
|
-
moveParent: boolean;
|
|
96
|
-
dragging: boolean;
|
|
97
|
-
topRef?: Ref<number>;
|
|
98
|
-
leftRef?: Ref<number>;
|
|
99
|
-
constructor(parameters: any);
|
|
100
|
-
_animate(e: any): void;
|
|
101
|
-
mousedown(e: any): void;
|
|
102
|
-
enddrag(): void;
|
|
103
|
-
mouseup(e: any): void;
|
|
104
|
-
mousemove(e: any): void;
|
|
105
|
-
}
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* returns an object that lets you build a DOM in a somewhat readable way.
|
|
4
|
+
*
|
|
5
|
+
* ## Usage
|
|
6
|
+
* ``` javascript
|
|
7
|
+
* var b = buildDom;
|
|
8
|
+
* var r =
|
|
9
|
+
* b('tr').classes('jsSharingMember').data('entitykey', key).data('name', name).data('entitytype', entityType).append(
|
|
10
|
+
* b('td').classes('noSideBorderRight').append(
|
|
11
|
+
* ...
|
|
12
|
+
* $(parent).append(r.dom());
|
|
13
|
+
* ```
|
|
14
|
+
* Don't forget the '.dom()' ! That is the actual jquery element object
|
|
15
|
+
* @internal
|
|
16
|
+
* @returns
|
|
17
|
+
**/
|
|
18
|
+
export declare class DomBuilder {
|
|
19
|
+
e: any;
|
|
20
|
+
constructor(el: any);
|
|
21
|
+
classes(cl: any): this;
|
|
22
|
+
html(value: any): this;
|
|
23
|
+
data(name: string, value: string): this;
|
|
24
|
+
attr(name: string, value: string): this;
|
|
25
|
+
prop(name: string, value: boolean): this;
|
|
26
|
+
css(name: string, value: string): this;
|
|
27
|
+
append(el: any): this;
|
|
28
|
+
text(tx: any): this;
|
|
29
|
+
dom(): any;
|
|
30
|
+
}
|
|
31
|
+
export declare function buildDom(e: any): DomBuilder;
|
|
32
|
+
export declare function focusableElements(): string[];
|
|
33
|
+
export declare function addFileLink(filename: string, txt: any, parent: any, mimeType?: string): void;
|
|
34
|
+
/**
|
|
35
|
+
* @internal
|
|
36
|
+
*/
|
|
37
|
+
export declare class InputTrapper {
|
|
38
|
+
selector: any;
|
|
39
|
+
parent: any;
|
|
40
|
+
id: any;
|
|
41
|
+
parentId: any;
|
|
42
|
+
modalInputs: any[];
|
|
43
|
+
disabledInputs: any[];
|
|
44
|
+
siblingInputs: any[];
|
|
45
|
+
constructor(selector: any);
|
|
46
|
+
trap(this: any): void;
|
|
47
|
+
close(): void;
|
|
48
|
+
}
|
|
49
|
+
export declare function closeDialogPromise(): Promise<void>;
|
|
50
|
+
/**
|
|
51
|
+
* Extract an HTMLElement from a Jquery id, DOM element ID, or HTMLELement. If
|
|
52
|
+
* an HTMLElement can't be created, return null
|
|
53
|
+
* @param selector
|
|
54
|
+
* @returns HTMLElement
|
|
55
|
+
*/
|
|
56
|
+
export declare function getDomContainer(selector: HTMLElement | string): HTMLElement | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Create a top-level HTML element for modal containers - dialogs etc.
|
|
59
|
+
* from a jquery selector, or just return same if it exists
|
|
60
|
+
* @param selector
|
|
61
|
+
* @returns
|
|
62
|
+
*/
|
|
63
|
+
export declare function createTopDomContainer(selector: string | HTMLElement, elementType?: string): HTMLElement;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @param parameters
|
|
67
|
+
* @returns
|
|
68
|
+
*/
|
|
69
|
+
export declare function draggable(parameters: any): Draggable;
|
|
70
|
+
export interface DraggableParameters {
|
|
71
|
+
parent: HTMLElement;
|
|
72
|
+
handle: HTMLElement;
|
|
73
|
+
animateDiv: string;
|
|
74
|
+
dragParent: boolean;
|
|
75
|
+
svg: any;
|
|
76
|
+
cb: () => void;
|
|
77
|
+
topRef?: Ref<number>;
|
|
78
|
+
leftRef?: Ref<number>;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* @internal
|
|
82
|
+
*/
|
|
83
|
+
export declare class Draggable {
|
|
84
|
+
parent: HTMLElement;
|
|
85
|
+
handle: HTMLElement;
|
|
86
|
+
animeClass: any;
|
|
87
|
+
dragParent: any;
|
|
88
|
+
domOffset: any;
|
|
89
|
+
svg: any;
|
|
90
|
+
width: number;
|
|
91
|
+
height: number;
|
|
92
|
+
lastX: number;
|
|
93
|
+
lastY: number;
|
|
94
|
+
cb: any;
|
|
95
|
+
moveParent: boolean;
|
|
96
|
+
dragging: boolean;
|
|
97
|
+
topRef?: Ref<number>;
|
|
98
|
+
leftRef?: Ref<number>;
|
|
99
|
+
constructor(parameters: any);
|
|
100
|
+
_animate(e: any): void;
|
|
101
|
+
mousedown(e: any): void;
|
|
102
|
+
enddrag(): void;
|
|
103
|
+
mouseup(e: any): void;
|
|
104
|
+
mousemove(e: any): void;
|
|
105
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _exports: any;
|
|
2
|
-
export = _exports;
|
|
1
|
+
declare const _exports: any;
|
|
2
|
+
export = _exports;
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
export function parseMidi(data: any): {
|
|
2
|
-
header: {
|
|
3
|
-
format: any;
|
|
4
|
-
numTracks: any;
|
|
5
|
-
};
|
|
6
|
-
tracks: {
|
|
7
|
-
deltaTime: any;
|
|
8
|
-
meta: boolean;
|
|
9
|
-
type: string;
|
|
10
|
-
number: any;
|
|
11
|
-
text: string;
|
|
12
|
-
channel: any;
|
|
13
|
-
port: any;
|
|
14
|
-
microsecondsPerBeat: any;
|
|
15
|
-
frameRate: any;
|
|
16
|
-
hour: number;
|
|
17
|
-
min: any;
|
|
18
|
-
sec: any;
|
|
19
|
-
frame: any;
|
|
20
|
-
subFrame: any;
|
|
21
|
-
numerator: any;
|
|
22
|
-
denominator: number;
|
|
23
|
-
metronome: any;
|
|
24
|
-
thirtyseconds: any;
|
|
25
|
-
key: any;
|
|
26
|
-
scale: any;
|
|
27
|
-
data: any;
|
|
28
|
-
metatypeByte: any;
|
|
29
|
-
running: boolean;
|
|
30
|
-
noteNumber: any;
|
|
31
|
-
velocity: any;
|
|
32
|
-
byte9: boolean;
|
|
33
|
-
amount: any;
|
|
34
|
-
controllerType: any;
|
|
35
|
-
value: any;
|
|
36
|
-
programNumber: any;
|
|
37
|
-
}[][];
|
|
38
|
-
};
|
|
1
|
+
export function parseMidi(data: any): {
|
|
2
|
+
header: {
|
|
3
|
+
format: any;
|
|
4
|
+
numTracks: any;
|
|
5
|
+
};
|
|
6
|
+
tracks: {
|
|
7
|
+
deltaTime: any;
|
|
8
|
+
meta: boolean;
|
|
9
|
+
type: string;
|
|
10
|
+
number: any;
|
|
11
|
+
text: string;
|
|
12
|
+
channel: any;
|
|
13
|
+
port: any;
|
|
14
|
+
microsecondsPerBeat: any;
|
|
15
|
+
frameRate: any;
|
|
16
|
+
hour: number;
|
|
17
|
+
min: any;
|
|
18
|
+
sec: any;
|
|
19
|
+
frame: any;
|
|
20
|
+
subFrame: any;
|
|
21
|
+
numerator: any;
|
|
22
|
+
denominator: number;
|
|
23
|
+
metronome: any;
|
|
24
|
+
thirtyseconds: any;
|
|
25
|
+
key: any;
|
|
26
|
+
scale: any;
|
|
27
|
+
data: any;
|
|
28
|
+
metatypeByte: any;
|
|
29
|
+
running: boolean;
|
|
30
|
+
noteNumber: any;
|
|
31
|
+
velocity: any;
|
|
32
|
+
byte9: boolean;
|
|
33
|
+
amount: any;
|
|
34
|
+
controllerType: any;
|
|
35
|
+
value: any;
|
|
36
|
+
programNumber: any;
|
|
37
|
+
}[][];
|
|
38
|
+
};
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
export type promiseFunction = () => void;
|
|
2
|
-
export type promiseCondition = () => boolean;
|
|
3
|
-
export type promiseInstance = () => Promise<any>;
|
|
4
|
-
/**
|
|
5
|
-
* @internal
|
|
6
|
-
*/
|
|
7
|
-
export interface PromiseParameters {
|
|
8
|
-
endCondition: promiseCondition;
|
|
9
|
-
preResolveMethod: promiseFunction | null;
|
|
10
|
-
pollMethod: promiseFunction | null;
|
|
11
|
-
pollTime: number;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* @internal
|
|
15
|
-
*/
|
|
16
|
-
export declare function TEmptyPromise<T>(obj: T): Promise<T>;
|
|
17
|
-
/**
|
|
18
|
-
* @internal
|
|
19
|
-
*/
|
|
20
|
-
export declare class PromiseHelpers {
|
|
21
|
-
static makePromise(endCondition: promiseCondition, preResolveMethod: promiseFunction | null, pollMethod: promiseFunction | null, pollTime: number): Promise<void>;
|
|
22
|
-
static makePromiseObj(endCondition: promiseCondition, preResolveMethod: promiseFunction | null, pollMethod: promiseFunction | null, pollTime: number): {
|
|
23
|
-
endCondition: promiseCondition;
|
|
24
|
-
preResolveMethod: promiseFunction | null;
|
|
25
|
-
pollMethod: promiseFunction | null;
|
|
26
|
-
pollTime: number;
|
|
27
|
-
};
|
|
28
|
-
static promiseChainThen(params: PromiseParameters[]): Promise<void>;
|
|
29
|
-
static emptyPromise(): Promise<any>;
|
|
30
|
-
}
|
|
1
|
+
export type promiseFunction = () => void;
|
|
2
|
+
export type promiseCondition = () => boolean;
|
|
3
|
+
export type promiseInstance = () => Promise<any>;
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export interface PromiseParameters {
|
|
8
|
+
endCondition: promiseCondition;
|
|
9
|
+
preResolveMethod: promiseFunction | null;
|
|
10
|
+
pollMethod: promiseFunction | null;
|
|
11
|
+
pollTime: number;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
export declare function TEmptyPromise<T>(obj: T): Promise<T>;
|
|
17
|
+
/**
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
20
|
+
export declare class PromiseHelpers {
|
|
21
|
+
static makePromise(endCondition: promiseCondition, preResolveMethod: promiseFunction | null, pollMethod: promiseFunction | null, pollTime: number): Promise<void>;
|
|
22
|
+
static makePromiseObj(endCondition: promiseCondition, preResolveMethod: promiseFunction | null, pollMethod: promiseFunction | null, pollTime: number): {
|
|
23
|
+
endCondition: promiseCondition;
|
|
24
|
+
preResolveMethod: promiseFunction | null;
|
|
25
|
+
pollMethod: promiseFunction | null;
|
|
26
|
+
pollTime: number;
|
|
27
|
+
};
|
|
28
|
+
static promiseChainThen(params: PromiseParameters[]): Promise<void>;
|
|
29
|
+
static emptyPromise(): Promise<any>;
|
|
30
|
+
}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @category serialization
|
|
3
|
-
*/
|
|
4
|
-
export class smoSerialize {
|
|
5
|
-
static vexMerge(dest: any, src: any): void;
|
|
6
|
-
static tryParseUnicode(text: any): any;
|
|
7
|
-
static filteredMerge(attrs: any, src: any, dest: any): void;
|
|
8
|
-
static get localScore(): string;
|
|
9
|
-
static loadRemoteFile(path: any): void;
|
|
10
|
-
static get tokenMap(): any;
|
|
11
|
-
static get valueTokens(): any;
|
|
12
|
-
static reverseMap(map: any): {};
|
|
13
|
-
static get tokenValues(): {};
|
|
14
|
-
static prettifyXml(xmlDoc: any): Document;
|
|
15
|
-
static detokenize(json: any, dictionary: any): {};
|
|
16
|
-
static incrementIdentifier(label: any): any;
|
|
17
|
-
static jsonTokens(json: any): void;
|
|
18
|
-
static serializedMerge(attrs: any, src: any, dest: any): void;
|
|
19
|
-
/**
|
|
20
|
-
* Only serialize non-default values.
|
|
21
|
-
* @param {*} defaults - the class-defined defaults
|
|
22
|
-
* @param {*} attrs - the list of attributes (untyped)
|
|
23
|
-
* @param {*} src - the object we're serializing
|
|
24
|
-
* @param {*} dest - the output json
|
|
25
|
-
*/
|
|
26
|
-
static serializedMergeNonDefault(defaults: any, attrs: any, src: any, dest: any): void;
|
|
27
|
-
static stringifyAttrs(attrs: any, obj: any): string;
|
|
28
|
-
static printTranslate(_class: any): void;
|
|
29
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @category serialization
|
|
3
|
+
*/
|
|
4
|
+
export class smoSerialize {
|
|
5
|
+
static vexMerge(dest: any, src: any): void;
|
|
6
|
+
static tryParseUnicode(text: any): any;
|
|
7
|
+
static filteredMerge(attrs: any, src: any, dest: any): void;
|
|
8
|
+
static get localScore(): string;
|
|
9
|
+
static loadRemoteFile(path: any): void;
|
|
10
|
+
static get tokenMap(): any;
|
|
11
|
+
static get valueTokens(): any;
|
|
12
|
+
static reverseMap(map: any): {};
|
|
13
|
+
static get tokenValues(): {};
|
|
14
|
+
static prettifyXml(xmlDoc: any): Document;
|
|
15
|
+
static detokenize(json: any, dictionary: any): {};
|
|
16
|
+
static incrementIdentifier(label: any): any;
|
|
17
|
+
static jsonTokens(json: any): void;
|
|
18
|
+
static serializedMerge(attrs: any, src: any, dest: any): void;
|
|
19
|
+
/**
|
|
20
|
+
* Only serialize non-default values.
|
|
21
|
+
* @param {*} defaults - the class-defined defaults
|
|
22
|
+
* @param {*} attrs - the list of attributes (untyped)
|
|
23
|
+
* @param {*} src - the object we're serializing
|
|
24
|
+
* @param {*} dest - the output json
|
|
25
|
+
*/
|
|
26
|
+
static serializedMergeNonDefault(defaults: any, attrs: any, src: any, dest: any): void;
|
|
27
|
+
static stringifyAttrs(attrs: any, obj: any): string;
|
|
28
|
+
static printTranslate(_class: any): void;
|
|
29
|
+
}
|