@scalable-vector-audio/sva-wasm 0.7.5 → 0.7.6

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 CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@scalable-vector-audio/sva-wasm",
3
3
  "type": "module",
4
4
  "description": "JS bindings: a composition a page fills node by node, rendered in the browser",
5
- "version": "0.7.5",
5
+ "version": "0.7.6",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
package/sva_wasm.d.ts CHANGED
@@ -75,7 +75,7 @@ export class Rendering {
75
75
  * A target block by block, reading `@notes` as the sum of its terms, as `@hall(t, x=@notes)`.
76
76
  * A key-up replaces a term with one whose release is a number. A term leaves with its handle
77
77
  * once the stream passes its support. An edit lands at the first block boundary
78
- * after the store answered it; `read` and every getter answer meanwhile.
78
+ * once the store answered it; `read` and getters answer meanwhile.
79
79
  */
80
80
  export class Stream {
81
81
  private constructor();
@@ -103,7 +103,8 @@ export class Stream {
103
103
  /**
104
104
  * Writes frames from sample `at` into `out` (a SharedArrayBuffer view too) interleaved,
105
105
  * `out[i * channels + c]`, and returns how many: `out.length / channels`, fewer at the end.
106
- * A later `at` skips; live, what needed the span starts silent, in `stats().dropped`.
106
+ * A later `at` skips; live, what needed the span starts silent, in `stats().dropped`; only
107
+ * `until` ends it.
107
108
  */
108
109
  read(at: number, out: Float32Array): number;
109
110
  remove(handle: number): Promise<boolean>;
@@ -189,7 +190,7 @@ export interface InitOutput {
189
190
  readonly stream_work: (a: number) => [number, number, number];
190
191
  readonly wasm_bindgen__convert__closures_____invoke__h76bd71bceeca2b95: (a: number, b: number, c: any, d: any) => void;
191
192
  readonly wasm_bindgen__convert__closures_____invoke__hd55bb211d6a08150: (a: number, b: number, c: any) => [number, number];
192
- readonly wasm_bindgen__convert__closures_____invoke__hdbc466ca7f9f0a3d: (a: number, b: number) => any;
193
+ readonly wasm_bindgen__convert__closures_____invoke__h54b0491e342de8d6: (a: number, b: number) => any;
193
194
  readonly __wbindgen_malloc: (a: number, b: number) => number;
194
195
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
195
196
  readonly __wbindgen_exn_store: (a: number) => void;
package/sva_wasm.js CHANGED
@@ -324,7 +324,7 @@ if (Symbol.dispose) Rendering.prototype[Symbol.dispose] = Rendering.prototype.fr
324
324
  * A target block by block, reading `@notes` as the sum of its terms, as `@hall(t, x=@notes)`.
325
325
  * A key-up replaces a term with one whose release is a number. A term leaves with its handle
326
326
  * once the stream passes its support. An edit lands at the first block boundary
327
- * after the store answered it; `read` and every getter answer meanwhile.
327
+ * once the store answered it; `read` and getters answer meanwhile.
328
328
  */
329
329
  export class Stream {
330
330
  static __wrap(ptr) {
@@ -433,7 +433,8 @@ export class Stream {
433
433
  /**
434
434
  * Writes frames from sample `at` into `out` (a SharedArrayBuffer view too) interleaved,
435
435
  * `out[i * channels + c]`, and returns how many: `out.length / channels`, fewer at the end.
436
- * A later `at` skips; live, what needed the span starts silent, in `stats().dropped`.
436
+ * A later `at` skips; live, what needed the span starts silent, in `stats().dropped`; only
437
+ * `until` ends it.
437
438
  * @param {number} at
438
439
  * @param {Float32Array} out
439
440
  * @returns {number}
@@ -575,7 +576,7 @@ function __wbg_get_imports() {
575
576
  __wbg__wbg_cb_unref_997e73d32238e655: function(arg0) {
576
577
  arg0._wbg_cb_unref();
577
578
  },
578
- __wbg_arrayBuffer_365a1d1685a4dba2: function(arg0) {
579
+ __wbg_arrayBuffer_2f1c765e36c9fb62: function(arg0) {
579
580
  const ret = arg0.arrayBuffer();
580
581
  return ret;
581
582
  },
@@ -587,7 +588,7 @@ function __wbg_get_imports() {
587
588
  const ret = arg0.call(arg1, arg2);
588
589
  return ret;
589
590
  }, arguments); },
590
- __wbg_close_3b77a51c1dcac752: function(arg0) {
591
+ __wbg_close_533a7c36218f5d58: function(arg0) {
591
592
  const ret = arg0.close();
592
593
  return ret;
593
594
  },
@@ -595,7 +596,7 @@ function __wbg_get_imports() {
595
596
  const ret = Composition.__wrap(arg0);
596
597
  return ret;
597
598
  },
598
- __wbg_createWritable_bae1c9fdac782d30: function(arg0) {
599
+ __wbg_createWritable_182bdbcca544b24d: function(arg0) {
599
600
  const ret = arg0.createWritable();
600
601
  return ret;
601
602
  },
@@ -607,15 +608,15 @@ function __wbg_get_imports() {
607
608
  const ret = Array.from(arg0);
608
609
  return ret;
609
610
  },
610
- __wbg_getDirectoryHandle_473d1681af2be45f: function(arg0, arg1, arg2, arg3) {
611
+ __wbg_getDirectoryHandle_e281c6755fe12d56: function(arg0, arg1, arg2, arg3) {
611
612
  const ret = arg0.getDirectoryHandle(getStringFromWasm0(arg1, arg2), arg3);
612
613
  return ret;
613
614
  },
614
- __wbg_getFileHandle_99897b6c3d5e9074: function(arg0, arg1, arg2, arg3) {
615
+ __wbg_getFileHandle_b403a34ad14e9653: function(arg0, arg1, arg2, arg3) {
615
616
  const ret = arg0.getFileHandle(getStringFromWasm0(arg1, arg2), arg3);
616
617
  return ret;
617
618
  },
618
- __wbg_getFile_88cdc01f283a7055: function(arg0) {
619
+ __wbg_getFile_d1f96537d20037ad: function(arg0) {
619
620
  const ret = arg0.getFile();
620
621
  return ret;
621
622
  },
@@ -645,7 +646,7 @@ function __wbg_get_imports() {
645
646
  const ret = Array.isArray(arg0);
646
647
  return ret;
647
648
  },
648
- __wbg_keys_362be373e394df7e: function(arg0) {
649
+ __wbg_keys_2087ac2edc496ab7: function(arg0) {
649
650
  const ret = arg0.keys();
650
651
  return ret;
651
652
  },
@@ -661,11 +662,11 @@ function __wbg_get_imports() {
661
662
  const ret = arg0.length;
662
663
  return ret;
663
664
  },
664
- __wbg_move_edc33b4719da771c: function(arg0, arg1, arg2, arg3) {
665
+ __wbg_move_305d522843677ecd: function(arg0, arg1, arg2, arg3) {
665
666
  const ret = arg0.move(arg1, getStringFromWasm0(arg2, arg3));
666
667
  return ret;
667
668
  },
668
- __wbg_name_6e7852ee6f2b7a8b: function(arg0, arg1) {
669
+ __wbg_name_89cdbabf7a0d4448: function(arg0, arg1) {
669
670
  const ret = arg1.name;
670
671
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
671
672
  const len1 = WASM_VECTOR_LEN;
@@ -676,10 +677,6 @@ function __wbg_get_imports() {
676
677
  const ret = new Uint8Array(arg0);
677
678
  return ret;
678
679
  },
679
- __wbg_new_7a48d37babf8cc55: function(arg0, arg1) {
680
- const ret = new Error(getStringFromWasm0(arg0, arg1));
681
- return ret;
682
- },
683
680
  __wbg_new_8f72ed7c652bf5a2: function(arg0, arg1) {
684
681
  try {
685
682
  var state0 = {a: arg0, b: arg1};
@@ -698,6 +695,10 @@ function __wbg_get_imports() {
698
695
  state0.a = 0;
699
696
  }
700
697
  },
698
+ __wbg_new_a8497237be663bd1: function(arg0, arg1) {
699
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
700
+ return ret;
701
+ },
701
702
  __wbg_new_bebc3f4757acf305: function() {
702
703
  const ret = new Object();
703
704
  return ret;
@@ -724,18 +725,18 @@ function __wbg_get_imports() {
724
725
  state0.a = 0;
725
726
  }
726
727
  },
727
- __wbg_next_f2c96167b8bb87b6: function(arg0) {
728
+ __wbg_next_8769a138432a19ff: function(arg0) {
728
729
  const ret = arg0.next();
729
730
  return ret;
730
731
  },
731
- __wbg_parse_08ae2a4e53713e2e: function() { return handleError(function (arg0, arg1) {
732
+ __wbg_parse_e931d70e3b6666a4: function() { return handleError(function (arg0, arg1) {
732
733
  const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
733
734
  return ret;
734
735
  }, arguments); },
735
736
  __wbg_prototypesetcall_ae9f5e7459250748: function(arg0, arg1, arg2) {
736
737
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
737
738
  },
738
- __wbg_query_d9edccbfa6c0e728: function(arg0) {
739
+ __wbg_query_8311389820363f4d: function(arg0) {
739
740
  const ret = arg0.query();
740
741
  return ret;
741
742
  },
@@ -750,11 +751,11 @@ function __wbg_get_imports() {
750
751
  const ret = Math.random();
751
752
  return ret;
752
753
  },
753
- __wbg_removeEntry_18600e5dff7f249d: function(arg0, arg1, arg2) {
754
+ __wbg_removeEntry_29f56e7b79a90200: function(arg0, arg1, arg2) {
754
755
  const ret = arg0.removeEntry(getStringFromWasm0(arg1, arg2));
755
756
  return ret;
756
757
  },
757
- __wbg_removeEntry_a339692b1dfb71b1: function(arg0, arg1, arg2, arg3) {
758
+ __wbg_removeEntry_a46d84b0db3c65eb: function(arg0, arg1, arg2, arg3) {
758
759
  const ret = arg0.removeEntry(getStringFromWasm0(arg1, arg2), arg3);
759
760
  return ret;
760
761
  },
@@ -762,7 +763,7 @@ function __wbg_get_imports() {
762
763
  const ret = Rendering.__wrap(arg0);
763
764
  return ret;
764
765
  },
765
- __wbg_request_6a40511b9f0e2911: function(arg0, arg1, arg2, arg3) {
766
+ __wbg_request_f6c3675f57e6c128: function(arg0, arg1, arg2, arg3) {
766
767
  const ret = arg0.request(getStringFromWasm0(arg1, arg2), arg3);
767
768
  return ret;
768
769
  },
@@ -777,17 +778,17 @@ function __wbg_get_imports() {
777
778
  __wbg_set_c41f8dbc07a2190f: function(arg0, arg1, arg2) {
778
779
  arg0.set(getArrayF32FromWasm0(arg1, arg2));
779
780
  },
780
- __wbg_set_name_4b9dcf4c83c869ae: function(arg0, arg1, arg2) {
781
+ __wbg_set_name_edda9269740941d8: function(arg0, arg1, arg2) {
781
782
  arg0.name = getStringFromWasm0(arg1, arg2);
782
783
  },
783
- __wbg_set_refusal_a7ebf7dd502b61d1: function(arg0, arg1) {
784
+ __wbg_set_refusal_3f42f102a36cdc30: function(arg0, arg1) {
784
785
  arg0.refusal = arg1;
785
786
  },
786
- __wbg_size_d020191da61b5cb0: function(arg0) {
787
+ __wbg_size_3a618cb3a6c66229: function(arg0) {
787
788
  const ret = arg0.size;
788
789
  return ret;
789
790
  },
790
- __wbg_slice_434fd5f1e8c04836: function(arg0, arg1, arg2) {
791
+ __wbg_slice_18093a1ce98b1818: function(arg0, arg1, arg2) {
791
792
  const ret = arg0.slice(arg1, arg2);
792
793
  return ret;
793
794
  },
@@ -823,10 +824,10 @@ function __wbg_get_imports() {
823
824
  const ret = arg0.then(arg1);
824
825
  return ret;
825
826
  },
826
- __wbg_warn_b627ad1e6b70ad0c: function(arg0, arg1) {
827
+ __wbg_warn_914828cbf578a41c: function(arg0, arg1) {
827
828
  console.warn(getStringFromWasm0(arg0, arg1));
828
829
  },
829
- __wbg_write_13ecd27d53c671a8: function(arg0, arg1) {
830
+ __wbg_write_1a1656923ae0d6b5: function(arg0, arg1) {
830
831
  const ret = arg0.write(arg1);
831
832
  return ret;
832
833
  },
@@ -837,7 +838,7 @@ function __wbg_get_imports() {
837
838
  },
838
839
  __wbindgen_generic_0000000000000002: function(arg0, arg1) {
839
840
  // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 92, ret: NamedExternref("Promise<any>"), inner_ret: Some(NamedExternref("Promise<any>")) }, mutable: true }) -> Externref`.
840
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hdbc466ca7f9f0a3d);
841
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h54b0491e342de8d6);
841
842
  return ret;
842
843
  },
843
844
  __wbindgen_generic_0000000000000003: function(arg0) {
@@ -866,8 +867,8 @@ function __wbg_get_imports() {
866
867
  };
867
868
  }
868
869
 
869
- function wasm_bindgen__convert__closures_____invoke__hdbc466ca7f9f0a3d(arg0, arg1) {
870
- const ret = wasm.wasm_bindgen__convert__closures_____invoke__hdbc466ca7f9f0a3d(arg0, arg1);
870
+ function wasm_bindgen__convert__closures_____invoke__h54b0491e342de8d6(arg0, arg1) {
871
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__h54b0491e342de8d6(arg0, arg1);
871
872
  return ret;
872
873
  }
873
874
 
package/sva_wasm_bg.wasm CHANGED
Binary file