@scalable-vector-audio/sva-wasm 0.11.0 → 0.13.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/package.json +1 -1
- package/sva_wasm.d.ts +4 -5
- package/sva_wasm.js +41 -42
- package/sva_wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/sva_wasm.d.ts
CHANGED
|
@@ -179,11 +179,10 @@ export class Composition {
|
|
|
179
179
|
*/
|
|
180
180
|
persist(): Promise<number>;
|
|
181
181
|
/**
|
|
182
|
-
* `target` as `sva-cli render` takes
|
|
183
|
-
*
|
|
184
|
-
* `
|
|
185
|
-
*
|
|
186
|
-
* block.
|
|
182
|
+
* `target` and `representations` as `sva-cli render` takes them. `options`: `rate`,
|
|
183
|
+
* `bits`, `until`, `volatile`, `out: null` (no samples), `threads` (as `open` takes it),
|
|
184
|
+
* `set` (`--set`, as `{ "key": "G3" }`), and `signal`: aborted, it throws an
|
|
185
|
+
* `AbortError` before its next block.
|
|
187
186
|
*/
|
|
188
187
|
render(target: string, representations: string[] | null | undefined, options: any): Promise<Rendering>;
|
|
189
188
|
/**
|
package/sva_wasm.js
CHANGED
|
@@ -104,11 +104,10 @@ export class Composition {
|
|
|
104
104
|
return ret;
|
|
105
105
|
}
|
|
106
106
|
/**
|
|
107
|
-
* `target` as `sva-cli render` takes
|
|
108
|
-
*
|
|
109
|
-
* `
|
|
110
|
-
*
|
|
111
|
-
* block.
|
|
107
|
+
* `target` and `representations` as `sva-cli render` takes them. `options`: `rate`,
|
|
108
|
+
* `bits`, `until`, `volatile`, `out: null` (no samples), `threads` (as `open` takes it),
|
|
109
|
+
* `set` (`--set`, as `{ "key": "G3" }`), and `signal`: aborted, it throws an
|
|
110
|
+
* `AbortError` before its next block.
|
|
112
111
|
* @param {string} target
|
|
113
112
|
* @param {string[] | null | undefined} representations
|
|
114
113
|
* @param {any} options
|
|
@@ -613,7 +612,7 @@ function __wbg_get_imports(memory) {
|
|
|
613
612
|
__wbg__wbg_cb_unref_997e73d32238e655: function(arg0) {
|
|
614
613
|
arg0._wbg_cb_unref();
|
|
615
614
|
},
|
|
616
|
-
|
|
615
|
+
__wbg_arrayBuffer_810f7228b46c8f41: function(arg0) {
|
|
617
616
|
const ret = arg0.arrayBuffer();
|
|
618
617
|
return ret;
|
|
619
618
|
},
|
|
@@ -633,10 +632,10 @@ function __wbg_get_imports(memory) {
|
|
|
633
632
|
const ret = arg0.call(arg1, arg2);
|
|
634
633
|
return ret;
|
|
635
634
|
}, arguments); },
|
|
636
|
-
|
|
635
|
+
__wbg_close_5427eb23d903b0f8: function(arg0) {
|
|
637
636
|
arg0.close();
|
|
638
637
|
},
|
|
639
|
-
|
|
638
|
+
__wbg_close_a2df20815e4bf503: function(arg0) {
|
|
640
639
|
const ret = arg0.close();
|
|
641
640
|
return ret;
|
|
642
641
|
},
|
|
@@ -644,7 +643,7 @@ function __wbg_get_imports(memory) {
|
|
|
644
643
|
const ret = Composition.__wrap(arg0);
|
|
645
644
|
return ret;
|
|
646
645
|
},
|
|
647
|
-
|
|
646
|
+
__wbg_createWritable_145e86fce0262469: function(arg0) {
|
|
648
647
|
const ret = arg0.createWritable();
|
|
649
648
|
return ret;
|
|
650
649
|
},
|
|
@@ -660,15 +659,15 @@ function __wbg_get_imports(memory) {
|
|
|
660
659
|
const ret = Array.from(arg0);
|
|
661
660
|
return ret;
|
|
662
661
|
},
|
|
663
|
-
|
|
662
|
+
__wbg_getDirectoryHandle_4cb5dc411f3b65da: function(arg0, arg1, arg2, arg3) {
|
|
664
663
|
const ret = arg0.getDirectoryHandle(getStringFromWasm0(arg1, arg2), arg3);
|
|
665
664
|
return ret;
|
|
666
665
|
},
|
|
667
|
-
|
|
666
|
+
__wbg_getFileHandle_9a4ffeb043b45668: function(arg0, arg1, arg2, arg3) {
|
|
668
667
|
const ret = arg0.getFileHandle(getStringFromWasm0(arg1, arg2), arg3);
|
|
669
668
|
return ret;
|
|
670
669
|
},
|
|
671
|
-
|
|
670
|
+
__wbg_getFile_b5d4b4a7376258ce: function(arg0) {
|
|
672
671
|
const ret = arg0.getFile();
|
|
673
672
|
return ret;
|
|
674
673
|
},
|
|
@@ -712,7 +711,7 @@ function __wbg_get_imports(memory) {
|
|
|
712
711
|
const ret = Array.isArray(arg0);
|
|
713
712
|
return ret;
|
|
714
713
|
},
|
|
715
|
-
|
|
714
|
+
__wbg_keys_bde24e08ed1a32b0: function(arg0) {
|
|
716
715
|
const ret = arg0.keys();
|
|
717
716
|
return ret;
|
|
718
717
|
},
|
|
@@ -728,11 +727,11 @@ function __wbg_get_imports(memory) {
|
|
|
728
727
|
const ret = arg0.length;
|
|
729
728
|
return ret;
|
|
730
729
|
},
|
|
731
|
-
|
|
730
|
+
__wbg_move_40e2e4721ae6d2a8: function(arg0, arg1, arg2, arg3) {
|
|
732
731
|
const ret = arg0.move(arg1, getStringFromWasm0(arg2, arg3));
|
|
733
732
|
return ret;
|
|
734
733
|
},
|
|
735
|
-
|
|
734
|
+
__wbg_name_524cf4139d6e286c: function(arg0, arg1) {
|
|
736
735
|
const ret = arg1.name;
|
|
737
736
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
738
737
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -747,6 +746,10 @@ function __wbg_get_imports(memory) {
|
|
|
747
746
|
const ret = new Uint8Array(arg0);
|
|
748
747
|
return ret;
|
|
749
748
|
},
|
|
749
|
+
__wbg_new_8a9e5760497c0a2b: function(arg0, arg1) {
|
|
750
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
751
|
+
return ret;
|
|
752
|
+
},
|
|
750
753
|
__wbg_new_8f72ed7c652bf5a2: function(arg0, arg1) {
|
|
751
754
|
try {
|
|
752
755
|
var state0 = {a: arg0, b: arg1};
|
|
@@ -769,11 +772,7 @@ function __wbg_get_imports(memory) {
|
|
|
769
772
|
const ret = new Object();
|
|
770
773
|
return ret;
|
|
771
774
|
},
|
|
772
|
-
|
|
773
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
774
|
-
return ret;
|
|
775
|
-
},
|
|
776
|
-
__wbg_new_e52e8f4c5b574d55: function() {
|
|
775
|
+
__wbg_new_e0796e4de117a197: function() {
|
|
777
776
|
const ret = new MessageChannel();
|
|
778
777
|
return ret;
|
|
779
778
|
},
|
|
@@ -807,7 +806,7 @@ function __wbg_get_imports(memory) {
|
|
|
807
806
|
const ret = new Worker(getStringFromWasm0(arg0, arg1));
|
|
808
807
|
return ret;
|
|
809
808
|
},
|
|
810
|
-
|
|
809
|
+
__wbg_next_9fb58d2c17e9b50c: function(arg0) {
|
|
811
810
|
const ret = arg0.next();
|
|
812
811
|
return ret;
|
|
813
812
|
},
|
|
@@ -815,24 +814,24 @@ function __wbg_get_imports(memory) {
|
|
|
815
814
|
const ret = Array.of(arg0, arg1, arg2);
|
|
816
815
|
return ret;
|
|
817
816
|
},
|
|
818
|
-
|
|
817
|
+
__wbg_parse_3349f3b1ae3d47bd: function() { return handleError(function (arg0, arg1) {
|
|
819
818
|
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
820
819
|
return ret;
|
|
821
820
|
}, arguments); },
|
|
822
|
-
|
|
821
|
+
__wbg_port1_a3a268f3b8bf84d5: function(arg0) {
|
|
823
822
|
const ret = arg0.port1;
|
|
824
823
|
return ret;
|
|
825
824
|
},
|
|
826
|
-
|
|
825
|
+
__wbg_port2_826b71632c9fe813: function(arg0) {
|
|
827
826
|
const ret = arg0.port2;
|
|
828
827
|
return ret;
|
|
829
828
|
},
|
|
829
|
+
__wbg_postMessage_4a4c29590b1f39dd: function(arg0, arg1) {
|
|
830
|
+
arg0.postMessage(arg1);
|
|
831
|
+
},
|
|
830
832
|
__wbg_postMessage_8105a302ed002474: function() { return handleError(function (arg0, arg1) {
|
|
831
833
|
arg0.postMessage(arg1);
|
|
832
834
|
}, arguments); },
|
|
833
|
-
__wbg_postMessage_dc1191d4fd33fa7d: function(arg0, arg1) {
|
|
834
|
-
arg0.postMessage(arg1);
|
|
835
|
-
},
|
|
836
835
|
__wbg_prototypesetcall_ae9f5e7459250748: function(arg0, arg1, arg2) {
|
|
837
836
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
838
837
|
},
|
|
@@ -840,7 +839,7 @@ function __wbg_get_imports(memory) {
|
|
|
840
839
|
const ret = arg0.push(arg1);
|
|
841
840
|
return ret;
|
|
842
841
|
},
|
|
843
|
-
|
|
842
|
+
__wbg_query_88dcc2774fd3a335: function(arg0) {
|
|
844
843
|
const ret = arg0.query();
|
|
845
844
|
return ret;
|
|
846
845
|
},
|
|
@@ -855,19 +854,19 @@ function __wbg_get_imports(memory) {
|
|
|
855
854
|
const ret = Math.random();
|
|
856
855
|
return ret;
|
|
857
856
|
},
|
|
858
|
-
|
|
859
|
-
const ret = arg0.removeEntry(getStringFromWasm0(arg1, arg2)
|
|
857
|
+
__wbg_removeEntry_38627de1fe7ba240: function(arg0, arg1, arg2) {
|
|
858
|
+
const ret = arg0.removeEntry(getStringFromWasm0(arg1, arg2));
|
|
860
859
|
return ret;
|
|
861
860
|
},
|
|
862
|
-
|
|
863
|
-
const ret = arg0.removeEntry(getStringFromWasm0(arg1, arg2));
|
|
861
|
+
__wbg_removeEntry_e34efbc5f01f6b5f: function(arg0, arg1, arg2, arg3) {
|
|
862
|
+
const ret = arg0.removeEntry(getStringFromWasm0(arg1, arg2), arg3);
|
|
864
863
|
return ret;
|
|
865
864
|
},
|
|
866
865
|
__wbg_rendering_new: function(arg0) {
|
|
867
866
|
const ret = Rendering.__wrap(arg0);
|
|
868
867
|
return ret;
|
|
869
868
|
},
|
|
870
|
-
|
|
869
|
+
__wbg_request_74deb266e2a87fe1: function(arg0, arg1, arg2, arg3) {
|
|
871
870
|
const ret = arg0.request(getStringFromWasm0(arg1, arg2), arg3);
|
|
872
871
|
return ret;
|
|
873
872
|
},
|
|
@@ -882,23 +881,23 @@ function __wbg_get_imports(memory) {
|
|
|
882
881
|
__wbg_set_c41f8dbc07a2190f: function(arg0, arg1, arg2) {
|
|
883
882
|
arg0.set(getArrayF32FromWasm0(arg1, arg2));
|
|
884
883
|
},
|
|
885
|
-
|
|
884
|
+
__wbg_set_name_22b4417b4c97e87e: function(arg0, arg1, arg2) {
|
|
886
885
|
arg0.name = getStringFromWasm0(arg1, arg2);
|
|
887
886
|
},
|
|
888
887
|
__wbg_set_onmessage_2244c2525c4e0c38: function(arg0, arg1) {
|
|
889
888
|
arg0.onmessage = arg1;
|
|
890
889
|
},
|
|
891
|
-
|
|
890
|
+
__wbg_set_onmessage_f739f9bee7fad0f2: function(arg0, arg1) {
|
|
892
891
|
arg0.onmessage = arg1;
|
|
893
892
|
},
|
|
894
|
-
|
|
893
|
+
__wbg_set_refusal_3e1e1c48b3974cc0: function(arg0, arg1) {
|
|
895
894
|
arg0.refusal = arg1;
|
|
896
895
|
},
|
|
897
|
-
|
|
896
|
+
__wbg_size_77b5472d63b94b67: function(arg0) {
|
|
898
897
|
const ret = arg0.size;
|
|
899
898
|
return ret;
|
|
900
899
|
},
|
|
901
|
-
|
|
900
|
+
__wbg_slice_56219865578a32dd: function(arg0, arg1, arg2) {
|
|
902
901
|
const ret = arg0.slice(arg1, arg2);
|
|
903
902
|
return ret;
|
|
904
903
|
},
|
|
@@ -958,10 +957,10 @@ function __wbg_get_imports(memory) {
|
|
|
958
957
|
const ret = Atomics.waitAsync;
|
|
959
958
|
return ret;
|
|
960
959
|
},
|
|
961
|
-
|
|
960
|
+
__wbg_warn_f6a6f8ed4bca72c3: function(arg0, arg1) {
|
|
962
961
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
963
962
|
},
|
|
964
|
-
|
|
963
|
+
__wbg_write_b3c77f8b67d4a410: function(arg0, arg1) {
|
|
965
964
|
const ret = arg0.write(arg1);
|
|
966
965
|
return ret;
|
|
967
966
|
},
|
|
@@ -971,12 +970,12 @@ function __wbg_get_imports(memory) {
|
|
|
971
970
|
return ret;
|
|
972
971
|
},
|
|
973
972
|
__wbindgen_generic_0000000000000002: function(arg0, arg1) {
|
|
974
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
973
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 547, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
975
974
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_d3a5247b0aa3f0ac___convert__closures_____invoke___wasm_bindgen_d3a5247b0aa3f0ac___JsValue__core_ea519e494776717c___result__Result_____wasm_bindgen_d3a5247b0aa3f0ac___JsError___true_);
|
|
976
975
|
return ret;
|
|
977
976
|
},
|
|
978
977
|
__wbindgen_generic_0000000000000003: function(arg0, arg1) {
|
|
979
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
978
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 549, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
980
979
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_d3a5247b0aa3f0ac___convert__closures_____invoke___js_sys_2b088e2931f41c5___futures__task__wait_async_polyfill__MessageEvent______true_);
|
|
981
980
|
return ret;
|
|
982
981
|
},
|
package/sva_wasm_bg.wasm
CHANGED
|
Binary file
|