@werckmeister/components 1.1.6-85 → 1.1.6-91
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/index.d.ts +10 -2
- package/index.js +2 -2
- package/package.json +2 -2
- package/werckmeister-components.js +4 -4
package/index.d.ts
CHANGED
|
@@ -6,6 +6,14 @@ export declare enum PlayerState {
|
|
|
6
6
|
Playing = 2,
|
|
7
7
|
Stopping = 3
|
|
8
8
|
}
|
|
9
|
+
export interface Task {
|
|
10
|
+
id: string;
|
|
11
|
+
name: string;
|
|
12
|
+
}
|
|
13
|
+
export interface TaskVisitor {
|
|
14
|
+
newTasks(tasks: Task[]): any;
|
|
15
|
+
done(task: Task): any;
|
|
16
|
+
}
|
|
9
17
|
export declare class WerckmeisterMidiPlayer {
|
|
10
18
|
private static instaces;
|
|
11
19
|
private instanceId;
|
|
@@ -24,7 +32,6 @@ export declare class WerckmeisterMidiPlayer {
|
|
|
24
32
|
private soundFontHash;
|
|
25
33
|
private repoUrl;
|
|
26
34
|
private audioNodes;
|
|
27
|
-
private playblackNode;
|
|
28
35
|
rendererBufferSeconds: number;
|
|
29
36
|
gain: number;
|
|
30
37
|
constructor();
|
|
@@ -38,7 +45,8 @@ export declare class WerckmeisterMidiPlayer {
|
|
|
38
45
|
private instrumentHash;
|
|
39
46
|
private instrumentsHash;
|
|
40
47
|
private getSoundfont;
|
|
41
|
-
|
|
48
|
+
private currentTaskVisitor;
|
|
49
|
+
load(base64MidiFileData: string, taskVisitor?: TaskVisitor | undefined): Promise<void>;
|
|
42
50
|
private sleepAsync;
|
|
43
51
|
play(): Promise<void>;
|
|
44
52
|
stop(): void;
|