@algo-wasm/algo-wasm 1.0.0 → 1.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.
- package/CHANGELOG.md +79 -0
- package/README.md +6 -4
- package/dist/algo-wasm-error.d.ts +13 -0
- package/dist/algo-wasm-player.d.ts +169 -0
- package/dist/algo_wasm.wasm +0 -0
- package/dist/built-in-profiles.d.ts +5 -0
- package/dist/engine-core.d.ts +96 -0
- package/dist/events.d.ts +5 -1
- package/dist/index.d.ts +3 -4
- package/dist/index.js +1 -6
- package/dist/integrations/phaser.d.ts +9 -2
- package/dist/integrations/phaser.js +1 -16
- package/dist/integrations/react.d.ts +8 -2
- package/dist/integrations/react.js +1 -28
- package/dist/integrations/svelte.d.ts +6 -2
- package/dist/integrations/svelte.js +1 -17
- package/dist/integrations/vue.d.ts +7 -2
- package/dist/integrations/vue.js +1 -16
- package/dist/load-wasm.d.ts +92 -0
- package/dist/profile-schema.json +317 -228
- package/dist/profile-spec.d.ts +178 -0
- package/dist/profile-wire.d.ts +50 -0
- package/dist/profile.d.ts +25 -1
- package/dist/types.d.ts +25 -1
- package/dist/wire-decode.d.ts +18 -0
- package/dist/worklet/algo-worklet.d.ts +1 -83
- package/dist/worklet/algo-worklet.js +1 -471
- package/package.json +1 -1
- package/dist/AlgoWasmError.d.ts +0 -8
- package/dist/AlgoWasmError.d.ts.map +0 -1
- package/dist/AlgoWasmError.js +0 -9
- package/dist/AlgoWasmError.js.map +0 -1
- package/dist/AlgoWasmPlayer.d.ts +0 -48
- package/dist/AlgoWasmPlayer.d.ts.map +0 -1
- package/dist/AlgoWasmPlayer.js +0 -375
- package/dist/AlgoWasmPlayer.js.map +0 -1
- package/dist/events.d.ts.map +0 -1
- package/dist/events.js +0 -25
- package/dist/events.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/integrations/phaser.d.ts.map +0 -1
- package/dist/integrations/phaser.js.map +0 -1
- package/dist/integrations/react.d.ts.map +0 -1
- package/dist/integrations/react.js.map +0 -1
- package/dist/integrations/svelte.d.ts.map +0 -1
- package/dist/integrations/svelte.js.map +0 -1
- package/dist/integrations/vue.d.ts.map +0 -1
- package/dist/integrations/vue.js.map +0 -1
- package/dist/loadWasm.d.ts +0 -47
- package/dist/loadWasm.d.ts.map +0 -1
- package/dist/loadWasm.js +0 -229
- package/dist/loadWasm.js.map +0 -1
- package/dist/profile.d.ts.map +0 -1
- package/dist/profile.js +0 -525
- package/dist/profile.js.map +0 -1
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -2
- package/dist/types.js.map +0 -1
- package/dist/worklet/algo-worklet.d.ts.map +0 -1
- package/dist/worklet/algo-worklet.js.map +0 -1
package/dist/loadWasm.js
DELETED
|
@@ -1,229 +0,0 @@
|
|
|
1
|
-
import { AlgoWasmError } from './AlgoWasmError.js';
|
|
2
|
-
import { splitSeed } from './profile.js';
|
|
3
|
-
export async function instantiateAlgoWasm(wasmUrl) {
|
|
4
|
-
const url = wasmUrl.toString();
|
|
5
|
-
const imports = {};
|
|
6
|
-
const response = await fetch(url);
|
|
7
|
-
if (!response.ok) {
|
|
8
|
-
throw new AlgoWasmError('wasm_load_failed', `Could not load AlgoWASM from ${url}. The server returned ${response.status}.`);
|
|
9
|
-
}
|
|
10
|
-
if (WebAssembly.instantiateStreaming) {
|
|
11
|
-
try {
|
|
12
|
-
const result = await WebAssembly.instantiateStreaming(response, imports);
|
|
13
|
-
return {
|
|
14
|
-
instance: result.instance,
|
|
15
|
-
module: result.module
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
catch (error) {
|
|
19
|
-
if (response.headers.get('content-type') === 'application/wasm') {
|
|
20
|
-
throw new AlgoWasmError('wasm_load_failed', 'WASM streaming compilation failed even though the server served application/wasm.', { cause: error });
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
const fallbackResponse = await fetch(url);
|
|
25
|
-
if (!fallbackResponse.ok) {
|
|
26
|
-
throw new AlgoWasmError('wasm_load_failed', `Could not load AlgoWASM fallback bytes from ${url}. The server returned ${fallbackResponse.status}.`);
|
|
27
|
-
}
|
|
28
|
-
const bytes = await fallbackResponse.arrayBuffer();
|
|
29
|
-
const result = await WebAssembly.instantiate(bytes, imports);
|
|
30
|
-
return {
|
|
31
|
-
instance: result.instance,
|
|
32
|
-
module: result.module
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
export class AlgoWasmEngineBinding {
|
|
36
|
-
exports;
|
|
37
|
-
encoder = new TextEncoder();
|
|
38
|
-
decoder = new TextDecoder();
|
|
39
|
-
enginePtr = 0;
|
|
40
|
-
renderPtr = 0;
|
|
41
|
-
renderLength = 0;
|
|
42
|
-
renderView;
|
|
43
|
-
constructor(instance) {
|
|
44
|
-
this.exports = instance.exports;
|
|
45
|
-
this.requireMemory();
|
|
46
|
-
this.requireExport('algo_wasm_alloc');
|
|
47
|
-
this.requireExport('algo_wasm_dealloc');
|
|
48
|
-
}
|
|
49
|
-
create(sampleRate, seed, profile) {
|
|
50
|
-
if (this.enginePtr !== 0) {
|
|
51
|
-
this.destroy();
|
|
52
|
-
}
|
|
53
|
-
const { high, low } = splitSeed(seed);
|
|
54
|
-
const profileJson = JSON.stringify(profile);
|
|
55
|
-
const result = this.withString(profileJson, (pointer, length) => this.call('algo_wasm_engine_create', sampleRate, high, low, pointer, length));
|
|
56
|
-
if (result === 0) {
|
|
57
|
-
throw new AlgoWasmError('engine_failed', this.readLastError('AlgoWASM engine creation failed.'));
|
|
58
|
-
}
|
|
59
|
-
this.enginePtr = result;
|
|
60
|
-
}
|
|
61
|
-
start() {
|
|
62
|
-
this.callEngine('algo_wasm_engine_start');
|
|
63
|
-
}
|
|
64
|
-
pause() {
|
|
65
|
-
this.callEngine('algo_wasm_engine_pause');
|
|
66
|
-
}
|
|
67
|
-
resume() {
|
|
68
|
-
this.callEngine('algo_wasm_engine_resume');
|
|
69
|
-
}
|
|
70
|
-
stop() {
|
|
71
|
-
this.callEngine('algo_wasm_engine_stop');
|
|
72
|
-
}
|
|
73
|
-
setSeed(seed) {
|
|
74
|
-
const { high, low } = splitSeed(seed);
|
|
75
|
-
this.callEngine('algo_wasm_engine_set_seed', high, low);
|
|
76
|
-
}
|
|
77
|
-
setProfile(profile) {
|
|
78
|
-
const profileJson = JSON.stringify(profile);
|
|
79
|
-
const result = this.withString(profileJson, (pointer, length) => this.call('algo_wasm_engine_set_profile', this.enginePtr, pointer, length));
|
|
80
|
-
this.assertCode(result, 'Profile update failed.');
|
|
81
|
-
}
|
|
82
|
-
setVolume(value) {
|
|
83
|
-
this.callEngine('algo_wasm_engine_set_volume', value);
|
|
84
|
-
}
|
|
85
|
-
setEnergy(value) {
|
|
86
|
-
this.callEngine('algo_wasm_engine_set_energy', value);
|
|
87
|
-
}
|
|
88
|
-
setIntensity(value) {
|
|
89
|
-
this.callEngine('algo_wasm_engine_set_intensity', value);
|
|
90
|
-
}
|
|
91
|
-
setMood(value) {
|
|
92
|
-
const result = this.withString(value, (pointer, length) => this.call('algo_wasm_engine_set_mood', this.enginePtr, pointer, length));
|
|
93
|
-
this.assertCode(result, 'Mood update failed.');
|
|
94
|
-
}
|
|
95
|
-
setTempoRange(minBpm, maxBpm) {
|
|
96
|
-
this.callEngine('algo_wasm_engine_set_tempo_range', minBpm, maxBpm);
|
|
97
|
-
}
|
|
98
|
-
setMuted(trackId, muted) {
|
|
99
|
-
const result = this.withString(trackId, (pointer, length) => this.call('algo_wasm_engine_set_muted', this.enginePtr, pointer, length, muted ? 1 : 0));
|
|
100
|
-
this.assertCode(result, 'Mute update failed.');
|
|
101
|
-
}
|
|
102
|
-
setSolo(trackId, solo) {
|
|
103
|
-
const result = this.withString(trackId, (pointer, length) => this.call('algo_wasm_engine_set_solo', this.enginePtr, pointer, length, solo ? 1 : 0));
|
|
104
|
-
this.assertCode(result, 'Solo update failed.');
|
|
105
|
-
}
|
|
106
|
-
renderTo(output) {
|
|
107
|
-
this.ensureEngine();
|
|
108
|
-
this.ensureRenderBuffer(output.length);
|
|
109
|
-
const result = this.call('algo_wasm_engine_render', this.enginePtr, this.renderPtr, output.length);
|
|
110
|
-
this.assertCode(result, 'Render failed.');
|
|
111
|
-
if (!this.renderView || this.renderView.length !== output.length) {
|
|
112
|
-
this.renderView = new Float32Array(this.memory.buffer, this.renderPtr, output.length);
|
|
113
|
-
}
|
|
114
|
-
output.set(this.renderView);
|
|
115
|
-
}
|
|
116
|
-
snapshot() {
|
|
117
|
-
this.ensureEngine();
|
|
118
|
-
const length = this.call('algo_wasm_engine_snapshot_json', this.enginePtr);
|
|
119
|
-
return this.readJson(length);
|
|
120
|
-
}
|
|
121
|
-
events() {
|
|
122
|
-
this.ensureEngine();
|
|
123
|
-
const length = this.call('algo_wasm_engine_events_json', this.enginePtr);
|
|
124
|
-
return this.readJson(length);
|
|
125
|
-
}
|
|
126
|
-
exportMidi() {
|
|
127
|
-
this.ensureEngine();
|
|
128
|
-
const length = this.call('algo_wasm_engine_export_midi', this.enginePtr);
|
|
129
|
-
const pointer = this.call('algo_wasm_bytes_ptr');
|
|
130
|
-
return new Uint8Array(this.memory.buffer, pointer, length).slice();
|
|
131
|
-
}
|
|
132
|
-
destroy() {
|
|
133
|
-
if (this.renderPtr !== 0) {
|
|
134
|
-
this.call('algo_wasm_dealloc', this.renderPtr, this.renderLength * 4);
|
|
135
|
-
this.renderPtr = 0;
|
|
136
|
-
this.renderLength = 0;
|
|
137
|
-
this.renderView = undefined;
|
|
138
|
-
}
|
|
139
|
-
if (this.enginePtr !== 0) {
|
|
140
|
-
this.call('algo_wasm_engine_destroy', this.enginePtr);
|
|
141
|
-
this.enginePtr = 0;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
ensureRenderBuffer(length) {
|
|
145
|
-
if (this.renderPtr !== 0 && this.renderLength >= length) {
|
|
146
|
-
if (this.renderView?.buffer !== this.memory.buffer) {
|
|
147
|
-
this.renderView = new Float32Array(this.memory.buffer, this.renderPtr, this.renderLength);
|
|
148
|
-
}
|
|
149
|
-
return;
|
|
150
|
-
}
|
|
151
|
-
if (this.renderPtr !== 0) {
|
|
152
|
-
this.call('algo_wasm_dealloc', this.renderPtr, this.renderLength * 4);
|
|
153
|
-
}
|
|
154
|
-
this.renderLength = length;
|
|
155
|
-
this.renderPtr = this.call('algo_wasm_alloc', length * 4);
|
|
156
|
-
if (this.renderPtr === 0) {
|
|
157
|
-
throw new AlgoWasmError('render_failed', 'Could not allocate the WASM render buffer.');
|
|
158
|
-
}
|
|
159
|
-
this.renderView = new Float32Array(this.memory.buffer, this.renderPtr, length);
|
|
160
|
-
}
|
|
161
|
-
get memory() {
|
|
162
|
-
return this.requireMemory();
|
|
163
|
-
}
|
|
164
|
-
requireMemory() {
|
|
165
|
-
const memory = this.exports.memory;
|
|
166
|
-
if (!(memory instanceof WebAssembly.Memory)) {
|
|
167
|
-
throw new AlgoWasmError('wasm_load_failed', 'AlgoWASM did not export a WebAssembly memory.');
|
|
168
|
-
}
|
|
169
|
-
return memory;
|
|
170
|
-
}
|
|
171
|
-
requireExport(name) {
|
|
172
|
-
const fn = this.exports[name];
|
|
173
|
-
if (typeof fn !== 'function') {
|
|
174
|
-
throw new AlgoWasmError('wasm_load_failed', `AlgoWASM is missing the ${name} export.`);
|
|
175
|
-
}
|
|
176
|
-
return fn;
|
|
177
|
-
}
|
|
178
|
-
call(name, ...args) {
|
|
179
|
-
return this.requireExport(name)(...args);
|
|
180
|
-
}
|
|
181
|
-
callEngine(name, ...args) {
|
|
182
|
-
this.ensureEngine();
|
|
183
|
-
const result = this.call(name, this.enginePtr, ...args);
|
|
184
|
-
this.assertCode(result, `${String(name)} failed.`);
|
|
185
|
-
}
|
|
186
|
-
assertCode(result, fallback) {
|
|
187
|
-
if (result !== 0) {
|
|
188
|
-
throw new AlgoWasmError('engine_failed', this.readLastError(fallback));
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
ensureEngine() {
|
|
192
|
-
if (this.enginePtr === 0) {
|
|
193
|
-
throw new AlgoWasmError('engine_failed', 'AlgoWASM engine has not been created.');
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
withString(value, callback) {
|
|
197
|
-
const bytes = this.encoder.encode(value);
|
|
198
|
-
const pointer = this.call('algo_wasm_alloc', bytes.length);
|
|
199
|
-
if (pointer === 0) {
|
|
200
|
-
throw new AlgoWasmError('engine_failed', 'Could not allocate a WASM string buffer.');
|
|
201
|
-
}
|
|
202
|
-
new Uint8Array(this.memory.buffer, pointer, bytes.length).set(bytes);
|
|
203
|
-
try {
|
|
204
|
-
return callback(pointer, bytes.length);
|
|
205
|
-
}
|
|
206
|
-
finally {
|
|
207
|
-
this.call('algo_wasm_dealloc', pointer, bytes.length);
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
readJson(length) {
|
|
211
|
-
if (length === 0) {
|
|
212
|
-
const error = this.readLastError('AlgoWASM returned an empty JSON buffer.');
|
|
213
|
-
throw new AlgoWasmError('engine_failed', error);
|
|
214
|
-
}
|
|
215
|
-
const pointer = this.call('algo_wasm_json_ptr');
|
|
216
|
-
const bytes = new Uint8Array(this.memory.buffer, pointer, length);
|
|
217
|
-
return JSON.parse(this.decoder.decode(bytes));
|
|
218
|
-
}
|
|
219
|
-
readLastError(fallback) {
|
|
220
|
-
const length = this.call('algo_wasm_last_error_len');
|
|
221
|
-
if (length === 0) {
|
|
222
|
-
return fallback;
|
|
223
|
-
}
|
|
224
|
-
const pointer = this.call('algo_wasm_last_error_ptr');
|
|
225
|
-
const bytes = new Uint8Array(this.memory.buffer, pointer, length);
|
|
226
|
-
return this.decoder.decode(bytes);
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
//# sourceMappingURL=loadWasm.js.map
|
package/dist/loadWasm.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loadWasm.js","sourceRoot":"","sources":["../src/loadWasm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa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