@octoseq/visualiser 0.1.0-main.2975d70 → 0.1.0-main.2b93a77
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/package.json +1 -1
- package/pkg/visualiser.d.ts +56 -5
- package/pkg/visualiser.js +119 -17
- package/pkg/visualiser_bg.wasm +0 -0
- package/pkg/visualiser_bg.wasm.d.ts +12 -5
package/package.json
CHANGED
package/pkg/visualiser.d.ts
CHANGED
|
@@ -158,6 +158,16 @@ export class WasmVisualiser {
|
|
|
158
158
|
* Returns a JSON array of ScriptSignalInfo objects.
|
|
159
159
|
*/
|
|
160
160
|
get_script_signals(): string;
|
|
161
|
+
/**
|
|
162
|
+
* Push a custom signal for use in scripts.
|
|
163
|
+
* The signal will be available as `inputs.customSignals["signal_id"]` in Rhai scripts.
|
|
164
|
+
*
|
|
165
|
+
* - `signal_id`: The unique ID of the custom signal.
|
|
166
|
+
* - `label`: The user-visible label of the signal.
|
|
167
|
+
* - `samples`: Signal data.
|
|
168
|
+
* - `sample_rate`: Sample rate of the signal.
|
|
169
|
+
*/
|
|
170
|
+
push_custom_signal(signal_id: string, label: string, samples: Float32Array, sample_rate: number): void;
|
|
161
171
|
push_rotation_data(samples: Float32Array, sample_rate: number): void;
|
|
162
172
|
/**
|
|
163
173
|
* Render with a frame budget timeout.
|
|
@@ -213,6 +223,10 @@ export class WasmVisualiser {
|
|
|
213
223
|
* - sample_count: Number of samples to take
|
|
214
224
|
*/
|
|
215
225
|
analyze_signal_chain(signal_name: string, center_time: number, window_beats: number, sample_count: number): string;
|
|
226
|
+
/**
|
|
227
|
+
* Clear all custom signals.
|
|
228
|
+
*/
|
|
229
|
+
clear_custom_signals(): void;
|
|
216
230
|
/**
|
|
217
231
|
* Get the number of events for a specific band.
|
|
218
232
|
* Returns 0 if no events are stored for this band.
|
|
@@ -228,15 +242,34 @@ export class WasmVisualiser {
|
|
|
228
242
|
* Returns a JSON array of strings.
|
|
229
243
|
*/
|
|
230
244
|
get_stem_signal_keys(): string;
|
|
245
|
+
/**
|
|
246
|
+
* Check if performance profiling is currently enabled.
|
|
247
|
+
*/
|
|
248
|
+
is_profiling_enabled(): boolean;
|
|
231
249
|
/**
|
|
232
250
|
* Clear the frequency band structure.
|
|
233
251
|
*/
|
|
234
252
|
clear_frequency_bands(): void;
|
|
253
|
+
/**
|
|
254
|
+
* Get camera state as JSON for inspector.
|
|
255
|
+
* Returns current position, rotation, target, fov, near, far, mode, and signal flags.
|
|
256
|
+
*/
|
|
257
|
+
get_camera_state_json(): string;
|
|
258
|
+
/**
|
|
259
|
+
* Enable or disable performance profiling.
|
|
260
|
+
* When enabled, console timing and collection size logging will be active.
|
|
261
|
+
*/
|
|
262
|
+
set_profiling_enabled(enabled: boolean): void;
|
|
235
263
|
/**
|
|
236
264
|
* Unregister a mesh asset.
|
|
237
265
|
* Returns true if the asset was unregistered, false if it didn't exist.
|
|
238
266
|
*/
|
|
239
267
|
unregister_mesh_asset(asset_id: string): boolean;
|
|
268
|
+
/**
|
|
269
|
+
* Get list of custom signal keys (IDs and labels).
|
|
270
|
+
* Returns a JSON array of strings.
|
|
271
|
+
*/
|
|
272
|
+
get_custom_signal_keys(): string;
|
|
240
273
|
/**
|
|
241
274
|
* Get the number of events in a named event stream.
|
|
242
275
|
* Returns 0 if no events are stored for this name.
|
|
@@ -281,6 +314,17 @@ export class WasmVisualiser {
|
|
|
281
314
|
* Clear all authored event streams.
|
|
282
315
|
*/
|
|
283
316
|
clear_authored_event_streams(): void;
|
|
317
|
+
/**
|
|
318
|
+
* Set available custom signals for script namespace generation.
|
|
319
|
+
* This registers custom signal IDs and labels so the script engine can generate
|
|
320
|
+
* `inputs.customSignals["signal_id"]` accessors.
|
|
321
|
+
*
|
|
322
|
+
* The JSON format should be an array of [id, label] pairs:
|
|
323
|
+
* `[["signal-abc123", "My Signal"], ["signal-def456", "Another Signal"]]`
|
|
324
|
+
*
|
|
325
|
+
* Returns true if successful, false if parsing failed.
|
|
326
|
+
*/
|
|
327
|
+
set_available_custom_signals(json: string): boolean;
|
|
284
328
|
/**
|
|
285
329
|
* Drain and return any pending structured script diagnostics as JSON.
|
|
286
330
|
*
|
|
@@ -324,6 +368,7 @@ export interface InitOutput {
|
|
|
324
368
|
readonly wasmvisualiser_clear_authored_event_streams: (a: number) => void;
|
|
325
369
|
readonly wasmvisualiser_clear_band_events: (a: number) => void;
|
|
326
370
|
readonly wasmvisualiser_clear_band_signals: (a: number) => void;
|
|
371
|
+
readonly wasmvisualiser_clear_custom_signals: (a: number) => void;
|
|
327
372
|
readonly wasmvisualiser_clear_event_streams: (a: number) => void;
|
|
328
373
|
readonly wasmvisualiser_clear_frequency_bands: (a: number) => void;
|
|
329
374
|
readonly wasmvisualiser_clear_isolation: (a: number) => void;
|
|
@@ -334,7 +379,9 @@ export interface InitOutput {
|
|
|
334
379
|
readonly wasmvisualiser_get_band_bounds_at: (a: number, b: number) => [number, number];
|
|
335
380
|
readonly wasmvisualiser_get_band_event_count: (a: number, b: number, c: number) => number;
|
|
336
381
|
readonly wasmvisualiser_get_band_signal_keys: (a: number) => [number, number];
|
|
382
|
+
readonly wasmvisualiser_get_camera_state_json: (a: number) => [number, number];
|
|
337
383
|
readonly wasmvisualiser_get_current_vals: (a: number) => [number, number];
|
|
384
|
+
readonly wasmvisualiser_get_custom_signal_keys: (a: number) => [number, number];
|
|
338
385
|
readonly wasmvisualiser_get_entity_positions_json: (a: number) => [number, number];
|
|
339
386
|
readonly wasmvisualiser_get_event_stream_count: (a: number, b: number, c: number) => number;
|
|
340
387
|
readonly wasmvisualiser_get_frequency_band_count: (a: number) => number;
|
|
@@ -345,6 +392,7 @@ export interface InitOutput {
|
|
|
345
392
|
readonly wasmvisualiser_has_frequency_bands: (a: number) => number;
|
|
346
393
|
readonly wasmvisualiser_has_script: (a: number) => number;
|
|
347
394
|
readonly wasmvisualiser_has_signal: (a: number, b: number, c: number) => number;
|
|
395
|
+
readonly wasmvisualiser_is_profiling_enabled: (a: number) => number;
|
|
348
396
|
readonly wasmvisualiser_isolate_entity: (a: number, b: bigint) => void;
|
|
349
397
|
readonly wasmvisualiser_list_mesh_assets: (a: number) => [number, number];
|
|
350
398
|
readonly wasmvisualiser_load_script: (a: number, b: number, c: number) => number;
|
|
@@ -352,6 +400,7 @@ export interface InitOutput {
|
|
|
352
400
|
readonly wasmvisualiser_push_authored_event_stream: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
353
401
|
readonly wasmvisualiser_push_band_events: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
354
402
|
readonly wasmvisualiser_push_band_signal: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
403
|
+
readonly wasmvisualiser_push_custom_signal: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
355
404
|
readonly wasmvisualiser_push_data: (a: number, b: number, c: number, d: number) => void;
|
|
356
405
|
readonly wasmvisualiser_push_event_stream: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
357
406
|
readonly wasmvisualiser_push_signal: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
@@ -363,21 +412,23 @@ export interface InitOutput {
|
|
|
363
412
|
readonly wasmvisualiser_resize: (a: number, b: number, c: number) => void;
|
|
364
413
|
readonly wasmvisualiser_run_analysis: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
365
414
|
readonly wasmvisualiser_run_analysis_with_events: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
415
|
+
readonly wasmvisualiser_set_available_custom_signals: (a: number, b: number, c: number) => number;
|
|
366
416
|
readonly wasmvisualiser_set_available_stems: (a: number, b: number, c: number) => number;
|
|
367
417
|
readonly wasmvisualiser_set_debug_options: (a: number, b: number, c: number) => void;
|
|
368
418
|
readonly wasmvisualiser_set_frequency_bands: (a: number, b: number, c: number) => number;
|
|
369
419
|
readonly wasmvisualiser_set_musical_time: (a: number, b: number, c: number) => number;
|
|
420
|
+
readonly wasmvisualiser_set_profiling_enabled: (a: number, b: number) => void;
|
|
370
421
|
readonly wasmvisualiser_set_sigmoid_k: (a: number, b: number) => void;
|
|
371
422
|
readonly wasmvisualiser_set_time: (a: number, b: number) => void;
|
|
372
423
|
readonly wasmvisualiser_take_script_diagnostics_json: (a: number) => [number, number];
|
|
373
424
|
readonly wasmvisualiser_unregister_mesh_asset: (a: number, b: number, c: number) => number;
|
|
374
425
|
readonly wasmvisualiser_push_rotation_data: (a: number, b: number, c: number, d: number) => void;
|
|
375
426
|
readonly init_panic_hook: () => void;
|
|
376
|
-
readonly
|
|
377
|
-
readonly
|
|
378
|
-
readonly
|
|
379
|
-
readonly
|
|
380
|
-
readonly
|
|
427
|
+
readonly wasm_bindgen__convert__closures_____invoke__h09705603bb35b975: (a: number, b: number, c: any) => void;
|
|
428
|
+
readonly wasm_bindgen__closure__destroy__h6518d8d5fffe1051: (a: number, b: number) => void;
|
|
429
|
+
readonly wasm_bindgen__convert__closures_____invoke__hd456749e88b4d731: (a: number, b: number, c: any) => void;
|
|
430
|
+
readonly wasm_bindgen__closure__destroy__hff2bb8e37b7072b2: (a: number, b: number) => void;
|
|
431
|
+
readonly wasm_bindgen__convert__closures_____invoke__h12a8c25a05856851: (a: number, b: number, c: any, d: any) => void;
|
|
381
432
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
382
433
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
383
434
|
readonly __wbindgen_exn_store: (a: number) => void;
|
package/pkg/visualiser.js
CHANGED
|
@@ -241,16 +241,16 @@ if (!('encodeInto' in cachedTextEncoder)) {
|
|
|
241
241
|
|
|
242
242
|
let WASM_VECTOR_LEN = 0;
|
|
243
243
|
|
|
244
|
-
function
|
|
245
|
-
wasm.
|
|
244
|
+
function wasm_bindgen__convert__closures_____invoke__h09705603bb35b975(arg0, arg1, arg2) {
|
|
245
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h09705603bb35b975(arg0, arg1, arg2);
|
|
246
246
|
}
|
|
247
247
|
|
|
248
|
-
function
|
|
249
|
-
wasm.
|
|
248
|
+
function wasm_bindgen__convert__closures_____invoke__hd456749e88b4d731(arg0, arg1, arg2) {
|
|
249
|
+
wasm.wasm_bindgen__convert__closures_____invoke__hd456749e88b4d731(arg0, arg1, arg2);
|
|
250
250
|
}
|
|
251
251
|
|
|
252
|
-
function
|
|
253
|
-
wasm.
|
|
252
|
+
function wasm_bindgen__convert__closures_____invoke__h12a8c25a05856851(arg0, arg1, arg2, arg3) {
|
|
253
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h12a8c25a05856851(arg0, arg1, arg2, arg3);
|
|
254
254
|
}
|
|
255
255
|
|
|
256
256
|
const __wbindgen_enum_GpuCompilationMessageType = ["error", "warning", "info"];
|
|
@@ -636,6 +636,28 @@ export class WasmVisualiser {
|
|
|
636
636
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
637
637
|
}
|
|
638
638
|
}
|
|
639
|
+
/**
|
|
640
|
+
* Push a custom signal for use in scripts.
|
|
641
|
+
* The signal will be available as `inputs.customSignals["signal_id"]` in Rhai scripts.
|
|
642
|
+
*
|
|
643
|
+
* - `signal_id`: The unique ID of the custom signal.
|
|
644
|
+
* - `label`: The user-visible label of the signal.
|
|
645
|
+
* - `samples`: Signal data.
|
|
646
|
+
* - `sample_rate`: Sample rate of the signal.
|
|
647
|
+
* @param {string} signal_id
|
|
648
|
+
* @param {string} label
|
|
649
|
+
* @param {Float32Array} samples
|
|
650
|
+
* @param {number} sample_rate
|
|
651
|
+
*/
|
|
652
|
+
push_custom_signal(signal_id, label, samples, sample_rate) {
|
|
653
|
+
const ptr0 = passStringToWasm0(signal_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
654
|
+
const len0 = WASM_VECTOR_LEN;
|
|
655
|
+
const ptr1 = passStringToWasm0(label, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
656
|
+
const len1 = WASM_VECTOR_LEN;
|
|
657
|
+
const ptr2 = passArrayF32ToWasm0(samples, wasm.__wbindgen_malloc);
|
|
658
|
+
const len2 = WASM_VECTOR_LEN;
|
|
659
|
+
wasm.wasmvisualiser_push_custom_signal(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, sample_rate);
|
|
660
|
+
}
|
|
639
661
|
/**
|
|
640
662
|
* @param {Float32Array} samples
|
|
641
663
|
* @param {number} sample_rate
|
|
@@ -753,6 +775,12 @@ export class WasmVisualiser {
|
|
|
753
775
|
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
754
776
|
}
|
|
755
777
|
}
|
|
778
|
+
/**
|
|
779
|
+
* Clear all custom signals.
|
|
780
|
+
*/
|
|
781
|
+
clear_custom_signals() {
|
|
782
|
+
wasm.wasmvisualiser_clear_custom_signals(this.__wbg_ptr);
|
|
783
|
+
}
|
|
756
784
|
/**
|
|
757
785
|
* Get the number of events for a specific band.
|
|
758
786
|
* Returns 0 if no events are stored for this band.
|
|
@@ -799,12 +827,45 @@ export class WasmVisualiser {
|
|
|
799
827
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
800
828
|
}
|
|
801
829
|
}
|
|
830
|
+
/**
|
|
831
|
+
* Check if performance profiling is currently enabled.
|
|
832
|
+
* @returns {boolean}
|
|
833
|
+
*/
|
|
834
|
+
is_profiling_enabled() {
|
|
835
|
+
const ret = wasm.wasmvisualiser_is_profiling_enabled(this.__wbg_ptr);
|
|
836
|
+
return ret !== 0;
|
|
837
|
+
}
|
|
802
838
|
/**
|
|
803
839
|
* Clear the frequency band structure.
|
|
804
840
|
*/
|
|
805
841
|
clear_frequency_bands() {
|
|
806
842
|
wasm.wasmvisualiser_clear_frequency_bands(this.__wbg_ptr);
|
|
807
843
|
}
|
|
844
|
+
/**
|
|
845
|
+
* Get camera state as JSON for inspector.
|
|
846
|
+
* Returns current position, rotation, target, fov, near, far, mode, and signal flags.
|
|
847
|
+
* @returns {string}
|
|
848
|
+
*/
|
|
849
|
+
get_camera_state_json() {
|
|
850
|
+
let deferred1_0;
|
|
851
|
+
let deferred1_1;
|
|
852
|
+
try {
|
|
853
|
+
const ret = wasm.wasmvisualiser_get_camera_state_json(this.__wbg_ptr);
|
|
854
|
+
deferred1_0 = ret[0];
|
|
855
|
+
deferred1_1 = ret[1];
|
|
856
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
857
|
+
} finally {
|
|
858
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
/**
|
|
862
|
+
* Enable or disable performance profiling.
|
|
863
|
+
* When enabled, console timing and collection size logging will be active.
|
|
864
|
+
* @param {boolean} enabled
|
|
865
|
+
*/
|
|
866
|
+
set_profiling_enabled(enabled) {
|
|
867
|
+
wasm.wasmvisualiser_set_profiling_enabled(this.__wbg_ptr, enabled);
|
|
868
|
+
}
|
|
808
869
|
/**
|
|
809
870
|
* Unregister a mesh asset.
|
|
810
871
|
* Returns true if the asset was unregistered, false if it didn't exist.
|
|
@@ -817,6 +878,23 @@ export class WasmVisualiser {
|
|
|
817
878
|
const ret = wasm.wasmvisualiser_unregister_mesh_asset(this.__wbg_ptr, ptr0, len0);
|
|
818
879
|
return ret !== 0;
|
|
819
880
|
}
|
|
881
|
+
/**
|
|
882
|
+
* Get list of custom signal keys (IDs and labels).
|
|
883
|
+
* Returns a JSON array of strings.
|
|
884
|
+
* @returns {string}
|
|
885
|
+
*/
|
|
886
|
+
get_custom_signal_keys() {
|
|
887
|
+
let deferred1_0;
|
|
888
|
+
let deferred1_1;
|
|
889
|
+
try {
|
|
890
|
+
const ret = wasm.wasmvisualiser_get_custom_signal_keys(this.__wbg_ptr);
|
|
891
|
+
deferred1_0 = ret[0];
|
|
892
|
+
deferred1_1 = ret[1];
|
|
893
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
894
|
+
} finally {
|
|
895
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
896
|
+
}
|
|
897
|
+
}
|
|
820
898
|
/**
|
|
821
899
|
* Get the number of events in a named event stream.
|
|
822
900
|
* Returns 0 if no events are stored for this name.
|
|
@@ -913,6 +991,24 @@ export class WasmVisualiser {
|
|
|
913
991
|
clear_authored_event_streams() {
|
|
914
992
|
wasm.wasmvisualiser_clear_authored_event_streams(this.__wbg_ptr);
|
|
915
993
|
}
|
|
994
|
+
/**
|
|
995
|
+
* Set available custom signals for script namespace generation.
|
|
996
|
+
* This registers custom signal IDs and labels so the script engine can generate
|
|
997
|
+
* `inputs.customSignals["signal_id"]` accessors.
|
|
998
|
+
*
|
|
999
|
+
* The JSON format should be an array of [id, label] pairs:
|
|
1000
|
+
* `[["signal-abc123", "My Signal"], ["signal-def456", "Another Signal"]]`
|
|
1001
|
+
*
|
|
1002
|
+
* Returns true if successful, false if parsing failed.
|
|
1003
|
+
* @param {string} json
|
|
1004
|
+
* @returns {boolean}
|
|
1005
|
+
*/
|
|
1006
|
+
set_available_custom_signals(json) {
|
|
1007
|
+
const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1008
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1009
|
+
const ret = wasm.wasmvisualiser_set_available_custom_signals(this.__wbg_ptr, ptr0, len0);
|
|
1010
|
+
return ret !== 0;
|
|
1011
|
+
}
|
|
916
1012
|
/**
|
|
917
1013
|
* Drain and return any pending structured script diagnostics as JSON.
|
|
918
1014
|
*
|
|
@@ -1631,7 +1727,7 @@ function __wbg_get_imports() {
|
|
|
1631
1727
|
const a = state0.a;
|
|
1632
1728
|
state0.a = 0;
|
|
1633
1729
|
try {
|
|
1634
|
-
return
|
|
1730
|
+
return wasm_bindgen__convert__closures_____invoke__h12a8c25a05856851(a, state0.b, arg0, arg1);
|
|
1635
1731
|
} finally {
|
|
1636
1732
|
state0.a = a;
|
|
1637
1733
|
}
|
|
@@ -1837,6 +1933,12 @@ function __wbg_get_imports() {
|
|
|
1837
1933
|
const ret = arg0.then(arg1);
|
|
1838
1934
|
return ret;
|
|
1839
1935
|
};
|
|
1936
|
+
imports.wbg.__wbg_timeEnd_46ed224117e5f2d2 = function(arg0, arg1) {
|
|
1937
|
+
console.timeEnd(getStringFromWasm0(arg0, arg1));
|
|
1938
|
+
};
|
|
1939
|
+
imports.wbg.__wbg_time_c49415b636fbbf3f = function(arg0, arg1) {
|
|
1940
|
+
console.time(getStringFromWasm0(arg0, arg1));
|
|
1941
|
+
};
|
|
1840
1942
|
imports.wbg.__wbg_type_c0d5d83032e9858a = function(arg0) {
|
|
1841
1943
|
const ret = arg0.type;
|
|
1842
1944
|
return (__wbindgen_enum_GpuCompilationMessageType.indexOf(ret) + 1 || 4) - 1;
|
|
@@ -1869,31 +1971,31 @@ function __wbg_get_imports() {
|
|
|
1869
1971
|
imports.wbg.__wbg_writeTexture_246118eb2f5a1592 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
1870
1972
|
arg0.writeTexture(arg1, arg2, arg3, arg4);
|
|
1871
1973
|
};
|
|
1872
|
-
imports.wbg.__wbindgen_cast_20a09e3b1a4dd0c5 = function(arg0, arg1) {
|
|
1873
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 3344, function: Function { arguments: [Externref], shim_idx: 3345, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1874
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hf5eaa61ced318e08, wasm_bindgen__convert__closures_____invoke__h53437a38721e89f7);
|
|
1875
|
-
return ret;
|
|
1876
|
-
};
|
|
1877
1974
|
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
1878
1975
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1879
1976
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
1880
1977
|
return ret;
|
|
1881
1978
|
};
|
|
1979
|
+
imports.wbg.__wbindgen_cast_54f2c7bc1ca2afbc = function(arg0, arg1) {
|
|
1980
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 3497, function: Function { arguments: [NamedExternref("GPUUncapturedErrorEvent")], shim_idx: 3498, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1981
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h6518d8d5fffe1051, wasm_bindgen__convert__closures_____invoke__h09705603bb35b975);
|
|
1982
|
+
return ret;
|
|
1983
|
+
};
|
|
1882
1984
|
imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
|
|
1883
1985
|
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
1884
1986
|
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
1885
1987
|
return ret;
|
|
1886
1988
|
};
|
|
1887
|
-
imports.wbg.__wbindgen_cast_d06b8da61cc8218a = function(arg0, arg1) {
|
|
1888
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 3212, function: Function { arguments: [NamedExternref("GPUUncapturedErrorEvent")], shim_idx: 3213, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1889
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__heb49a8f426ac2d2e, wasm_bindgen__convert__closures_____invoke__h9d1c5a23ecfcd5c8);
|
|
1890
|
-
return ret;
|
|
1891
|
-
};
|
|
1892
1989
|
imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
|
|
1893
1990
|
// Cast intrinsic for `F64 -> Externref`.
|
|
1894
1991
|
const ret = arg0;
|
|
1895
1992
|
return ret;
|
|
1896
1993
|
};
|
|
1994
|
+
imports.wbg.__wbindgen_cast_da960f736a939e79 = function(arg0, arg1) {
|
|
1995
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 3506, function: Function { arguments: [Externref], shim_idx: 3507, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1996
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hff2bb8e37b7072b2, wasm_bindgen__convert__closures_____invoke__hd456749e88b4d731);
|
|
1997
|
+
return ret;
|
|
1998
|
+
};
|
|
1897
1999
|
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
1898
2000
|
const table = wasm.__wbindgen_externrefs;
|
|
1899
2001
|
const offset = table.grow(4);
|
package/pkg/visualiser_bg.wasm
CHANGED
|
Binary file
|
|
@@ -8,6 +8,7 @@ export const wasmvisualiser_analyze_signal_chain: (a: number, b: number, c: numb
|
|
|
8
8
|
export const wasmvisualiser_clear_authored_event_streams: (a: number) => void;
|
|
9
9
|
export const wasmvisualiser_clear_band_events: (a: number) => void;
|
|
10
10
|
export const wasmvisualiser_clear_band_signals: (a: number) => void;
|
|
11
|
+
export const wasmvisualiser_clear_custom_signals: (a: number) => void;
|
|
11
12
|
export const wasmvisualiser_clear_event_streams: (a: number) => void;
|
|
12
13
|
export const wasmvisualiser_clear_frequency_bands: (a: number) => void;
|
|
13
14
|
export const wasmvisualiser_clear_isolation: (a: number) => void;
|
|
@@ -18,7 +19,9 @@ export const wasmvisualiser_get_authored_event_stream_count: (a: number, b: numb
|
|
|
18
19
|
export const wasmvisualiser_get_band_bounds_at: (a: number, b: number) => [number, number];
|
|
19
20
|
export const wasmvisualiser_get_band_event_count: (a: number, b: number, c: number) => number;
|
|
20
21
|
export const wasmvisualiser_get_band_signal_keys: (a: number) => [number, number];
|
|
22
|
+
export const wasmvisualiser_get_camera_state_json: (a: number) => [number, number];
|
|
21
23
|
export const wasmvisualiser_get_current_vals: (a: number) => [number, number];
|
|
24
|
+
export const wasmvisualiser_get_custom_signal_keys: (a: number) => [number, number];
|
|
22
25
|
export const wasmvisualiser_get_entity_positions_json: (a: number) => [number, number];
|
|
23
26
|
export const wasmvisualiser_get_event_stream_count: (a: number, b: number, c: number) => number;
|
|
24
27
|
export const wasmvisualiser_get_frequency_band_count: (a: number) => number;
|
|
@@ -29,6 +32,7 @@ export const wasmvisualiser_get_stem_signal_keys: (a: number) => [number, number
|
|
|
29
32
|
export const wasmvisualiser_has_frequency_bands: (a: number) => number;
|
|
30
33
|
export const wasmvisualiser_has_script: (a: number) => number;
|
|
31
34
|
export const wasmvisualiser_has_signal: (a: number, b: number, c: number) => number;
|
|
35
|
+
export const wasmvisualiser_is_profiling_enabled: (a: number) => number;
|
|
32
36
|
export const wasmvisualiser_isolate_entity: (a: number, b: bigint) => void;
|
|
33
37
|
export const wasmvisualiser_list_mesh_assets: (a: number) => [number, number];
|
|
34
38
|
export const wasmvisualiser_load_script: (a: number, b: number, c: number) => number;
|
|
@@ -36,6 +40,7 @@ export const wasmvisualiser_new: () => number;
|
|
|
36
40
|
export const wasmvisualiser_push_authored_event_stream: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
37
41
|
export const wasmvisualiser_push_band_events: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
38
42
|
export const wasmvisualiser_push_band_signal: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
43
|
+
export const wasmvisualiser_push_custom_signal: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
39
44
|
export const wasmvisualiser_push_data: (a: number, b: number, c: number, d: number) => void;
|
|
40
45
|
export const wasmvisualiser_push_event_stream: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
41
46
|
export const wasmvisualiser_push_signal: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
@@ -47,21 +52,23 @@ export const wasmvisualiser_render_with_budget: (a: number, b: number, c: number
|
|
|
47
52
|
export const wasmvisualiser_resize: (a: number, b: number, c: number) => void;
|
|
48
53
|
export const wasmvisualiser_run_analysis: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
49
54
|
export const wasmvisualiser_run_analysis_with_events: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
55
|
+
export const wasmvisualiser_set_available_custom_signals: (a: number, b: number, c: number) => number;
|
|
50
56
|
export const wasmvisualiser_set_available_stems: (a: number, b: number, c: number) => number;
|
|
51
57
|
export const wasmvisualiser_set_debug_options: (a: number, b: number, c: number) => void;
|
|
52
58
|
export const wasmvisualiser_set_frequency_bands: (a: number, b: number, c: number) => number;
|
|
53
59
|
export const wasmvisualiser_set_musical_time: (a: number, b: number, c: number) => number;
|
|
60
|
+
export const wasmvisualiser_set_profiling_enabled: (a: number, b: number) => void;
|
|
54
61
|
export const wasmvisualiser_set_sigmoid_k: (a: number, b: number) => void;
|
|
55
62
|
export const wasmvisualiser_set_time: (a: number, b: number) => void;
|
|
56
63
|
export const wasmvisualiser_take_script_diagnostics_json: (a: number) => [number, number];
|
|
57
64
|
export const wasmvisualiser_unregister_mesh_asset: (a: number, b: number, c: number) => number;
|
|
58
65
|
export const wasmvisualiser_push_rotation_data: (a: number, b: number, c: number, d: number) => void;
|
|
59
66
|
export const init_panic_hook: () => void;
|
|
60
|
-
export const
|
|
61
|
-
export const
|
|
62
|
-
export const
|
|
63
|
-
export const
|
|
64
|
-
export const
|
|
67
|
+
export const wasm_bindgen__convert__closures_____invoke__h09705603bb35b975: (a: number, b: number, c: any) => void;
|
|
68
|
+
export const wasm_bindgen__closure__destroy__h6518d8d5fffe1051: (a: number, b: number) => void;
|
|
69
|
+
export const wasm_bindgen__convert__closures_____invoke__hd456749e88b4d731: (a: number, b: number, c: any) => void;
|
|
70
|
+
export const wasm_bindgen__closure__destroy__hff2bb8e37b7072b2: (a: number, b: number) => void;
|
|
71
|
+
export const wasm_bindgen__convert__closures_____invoke__h12a8c25a05856851: (a: number, b: number, c: any, d: any) => void;
|
|
65
72
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
66
73
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
67
74
|
export const __wbindgen_exn_store: (a: number) => void;
|