@octoseq/visualiser 0.1.0-main.4ecb074 → 0.1.0-main.5fdb072
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 +400 -17
- package/pkg/visualiser.js +1142 -313
- package/pkg/visualiser_bg.wasm +0 -0
- package/pkg/visualiser_bg.wasm.d.ts +64 -17
package/package.json
CHANGED
package/pkg/visualiser.d.ts
CHANGED
|
@@ -8,6 +8,10 @@ export class WasmVisualiser {
|
|
|
8
8
|
* Check if a script is currently loaded.
|
|
9
9
|
*/
|
|
10
10
|
has_script(): boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Check if a signal variable exists in the current script.
|
|
13
|
+
*/
|
|
14
|
+
has_signal(name: string): boolean;
|
|
11
15
|
/**
|
|
12
16
|
* Load a Rhai script for controlling the visualiser.
|
|
13
17
|
* Returns true if the script was loaded successfully.
|
|
@@ -18,12 +22,30 @@ export class WasmVisualiser {
|
|
|
18
22
|
* The signal will be available as `inputs.<name>` in Rhai scripts.
|
|
19
23
|
*/
|
|
20
24
|
push_signal(name: string, samples: Float32Array, sample_rate: number): void;
|
|
25
|
+
/**
|
|
26
|
+
* Run script in analysis mode to collect debug.emit() signals.
|
|
27
|
+
*
|
|
28
|
+
* This runs the script headlessly across the full track duration,
|
|
29
|
+
* collecting all debug.emit() calls without rendering.
|
|
30
|
+
*
|
|
31
|
+
* Returns a JSON-serialized AnalysisResultJson.
|
|
32
|
+
*/
|
|
33
|
+
run_analysis(script: string, duration: number, time_step: number): string;
|
|
21
34
|
/**
|
|
22
35
|
* Clear all named signals.
|
|
23
36
|
*/
|
|
24
37
|
clear_signals(): void;
|
|
25
38
|
set_sigmoid_k(k: number): void;
|
|
39
|
+
/**
|
|
40
|
+
* Isolate a single entity for rendering (useful for debugging).
|
|
41
|
+
* Only this entity will be rendered.
|
|
42
|
+
*/
|
|
43
|
+
isolate_entity(entity_id: bigint): void;
|
|
26
44
|
push_zoom_data(samples: Float32Array, sample_rate: number): void;
|
|
45
|
+
/**
|
|
46
|
+
* Clear entity isolation, resume normal rendering.
|
|
47
|
+
*/
|
|
48
|
+
clear_isolation(): void;
|
|
27
49
|
/**
|
|
28
50
|
* Get current state values for debugging.
|
|
29
51
|
* Returns [time, scene_entity_count, mesh_count, line_count]
|
|
@@ -33,7 +55,312 @@ export class WasmVisualiser {
|
|
|
33
55
|
* Get the last script error message, if any.
|
|
34
56
|
*/
|
|
35
57
|
get_script_error(): string | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* Get the list of available signal names.
|
|
60
|
+
* Returns a JSON array of signal names.
|
|
61
|
+
*/
|
|
62
|
+
get_signal_names(): string;
|
|
63
|
+
/**
|
|
64
|
+
* Get a list of all registered mesh asset IDs.
|
|
65
|
+
* Returns a JSON array of asset IDs.
|
|
66
|
+
*/
|
|
67
|
+
list_mesh_assets(): string;
|
|
68
|
+
/**
|
|
69
|
+
* Push pre-extracted events for a band.
|
|
70
|
+
*
|
|
71
|
+
* Events are extracted by the TypeScript layer using the existing peak picker,
|
|
72
|
+
* then pushed here for script access via `inputs.bands[id].events`.
|
|
73
|
+
*
|
|
74
|
+
* The JSON format should be an array of event objects with:
|
|
75
|
+
* - time: f32
|
|
76
|
+
* - weight: f32
|
|
77
|
+
* - beat_position: Option<f32>
|
|
78
|
+
* - beat_phase: Option<f32>
|
|
79
|
+
* - cluster_id: Option<u32>
|
|
80
|
+
*
|
|
81
|
+
* Returns true if successful, false if parsing failed.
|
|
82
|
+
*/
|
|
83
|
+
push_band_events(band_id: string, events_json: string): boolean;
|
|
84
|
+
/**
|
|
85
|
+
* Push a band-scoped signal for use in scripts.
|
|
86
|
+
* The signal will be available as `inputs.bands[band_id].{feature}` in Rhai scripts.
|
|
87
|
+
* Stores under both band_id and band_label for dual-access support.
|
|
88
|
+
*
|
|
89
|
+
* - `band_id`: The unique ID of the frequency band.
|
|
90
|
+
* - `band_label`: The user-visible label of the band.
|
|
91
|
+
* - `feature`: Signal type ("energy", "onset", "flux").
|
|
92
|
+
* - `samples`: Signal data.
|
|
93
|
+
* - `sample_rate`: Sample rate of the signal.
|
|
94
|
+
*/
|
|
95
|
+
push_band_signal(band_id: string, band_label: string, feature: string, samples: Float32Array, sample_rate: number): void;
|
|
96
|
+
/**
|
|
97
|
+
* Push a stem-scoped signal for use in scripts.
|
|
98
|
+
* The signal will be available as `inputs.stems[stem_id].{feature}` in Rhai scripts.
|
|
99
|
+
* Stores under both stem_id and stem_label for dual-access support.
|
|
100
|
+
*
|
|
101
|
+
* - `stem_id`: The unique ID of the stem.
|
|
102
|
+
* - `stem_label`: The user-visible label of the stem.
|
|
103
|
+
* - `feature`: Signal type ("energy", "onset", "flux").
|
|
104
|
+
* - `samples`: Signal data.
|
|
105
|
+
* - `sample_rate`: Sample rate of the signal.
|
|
106
|
+
*/
|
|
107
|
+
push_stem_signal(stem_id: string, stem_label: string, feature: string, samples: Float32Array, sample_rate: number): void;
|
|
108
|
+
/**
|
|
109
|
+
* Set the musical time structure for beat-aware signal processing.
|
|
110
|
+
* The JSON format matches the TypeScript MusicalTimeStructure type.
|
|
111
|
+
* Returns true if successful, false if parsing failed.
|
|
112
|
+
*/
|
|
113
|
+
set_musical_time(json: string): boolean;
|
|
114
|
+
/**
|
|
115
|
+
* Clear all band event streams.
|
|
116
|
+
*/
|
|
117
|
+
clear_band_events(): void;
|
|
118
|
+
/**
|
|
119
|
+
* Push a named event stream (e.g., "beatCandidates") for script access.
|
|
120
|
+
*
|
|
121
|
+
* The event stream will be available as `inputs.<name>` in Rhai scripts.
|
|
122
|
+
* This is used for MIR-derived events like beat candidates, onset peaks, etc.
|
|
123
|
+
*
|
|
124
|
+
* The JSON format should be an array of event objects with:
|
|
125
|
+
* - time: f32
|
|
126
|
+
* - weight: f32
|
|
127
|
+
* - beat_position: Option<f32>
|
|
128
|
+
* - beat_phase: Option<f32>
|
|
129
|
+
* - cluster_id: Option<u32>
|
|
130
|
+
*
|
|
131
|
+
* Returns true if successful, false if parsing failed.
|
|
132
|
+
*/
|
|
133
|
+
push_event_stream(name: string, events_json: string): boolean;
|
|
134
|
+
/**
|
|
135
|
+
* Set debug visualization options.
|
|
136
|
+
*/
|
|
137
|
+
set_debug_options(wireframe: boolean, bounding_boxes: boolean): void;
|
|
138
|
+
/**
|
|
139
|
+
* Clear all band signals.
|
|
140
|
+
*/
|
|
141
|
+
clear_band_signals(): void;
|
|
142
|
+
/**
|
|
143
|
+
* Clear the musical time structure.
|
|
144
|
+
* Beat-aware operations will fall back to 120 BPM default.
|
|
145
|
+
*/
|
|
146
|
+
clear_musical_time(): void;
|
|
147
|
+
/**
|
|
148
|
+
* Clear all stem signals.
|
|
149
|
+
*/
|
|
150
|
+
clear_stem_signals(): void;
|
|
151
|
+
/**
|
|
152
|
+
* Get frequency bounds for all active bands at a given time.
|
|
153
|
+
* Returns a JSON array of { bandId, label, lowHz, highHz, enabled } objects.
|
|
154
|
+
*/
|
|
155
|
+
get_band_bounds_at(time: number): string;
|
|
156
|
+
/**
|
|
157
|
+
* Get all Signal variables from the current script.
|
|
158
|
+
* Returns a JSON array of ScriptSignalInfo objects.
|
|
159
|
+
*/
|
|
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;
|
|
36
171
|
push_rotation_data(samples: Float32Array, sample_rate: number): void;
|
|
172
|
+
/**
|
|
173
|
+
* Render with a frame budget timeout.
|
|
174
|
+
*
|
|
175
|
+
* If the frame takes longer than `budget_ms` to process, it will be dropped
|
|
176
|
+
* and a warning logged. This prevents expensive scripts from freezing the browser.
|
|
177
|
+
*
|
|
178
|
+
* Returns true if the frame completed, false if it was dropped due to budget.
|
|
179
|
+
*/
|
|
180
|
+
render_with_budget(dt: number, budget_ms: number): boolean;
|
|
181
|
+
/**
|
|
182
|
+
* Clear all named event streams.
|
|
183
|
+
*/
|
|
184
|
+
clear_event_streams(): void;
|
|
185
|
+
/**
|
|
186
|
+
* Check if frequency bands are currently set.
|
|
187
|
+
*/
|
|
188
|
+
has_frequency_bands(): boolean;
|
|
189
|
+
/**
|
|
190
|
+
* Register a mesh asset from OBJ content.
|
|
191
|
+
* The asset will be available as `mesh.load(asset_id)` in scripts.
|
|
192
|
+
* Returns true if successful, false if parsing failed.
|
|
193
|
+
*/
|
|
194
|
+
register_mesh_asset(asset_id: string, obj_content: string): boolean;
|
|
195
|
+
/**
|
|
196
|
+
* Set available stems for script namespace generation.
|
|
197
|
+
* This registers stem IDs and labels so the script engine can generate
|
|
198
|
+
* `inputs.stems["stem_id"]` and `inputs.stems["label"]` accessors.
|
|
199
|
+
*
|
|
200
|
+
* The JSON format should be an array of [id, label] pairs:
|
|
201
|
+
* `[["stem-abc123", "Drums"], ["stem-def456", "Bass"]]`
|
|
202
|
+
*
|
|
203
|
+
* Returns true if successful, false if parsing failed.
|
|
204
|
+
*/
|
|
205
|
+
set_available_stems(json: string): boolean;
|
|
206
|
+
/**
|
|
207
|
+
* Set the frequency band structure for band-aware processing.
|
|
208
|
+
* The JSON format matches the TypeScript FrequencyBandStructure type.
|
|
209
|
+
* Returns true if successful, false if parsing failed.
|
|
210
|
+
*/
|
|
211
|
+
set_frequency_bands(json: string): boolean;
|
|
212
|
+
/**
|
|
213
|
+
* Analyze a signal chain with localized sampling.
|
|
214
|
+
*
|
|
215
|
+
* Returns JSON with either:
|
|
216
|
+
* - SignalChainAnalysis on success
|
|
217
|
+
* - { "error": "message" } on failure
|
|
218
|
+
*
|
|
219
|
+
* Parameters:
|
|
220
|
+
* - signal_name: Name of the signal variable in the script
|
|
221
|
+
* - center_time: Time to center analysis around (seconds)
|
|
222
|
+
* - window_beats: Number of beats before/after center to sample
|
|
223
|
+
* - sample_count: Number of samples to take
|
|
224
|
+
*/
|
|
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;
|
|
230
|
+
/**
|
|
231
|
+
* Get the number of events for a specific band.
|
|
232
|
+
* Returns 0 if no events are stored for this band.
|
|
233
|
+
*/
|
|
234
|
+
get_band_event_count(band_id: string): number;
|
|
235
|
+
/**
|
|
236
|
+
* Get list of band keys (IDs and labels) that have signals.
|
|
237
|
+
* Returns a JSON array of strings.
|
|
238
|
+
*/
|
|
239
|
+
get_band_signal_keys(): string;
|
|
240
|
+
/**
|
|
241
|
+
* Get list of stem keys (IDs and labels) that have signals.
|
|
242
|
+
* Returns a JSON array of strings.
|
|
243
|
+
*/
|
|
244
|
+
get_stem_signal_keys(): string;
|
|
245
|
+
/**
|
|
246
|
+
* Check if performance profiling is currently enabled.
|
|
247
|
+
*/
|
|
248
|
+
is_profiling_enabled(): boolean;
|
|
249
|
+
/**
|
|
250
|
+
* Push a composed signal for use in scripts.
|
|
251
|
+
* The signal will be available as `inputs.composedSignals["name"]` in Rhai scripts.
|
|
252
|
+
*
|
|
253
|
+
* - `name`: The composed signal name (composed signals are keyed by name only).
|
|
254
|
+
* - `samples`: Signal data.
|
|
255
|
+
* - `sample_rate`: Sample rate of the signal.
|
|
256
|
+
*/
|
|
257
|
+
push_composed_signal(name: string, samples: Float32Array, sample_rate: number): void;
|
|
258
|
+
/**
|
|
259
|
+
* Clear the frequency band structure.
|
|
260
|
+
*/
|
|
261
|
+
clear_frequency_bands(): void;
|
|
262
|
+
/**
|
|
263
|
+
* Get camera state as JSON for inspector.
|
|
264
|
+
* Returns current position, rotation, target, fov, near, far, mode, and signal flags.
|
|
265
|
+
*/
|
|
266
|
+
get_camera_state_json(): string;
|
|
267
|
+
/**
|
|
268
|
+
* Enable or disable performance profiling.
|
|
269
|
+
* When enabled, console timing and collection size logging will be active.
|
|
270
|
+
*/
|
|
271
|
+
set_profiling_enabled(enabled: boolean): void;
|
|
272
|
+
/**
|
|
273
|
+
* Unregister a mesh asset.
|
|
274
|
+
* Returns true if the asset was unregistered, false if it didn't exist.
|
|
275
|
+
*/
|
|
276
|
+
unregister_mesh_asset(asset_id: string): boolean;
|
|
277
|
+
/**
|
|
278
|
+
* Clear all composed signals.
|
|
279
|
+
*/
|
|
280
|
+
clear_composed_signals(): void;
|
|
281
|
+
/**
|
|
282
|
+
* Get list of custom signal keys (IDs and labels).
|
|
283
|
+
* Returns a JSON array of strings.
|
|
284
|
+
*/
|
|
285
|
+
get_custom_signal_keys(): string;
|
|
286
|
+
/**
|
|
287
|
+
* Get the number of events in a named event stream.
|
|
288
|
+
* Returns 0 if no events are stored for this name.
|
|
289
|
+
*/
|
|
290
|
+
get_event_stream_count(name: string): number;
|
|
291
|
+
/**
|
|
292
|
+
* Get the number of frequency bands.
|
|
293
|
+
*/
|
|
294
|
+
get_frequency_band_count(): number;
|
|
295
|
+
/**
|
|
296
|
+
* Run script in analysis mode with event extraction support.
|
|
297
|
+
*
|
|
298
|
+
* This runs the script headlessly across the full track duration,
|
|
299
|
+
* collecting all debug.emit() calls AND extracting events from
|
|
300
|
+
* any signal.pick.events() calls.
|
|
301
|
+
*
|
|
302
|
+
* Returns a JSON-serialized ExtendedAnalysisResultJson.
|
|
303
|
+
*/
|
|
304
|
+
run_analysis_with_events(script: string, duration: number, time_step: number): string;
|
|
305
|
+
/**
|
|
306
|
+
* Get entity positions as JSON for debugging.
|
|
307
|
+
* Returns a JSON array of objects with id, type, and position fields.
|
|
308
|
+
*/
|
|
309
|
+
get_entity_positions_json(): string;
|
|
310
|
+
/**
|
|
311
|
+
* Push an authored event stream for script access.
|
|
312
|
+
*
|
|
313
|
+
* The event stream will be available as `inputs.authored["name"]` in Rhai scripts.
|
|
314
|
+
* This is used for user-authored events (promoted or manually created).
|
|
315
|
+
*
|
|
316
|
+
* The JSON format should be an array of event objects with:
|
|
317
|
+
* - time: f32
|
|
318
|
+
* - weight: f32
|
|
319
|
+
* - beat_position: Option<f32>
|
|
320
|
+
* - beat_phase: Option<f32>
|
|
321
|
+
* - cluster_id: Option<u32>
|
|
322
|
+
*
|
|
323
|
+
* Returns true if successful, false if parsing failed.
|
|
324
|
+
*/
|
|
325
|
+
push_authored_event_stream(name: string, events_json: string): boolean;
|
|
326
|
+
/**
|
|
327
|
+
* Clear all authored event streams.
|
|
328
|
+
*/
|
|
329
|
+
clear_authored_event_streams(): void;
|
|
330
|
+
/**
|
|
331
|
+
* Set available custom signals for script namespace generation.
|
|
332
|
+
* This registers custom signal IDs and labels so the script engine can generate
|
|
333
|
+
* `inputs.customSignals["signal_id"]` accessors.
|
|
334
|
+
*
|
|
335
|
+
* The JSON format should be an array of [id, label] pairs:
|
|
336
|
+
* `[["signal-abc123", "My Signal"], ["signal-def456", "Another Signal"]]`
|
|
337
|
+
*
|
|
338
|
+
* Returns true if successful, false if parsing failed.
|
|
339
|
+
*/
|
|
340
|
+
set_available_custom_signals(json: string): boolean;
|
|
341
|
+
/**
|
|
342
|
+
* Drain and return any pending structured script diagnostics as JSON.
|
|
343
|
+
*
|
|
344
|
+
* Intended for UI consumption. Calling this clears the pending diagnostics
|
|
345
|
+
* queue so repeated polling does not duplicate messages.
|
|
346
|
+
*/
|
|
347
|
+
take_script_diagnostics_json(): string;
|
|
348
|
+
/**
|
|
349
|
+
* Set available composed signals for script namespace generation.
|
|
350
|
+
* This registers composed signal IDs and labels so the script engine can generate
|
|
351
|
+
* `inputs.composedSignals["name"]` accessors.
|
|
352
|
+
*
|
|
353
|
+
* The JSON format should be an array of [id, label] pairs:
|
|
354
|
+
* `[["intensity", "intensity"], ["buildup", "buildup"]]`
|
|
355
|
+
*
|
|
356
|
+
* Returns true if successful, false if parsing failed.
|
|
357
|
+
*/
|
|
358
|
+
set_available_composed_signals(json: string): boolean;
|
|
359
|
+
/**
|
|
360
|
+
* Get the number of events in an authored event stream.
|
|
361
|
+
* Returns 0 if no events are stored for this name.
|
|
362
|
+
*/
|
|
363
|
+
get_authored_event_stream_count(name: string): number;
|
|
37
364
|
constructor();
|
|
38
365
|
render(dt: number): void;
|
|
39
366
|
resize(width: number, height: number): void;
|
|
@@ -43,6 +370,15 @@ export class WasmVisualiser {
|
|
|
43
370
|
|
|
44
371
|
export function create_visualiser(canvas: HTMLCanvasElement): Promise<WasmVisualiser>;
|
|
45
372
|
|
|
373
|
+
/**
|
|
374
|
+
* Get the host-defined Script API metadata as a JSON string.
|
|
375
|
+
*
|
|
376
|
+
* This is a stable, versioned description of the scripting API surface and is
|
|
377
|
+
* intended to drive editor UX (autocomplete/hover/docs) and future language
|
|
378
|
+
* bindings.
|
|
379
|
+
*/
|
|
380
|
+
export function get_script_api_metadata_json(): string;
|
|
381
|
+
|
|
46
382
|
export function init_panic_hook(): void;
|
|
47
383
|
|
|
48
384
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
@@ -50,34 +386,81 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
50
386
|
export interface InitOutput {
|
|
51
387
|
readonly memory: WebAssembly.Memory;
|
|
52
388
|
readonly __wbg_wasmvisualiser_free: (a: number, b: number) => void;
|
|
53
|
-
readonly create_visualiser: (a:
|
|
389
|
+
readonly create_visualiser: (a: number) => number;
|
|
390
|
+
readonly get_script_api_metadata_json: (a: number) => void;
|
|
391
|
+
readonly init_panic_hook: () => void;
|
|
392
|
+
readonly wasmvisualiser_analyze_signal_chain: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
393
|
+
readonly wasmvisualiser_clear_authored_event_streams: (a: number) => void;
|
|
394
|
+
readonly wasmvisualiser_clear_band_events: (a: number) => void;
|
|
395
|
+
readonly wasmvisualiser_clear_band_signals: (a: number) => void;
|
|
396
|
+
readonly wasmvisualiser_clear_composed_signals: (a: number) => void;
|
|
397
|
+
readonly wasmvisualiser_clear_custom_signals: (a: number) => void;
|
|
398
|
+
readonly wasmvisualiser_clear_event_streams: (a: number) => void;
|
|
399
|
+
readonly wasmvisualiser_clear_frequency_bands: (a: number) => void;
|
|
400
|
+
readonly wasmvisualiser_clear_isolation: (a: number) => void;
|
|
401
|
+
readonly wasmvisualiser_clear_musical_time: (a: number) => void;
|
|
54
402
|
readonly wasmvisualiser_clear_signals: (a: number) => void;
|
|
55
|
-
readonly
|
|
56
|
-
readonly
|
|
403
|
+
readonly wasmvisualiser_clear_stem_signals: (a: number) => void;
|
|
404
|
+
readonly wasmvisualiser_get_authored_event_stream_count: (a: number, b: number, c: number) => number;
|
|
405
|
+
readonly wasmvisualiser_get_band_bounds_at: (a: number, b: number, c: number) => void;
|
|
406
|
+
readonly wasmvisualiser_get_band_event_count: (a: number, b: number, c: number) => number;
|
|
407
|
+
readonly wasmvisualiser_get_band_signal_keys: (a: number, b: number) => void;
|
|
408
|
+
readonly wasmvisualiser_get_camera_state_json: (a: number, b: number) => void;
|
|
409
|
+
readonly wasmvisualiser_get_current_vals: (a: number, b: number) => void;
|
|
410
|
+
readonly wasmvisualiser_get_custom_signal_keys: (a: number, b: number) => void;
|
|
411
|
+
readonly wasmvisualiser_get_entity_positions_json: (a: number, b: number) => void;
|
|
412
|
+
readonly wasmvisualiser_get_event_stream_count: (a: number, b: number, c: number) => number;
|
|
413
|
+
readonly wasmvisualiser_get_frequency_band_count: (a: number) => number;
|
|
414
|
+
readonly wasmvisualiser_get_script_error: (a: number, b: number) => void;
|
|
415
|
+
readonly wasmvisualiser_get_script_signals: (a: number, b: number) => void;
|
|
416
|
+
readonly wasmvisualiser_get_signal_names: (a: number, b: number) => void;
|
|
417
|
+
readonly wasmvisualiser_get_stem_signal_keys: (a: number, b: number) => void;
|
|
418
|
+
readonly wasmvisualiser_has_frequency_bands: (a: number) => number;
|
|
57
419
|
readonly wasmvisualiser_has_script: (a: number) => number;
|
|
420
|
+
readonly wasmvisualiser_has_signal: (a: number, b: number, c: number) => number;
|
|
421
|
+
readonly wasmvisualiser_is_profiling_enabled: (a: number) => number;
|
|
422
|
+
readonly wasmvisualiser_isolate_entity: (a: number, b: bigint) => void;
|
|
423
|
+
readonly wasmvisualiser_list_mesh_assets: (a: number, b: number) => void;
|
|
58
424
|
readonly wasmvisualiser_load_script: (a: number, b: number, c: number) => number;
|
|
59
425
|
readonly wasmvisualiser_new: () => number;
|
|
426
|
+
readonly wasmvisualiser_push_authored_event_stream: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
427
|
+
readonly wasmvisualiser_push_band_events: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
428
|
+
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;
|
|
429
|
+
readonly wasmvisualiser_push_composed_signal: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
430
|
+
readonly wasmvisualiser_push_custom_signal: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
60
431
|
readonly wasmvisualiser_push_data: (a: number, b: number, c: number, d: number) => void;
|
|
432
|
+
readonly wasmvisualiser_push_event_stream: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
433
|
+
readonly wasmvisualiser_push_rotation_data: (a: number, b: number, c: number, d: number) => void;
|
|
61
434
|
readonly wasmvisualiser_push_signal: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
435
|
+
readonly wasmvisualiser_push_stem_signal: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
62
436
|
readonly wasmvisualiser_push_zoom_data: (a: number, b: number, c: number, d: number) => void;
|
|
437
|
+
readonly wasmvisualiser_register_mesh_asset: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
63
438
|
readonly wasmvisualiser_render: (a: number, b: number) => void;
|
|
439
|
+
readonly wasmvisualiser_render_with_budget: (a: number, b: number, c: number) => number;
|
|
64
440
|
readonly wasmvisualiser_resize: (a: number, b: number, c: number) => void;
|
|
441
|
+
readonly wasmvisualiser_run_analysis: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
442
|
+
readonly wasmvisualiser_run_analysis_with_events: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
443
|
+
readonly wasmvisualiser_set_available_composed_signals: (a: number, b: number, c: number) => number;
|
|
444
|
+
readonly wasmvisualiser_set_available_custom_signals: (a: number, b: number, c: number) => number;
|
|
445
|
+
readonly wasmvisualiser_set_available_stems: (a: number, b: number, c: number) => number;
|
|
446
|
+
readonly wasmvisualiser_set_debug_options: (a: number, b: number, c: number) => void;
|
|
447
|
+
readonly wasmvisualiser_set_frequency_bands: (a: number, b: number, c: number) => number;
|
|
448
|
+
readonly wasmvisualiser_set_musical_time: (a: number, b: number, c: number) => number;
|
|
449
|
+
readonly wasmvisualiser_set_profiling_enabled: (a: number, b: number) => void;
|
|
65
450
|
readonly wasmvisualiser_set_sigmoid_k: (a: number, b: number) => void;
|
|
66
451
|
readonly wasmvisualiser_set_time: (a: number, b: number) => void;
|
|
67
|
-
readonly
|
|
68
|
-
readonly
|
|
69
|
-
readonly
|
|
70
|
-
readonly
|
|
71
|
-
readonly
|
|
72
|
-
readonly
|
|
73
|
-
readonly
|
|
74
|
-
readonly
|
|
75
|
-
readonly
|
|
76
|
-
readonly
|
|
77
|
-
readonly
|
|
78
|
-
readonly
|
|
79
|
-
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
80
|
-
readonly __wbindgen_start: () => void;
|
|
452
|
+
readonly wasmvisualiser_take_script_diagnostics_json: (a: number, b: number) => void;
|
|
453
|
+
readonly wasmvisualiser_unregister_mesh_asset: (a: number, b: number, c: number) => number;
|
|
454
|
+
readonly __wasm_bindgen_func_elem_10256: (a: number, b: number, c: number) => void;
|
|
455
|
+
readonly __wasm_bindgen_func_elem_10192: (a: number, b: number) => void;
|
|
456
|
+
readonly __wasm_bindgen_func_elem_11338: (a: number, b: number, c: number) => void;
|
|
457
|
+
readonly __wasm_bindgen_func_elem_11323: (a: number, b: number) => void;
|
|
458
|
+
readonly __wasm_bindgen_func_elem_11945: (a: number, b: number, c: number, d: number) => void;
|
|
459
|
+
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
460
|
+
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
461
|
+
readonly __wbindgen_export3: (a: number) => void;
|
|
462
|
+
readonly __wbindgen_export4: (a: number, b: number, c: number) => void;
|
|
463
|
+
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
81
464
|
}
|
|
82
465
|
|
|
83
466
|
export type SyncInitInput = BufferSource | WebAssembly.Module;
|