kordweb 0.6.1 → 0.7.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/klib_bg.js CHANGED
@@ -25,6 +25,28 @@ function takeObject(idx) {
25
25
  return ret;
26
26
  }
27
27
 
28
+ function isLikeNone(x) {
29
+ return x === undefined || x === null;
30
+ }
31
+
32
+ let cachedFloat64Memory0 = null;
33
+
34
+ function getFloat64Memory0() {
35
+ if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
36
+ cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
37
+ }
38
+ return cachedFloat64Memory0;
39
+ }
40
+
41
+ let cachedInt32Memory0 = null;
42
+
43
+ function getInt32Memory0() {
44
+ if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
45
+ cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
46
+ }
47
+ return cachedInt32Memory0;
48
+ }
49
+
28
50
  const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
29
51
 
30
52
  let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
@@ -41,6 +63,7 @@ function getUint8Memory0() {
41
63
  }
42
64
 
43
65
  function getStringFromWasm0(ptr, len) {
66
+ ptr = ptr >>> 0;
44
67
  return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
45
68
  }
46
69
 
@@ -53,28 +76,6 @@ function addHeapObject(obj) {
53
76
  return idx;
54
77
  }
55
78
 
56
- function isLikeNone(x) {
57
- return x === undefined || x === null;
58
- }
59
-
60
- let cachedFloat64Memory0 = null;
61
-
62
- function getFloat64Memory0() {
63
- if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
64
- cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
65
- }
66
- return cachedFloat64Memory0;
67
- }
68
-
69
- let cachedInt32Memory0 = null;
70
-
71
- function getInt32Memory0() {
72
- if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
73
- cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
74
- }
75
- return cachedInt32Memory0;
76
- }
77
-
78
79
  let WASM_VECTOR_LEN = 0;
79
80
 
80
81
  const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;
@@ -98,14 +99,14 @@ function passStringToWasm0(arg, malloc, realloc) {
98
99
 
99
100
  if (realloc === undefined) {
100
101
  const buf = cachedTextEncoder.encode(arg);
101
- const ptr = malloc(buf.length);
102
+ const ptr = malloc(buf.length, 1) >>> 0;
102
103
  getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);
103
104
  WASM_VECTOR_LEN = buf.length;
104
105
  return ptr;
105
106
  }
106
107
 
107
108
  let len = arg.length;
108
- let ptr = malloc(len);
109
+ let ptr = malloc(len, 1) >>> 0;
109
110
 
110
111
  const mem = getUint8Memory0();
111
112
 
@@ -121,7 +122,7 @@ function passStringToWasm0(arg, malloc, realloc) {
121
122
  if (offset !== 0) {
122
123
  arg = arg.slice(offset);
123
124
  }
124
- ptr = realloc(ptr, len, len = offset + arg.length * 3);
125
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
125
126
  const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
126
127
  const ret = encodeString(arg, view);
127
128
 
@@ -222,15 +223,15 @@ function makeMutClosure(arg0, arg1, dtor, f) {
222
223
  return real;
223
224
  }
224
225
  function __wbg_adapter_24(arg0, arg1, arg2) {
225
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd89e07a20df44f6c(arg0, arg1, addHeapObject(arg2));
226
+ wasm.wasm_bindgen__convert__closures__invoke1_mut__h7ae5fa43571d2d1a(arg0, arg1, addHeapObject(arg2));
226
227
  }
227
228
 
228
229
  function __wbg_adapter_27(arg0, arg1) {
229
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h4320fa94c250e6e8(arg0, arg1);
230
+ wasm.wasm_bindgen__convert__closures__invoke0_mut__h9a3cc0c6ffc8f26a(arg0, arg1);
230
231
  }
231
232
 
232
233
  function __wbg_adapter_30(arg0, arg1) {
233
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb0a694f6559bced1(arg0, arg1);
234
+ wasm.wasm_bindgen__convert__closures__invoke0_mut__hddbc9bcc7c6455be(arg0, arg1);
234
235
  }
235
236
 
236
237
  let cachedFloat32Memory0 = null;
@@ -243,7 +244,7 @@ function getFloat32Memory0() {
243
244
  }
244
245
 
245
246
  function passArrayF32ToWasm0(arg, malloc) {
246
- const ptr = malloc(arg.length * 4);
247
+ const ptr = malloc(arg.length * 4, 4) >>> 0;
247
248
  getFloat32Memory0().set(arg, ptr / 4);
248
249
  WASM_VECTOR_LEN = arg.length;
249
250
  return ptr;
@@ -265,10 +266,11 @@ function handleError(f, args) {
265
266
  }
266
267
 
267
268
  function getArrayF32FromWasm0(ptr, len) {
269
+ ptr = ptr >>> 0;
268
270
  return getFloat32Memory0().subarray(ptr / 4, ptr / 4 + len);
269
271
  }
270
272
  function __wbg_adapter_152(arg0, arg1, arg2, arg3) {
271
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h3d8a4431f50cb521(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
273
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h1c849f10298b6e57(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
272
274
  }
273
275
 
274
276
  /**
@@ -324,6 +326,58 @@ Sharp11:10,"10":"Sharp11",
324
326
  */
325
327
  Diminished:11,"11":"Diminished", });
326
328
  /**
329
+ * An enum representing the extension of a chord.
330
+ *
331
+ * Extensions are not really "special" in the sense that they do not change how the
332
+ * chord is interpreted by the system. E.g., an `add2` just adds a 2 to the chord,
333
+ * and the chord is still interpreted as a major chord.
334
+ */
335
+ export const KordExtension = Object.freeze({
336
+ /**
337
+ * Sus2 extension.
338
+ */
339
+ Sus2:0,"0":"Sus2",
340
+ /**
341
+ * Sus4 extension.
342
+ */
343
+ Sus4:1,"1":"Sus4",
344
+ /**
345
+ * Flat 11 extension.
346
+ */
347
+ Flat11:2,"2":"Flat11",
348
+ /**
349
+ * Flat 13 extension.
350
+ */
351
+ Flat13:3,"3":"Flat13",
352
+ /**
353
+ * Sharp 13 extension.
354
+ */
355
+ Sharp13:4,"4":"Sharp13",
356
+ /**
357
+ * Add2 extension.
358
+ */
359
+ Add2:5,"5":"Add2",
360
+ /**
361
+ * Add4 extension.
362
+ */
363
+ Add4:6,"6":"Add4",
364
+ /**
365
+ * Add6 extension.
366
+ */
367
+ Add6:7,"7":"Add6",
368
+ /**
369
+ * Add9 extension.
370
+ */
371
+ Add9:8,"8":"Add9",
372
+ /**
373
+ * Add11 extension.
374
+ */
375
+ Add11:9,"9":"Add11",
376
+ /**
377
+ * Add13 extension.
378
+ */
379
+ Add13:10,"10":"Add13", });
380
+ /**
327
381
  * An enum representing the interval between two notes.
328
382
  */
329
383
  export const KordInterval = Object.freeze({
@@ -520,72 +574,21 @@ ThreePerfectOctavesAndMinorSeventh:46,"46":"ThreePerfectOctavesAndMinorSeventh",
520
574
  */
521
575
  ThreePerfectOctavesAndMajorSeventh:47,"47":"ThreePerfectOctavesAndMajorSeventh", });
522
576
  /**
523
- * An enum representing the extension of a chord.
524
- *
525
- * Extensions are not really "special" in the sense that they do not change how the
526
- * chord is interpreted by the system. E.g., an `add2` just adds a 2 to the chord,
527
- * and the chord is still interpreted as a major chord.
528
- */
529
- export const KordExtension = Object.freeze({
530
- /**
531
- * Sus2 extension.
532
- */
533
- Sus2:0,"0":"Sus2",
534
- /**
535
- * Sus4 extension.
536
- */
537
- Sus4:1,"1":"Sus4",
538
- /**
539
- * Flat 11 extension.
540
- */
541
- Flat11:2,"2":"Flat11",
542
- /**
543
- * Flat 13 extension.
544
- */
545
- Flat13:3,"3":"Flat13",
546
- /**
547
- * Sharp 13 extension.
548
- */
549
- Sharp13:4,"4":"Sharp13",
550
- /**
551
- * Add2 extension.
552
- */
553
- Add2:5,"5":"Add2",
554
- /**
555
- * Add4 extension.
556
- */
557
- Add4:6,"6":"Add4",
558
- /**
559
- * Add6 extension.
560
- */
561
- Add6:7,"7":"Add6",
562
- /**
563
- * Add9 extension.
564
- */
565
- Add9:8,"8":"Add9",
566
- /**
567
- * Add11 extension.
568
- */
569
- Add11:9,"9":"Add11",
570
- /**
571
- * Add13 extension.
572
- */
573
- Add13:10,"10":"Add13", });
574
- /**
575
577
  * The [`Chord`] wrapper.
576
578
  */
577
579
  export class KordChord {
578
580
 
579
581
  static __wrap(ptr) {
582
+ ptr = ptr >>> 0;
580
583
  const obj = Object.create(KordChord.prototype);
581
- obj.ptr = ptr;
584
+ obj.__wbg_ptr = ptr;
582
585
 
583
586
  return obj;
584
587
  }
585
588
 
586
589
  __destroy_into_raw() {
587
- const ptr = this.ptr;
588
- this.ptr = 0;
590
+ const ptr = this.__wbg_ptr;
591
+ this.__wbg_ptr = 0;
589
592
 
590
593
  return ptr;
591
594
  }
@@ -666,15 +669,19 @@ export class KordChord {
666
669
  * @returns {string}
667
670
  */
668
671
  name() {
672
+ let deferred1_0;
673
+ let deferred1_1;
669
674
  try {
670
675
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
671
- wasm.kordchord_name(retptr, this.ptr);
676
+ wasm.kordchord_name(retptr, this.__wbg_ptr);
672
677
  var r0 = getInt32Memory0()[retptr / 4 + 0];
673
678
  var r1 = getInt32Memory0()[retptr / 4 + 1];
679
+ deferred1_0 = r0;
680
+ deferred1_1 = r1;
674
681
  return getStringFromWasm0(r0, r1);
675
682
  } finally {
676
683
  wasm.__wbindgen_add_to_stack_pointer(16);
677
- wasm.__wbindgen_free(r0, r1);
684
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
678
685
  }
679
686
  }
680
687
  /**
@@ -682,15 +689,19 @@ export class KordChord {
682
689
  * @returns {string}
683
690
  */
684
691
  preciseName() {
692
+ let deferred1_0;
693
+ let deferred1_1;
685
694
  try {
686
695
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
687
- wasm.kordchord_preciseName(retptr, this.ptr);
696
+ wasm.kordchord_preciseName(retptr, this.__wbg_ptr);
688
697
  var r0 = getInt32Memory0()[retptr / 4 + 0];
689
698
  var r1 = getInt32Memory0()[retptr / 4 + 1];
699
+ deferred1_0 = r0;
700
+ deferred1_1 = r1;
690
701
  return getStringFromWasm0(r0, r1);
691
702
  } finally {
692
703
  wasm.__wbindgen_add_to_stack_pointer(16);
693
- wasm.__wbindgen_free(r0, r1);
704
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
694
705
  }
695
706
  }
696
707
  /**
@@ -698,15 +709,19 @@ export class KordChord {
698
709
  * @returns {string}
699
710
  */
700
711
  toString() {
712
+ let deferred1_0;
713
+ let deferred1_1;
701
714
  try {
702
715
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
703
- wasm.kordchord_preciseName(retptr, this.ptr);
716
+ wasm.kordchord_preciseName(retptr, this.__wbg_ptr);
704
717
  var r0 = getInt32Memory0()[retptr / 4 + 0];
705
718
  var r1 = getInt32Memory0()[retptr / 4 + 1];
719
+ deferred1_0 = r0;
720
+ deferred1_1 = r1;
706
721
  return getStringFromWasm0(r0, r1);
707
722
  } finally {
708
723
  wasm.__wbindgen_add_to_stack_pointer(16);
709
- wasm.__wbindgen_free(r0, r1);
724
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
710
725
  }
711
726
  }
712
727
  /**
@@ -714,15 +729,19 @@ export class KordChord {
714
729
  * @returns {string}
715
730
  */
716
731
  description() {
732
+ let deferred1_0;
733
+ let deferred1_1;
717
734
  try {
718
735
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
719
- wasm.kordchord_description(retptr, this.ptr);
736
+ wasm.kordchord_description(retptr, this.__wbg_ptr);
720
737
  var r0 = getInt32Memory0()[retptr / 4 + 0];
721
738
  var r1 = getInt32Memory0()[retptr / 4 + 1];
739
+ deferred1_0 = r0;
740
+ deferred1_1 = r1;
722
741
  return getStringFromWasm0(r0, r1);
723
742
  } finally {
724
743
  wasm.__wbindgen_add_to_stack_pointer(16);
725
- wasm.__wbindgen_free(r0, r1);
744
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
726
745
  }
727
746
  }
728
747
  /**
@@ -730,15 +749,19 @@ export class KordChord {
730
749
  * @returns {string}
731
750
  */
732
751
  display() {
752
+ let deferred1_0;
753
+ let deferred1_1;
733
754
  try {
734
755
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
735
- wasm.kordchord_display(retptr, this.ptr);
756
+ wasm.kordchord_display(retptr, this.__wbg_ptr);
736
757
  var r0 = getInt32Memory0()[retptr / 4 + 0];
737
758
  var r1 = getInt32Memory0()[retptr / 4 + 1];
759
+ deferred1_0 = r0;
760
+ deferred1_1 = r1;
738
761
  return getStringFromWasm0(r0, r1);
739
762
  } finally {
740
763
  wasm.__wbindgen_add_to_stack_pointer(16);
741
- wasm.__wbindgen_free(r0, r1);
764
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
742
765
  }
743
766
  }
744
767
  /**
@@ -746,15 +769,19 @@ export class KordChord {
746
769
  * @returns {string}
747
770
  */
748
771
  root() {
772
+ let deferred1_0;
773
+ let deferred1_1;
749
774
  try {
750
775
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
751
- wasm.kordchord_root(retptr, this.ptr);
776
+ wasm.kordchord_root(retptr, this.__wbg_ptr);
752
777
  var r0 = getInt32Memory0()[retptr / 4 + 0];
753
778
  var r1 = getInt32Memory0()[retptr / 4 + 1];
779
+ deferred1_0 = r0;
780
+ deferred1_1 = r1;
754
781
  return getStringFromWasm0(r0, r1);
755
782
  } finally {
756
783
  wasm.__wbindgen_add_to_stack_pointer(16);
757
- wasm.__wbindgen_free(r0, r1);
784
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
758
785
  }
759
786
  }
760
787
  /**
@@ -762,15 +789,19 @@ export class KordChord {
762
789
  * @returns {string}
763
790
  */
764
791
  slash() {
792
+ let deferred1_0;
793
+ let deferred1_1;
765
794
  try {
766
795
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
767
- wasm.kordchord_slash(retptr, this.ptr);
796
+ wasm.kordchord_slash(retptr, this.__wbg_ptr);
768
797
  var r0 = getInt32Memory0()[retptr / 4 + 0];
769
798
  var r1 = getInt32Memory0()[retptr / 4 + 1];
799
+ deferred1_0 = r0;
800
+ deferred1_1 = r1;
770
801
  return getStringFromWasm0(r0, r1);
771
802
  } finally {
772
803
  wasm.__wbindgen_add_to_stack_pointer(16);
773
- wasm.__wbindgen_free(r0, r1);
804
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
774
805
  }
775
806
  }
776
807
  /**
@@ -778,7 +809,7 @@ export class KordChord {
778
809
  * @returns {number}
779
810
  */
780
811
  inversion() {
781
- const ret = wasm.kordchord_inversion(this.ptr);
812
+ const ret = wasm.kordchord_inversion(this.__wbg_ptr);
782
813
  return ret;
783
814
  }
784
815
  /**
@@ -786,7 +817,7 @@ export class KordChord {
786
817
  * @returns {boolean}
787
818
  */
788
819
  isCrunchy() {
789
- const ret = wasm.kordchord_isCrunchy(this.ptr);
820
+ const ret = wasm.kordchord_isCrunchy(this.__wbg_ptr);
790
821
  return ret !== 0;
791
822
  }
792
823
  /**
@@ -794,7 +825,7 @@ export class KordChord {
794
825
  * @returns {Array<any>}
795
826
  */
796
827
  chord() {
797
- const ret = wasm.kordchord_chord(this.ptr);
828
+ const ret = wasm.kordchord_chord(this.__wbg_ptr);
798
829
  return takeObject(ret);
799
830
  }
800
831
  /**
@@ -802,15 +833,19 @@ export class KordChord {
802
833
  * @returns {string}
803
834
  */
804
835
  chordString() {
836
+ let deferred1_0;
837
+ let deferred1_1;
805
838
  try {
806
839
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
807
- wasm.kordchord_chordString(retptr, this.ptr);
840
+ wasm.kordchord_chordString(retptr, this.__wbg_ptr);
808
841
  var r0 = getInt32Memory0()[retptr / 4 + 0];
809
842
  var r1 = getInt32Memory0()[retptr / 4 + 1];
843
+ deferred1_0 = r0;
844
+ deferred1_1 = r1;
810
845
  return getStringFromWasm0(r0, r1);
811
846
  } finally {
812
847
  wasm.__wbindgen_add_to_stack_pointer(16);
813
- wasm.__wbindgen_free(r0, r1);
848
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
814
849
  }
815
850
  }
816
851
  /**
@@ -818,7 +853,7 @@ export class KordChord {
818
853
  * @returns {Array<any>}
819
854
  */
820
855
  scale() {
821
- const ret = wasm.kordchord_scale(this.ptr);
856
+ const ret = wasm.kordchord_scale(this.__wbg_ptr);
822
857
  return takeObject(ret);
823
858
  }
824
859
  /**
@@ -826,15 +861,19 @@ export class KordChord {
826
861
  * @returns {string}
827
862
  */
828
863
  scaleString() {
864
+ let deferred1_0;
865
+ let deferred1_1;
829
866
  try {
830
867
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
831
- wasm.kordchord_scaleString(retptr, this.ptr);
868
+ wasm.kordchord_scaleString(retptr, this.__wbg_ptr);
832
869
  var r0 = getInt32Memory0()[retptr / 4 + 0];
833
870
  var r1 = getInt32Memory0()[retptr / 4 + 1];
871
+ deferred1_0 = r0;
872
+ deferred1_1 = r1;
834
873
  return getStringFromWasm0(r0, r1);
835
874
  } finally {
836
875
  wasm.__wbindgen_add_to_stack_pointer(16);
837
- wasm.__wbindgen_free(r0, r1);
876
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
838
877
  }
839
878
  }
840
879
  /**
@@ -842,7 +881,7 @@ export class KordChord {
842
881
  * @returns {Array<any>}
843
882
  */
844
883
  modifiers() {
845
- const ret = wasm.kordchord_modifiers(this.ptr);
884
+ const ret = wasm.kordchord_modifiers(this.__wbg_ptr);
846
885
  return takeObject(ret);
847
886
  }
848
887
  /**
@@ -850,7 +889,7 @@ export class KordChord {
850
889
  * @returns {Array<any>}
851
890
  */
852
891
  extensions() {
853
- const ret = wasm.kordchord_extensions(this.ptr);
892
+ const ret = wasm.kordchord_extensions(this.__wbg_ptr);
854
893
  return takeObject(ret);
855
894
  }
856
895
  /**
@@ -859,7 +898,7 @@ export class KordChord {
859
898
  * @returns {KordChord}
860
899
  */
861
900
  withInversion(inversion) {
862
- const ret = wasm.kordchord_withInversion(this.ptr, inversion);
901
+ const ret = wasm.kordchord_withInversion(this.__wbg_ptr, inversion);
863
902
  return KordChord.__wrap(ret);
864
903
  }
865
904
  /**
@@ -869,7 +908,7 @@ export class KordChord {
869
908
  */
870
909
  withSlash(slash) {
871
910
  _assertClass(slash, KordNote);
872
- const ret = wasm.kordchord_withSlash(this.ptr, slash.ptr);
911
+ const ret = wasm.kordchord_withSlash(this.__wbg_ptr, slash.__wbg_ptr);
873
912
  return KordChord.__wrap(ret);
874
913
  }
875
914
  /**
@@ -880,7 +919,7 @@ export class KordChord {
880
919
  withOctave(octave) {
881
920
  try {
882
921
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
883
- wasm.kordchord_withOctave(retptr, this.ptr, octave);
922
+ wasm.kordchord_withOctave(retptr, this.__wbg_ptr, octave);
884
923
  var r0 = getInt32Memory0()[retptr / 4 + 0];
885
924
  var r1 = getInt32Memory0()[retptr / 4 + 1];
886
925
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -898,7 +937,7 @@ export class KordChord {
898
937
  * @returns {KordChord}
899
938
  */
900
939
  withCrunchy(is_crunchy) {
901
- const ret = wasm.kordchord_withCrunchy(this.ptr, is_crunchy);
940
+ const ret = wasm.kordchord_withCrunchy(this.__wbg_ptr, is_crunchy);
902
941
  return KordChord.__wrap(ret);
903
942
  }
904
943
  /**
@@ -909,7 +948,7 @@ export class KordChord {
909
948
  * @returns {Promise<void>}
910
949
  */
911
950
  play(delay, length, fade_in) {
912
- const ret = wasm.kordchord_play(this.ptr, delay, length, fade_in);
951
+ const ret = wasm.kordchord_play(this.__wbg_ptr, delay, length, fade_in);
913
952
  return takeObject(ret);
914
953
  }
915
954
  /**
@@ -917,7 +956,7 @@ export class KordChord {
917
956
  * @returns {KordChord}
918
957
  */
919
958
  copy() {
920
- const ret = wasm.kordchord_copy(this.ptr);
959
+ const ret = wasm.kordchord_copy(this.__wbg_ptr);
921
960
  return KordChord.__wrap(ret);
922
961
  }
923
962
  /**
@@ -925,7 +964,7 @@ export class KordChord {
925
964
  * @returns {KordChord}
926
965
  */
927
966
  minor() {
928
- const ret = wasm.kordchord_minor(this.ptr);
967
+ const ret = wasm.kordchord_minor(this.__wbg_ptr);
929
968
  return KordChord.__wrap(ret);
930
969
  }
931
970
  /**
@@ -933,7 +972,7 @@ export class KordChord {
933
972
  * @returns {KordChord}
934
973
  */
935
974
  flat5() {
936
- const ret = wasm.kordchord_flat5(this.ptr);
975
+ const ret = wasm.kordchord_flat5(this.__wbg_ptr);
937
976
  return KordChord.__wrap(ret);
938
977
  }
939
978
  /**
@@ -941,7 +980,7 @@ export class KordChord {
941
980
  * @returns {KordChord}
942
981
  */
943
982
  aug() {
944
- const ret = wasm.kordchord_aug(this.ptr);
983
+ const ret = wasm.kordchord_aug(this.__wbg_ptr);
945
984
  return KordChord.__wrap(ret);
946
985
  }
947
986
  /**
@@ -949,7 +988,7 @@ export class KordChord {
949
988
  * @returns {KordChord}
950
989
  */
951
990
  maj7() {
952
- const ret = wasm.kordchord_maj7(this.ptr);
991
+ const ret = wasm.kordchord_maj7(this.__wbg_ptr);
953
992
  return KordChord.__wrap(ret);
954
993
  }
955
994
  /**
@@ -957,7 +996,7 @@ export class KordChord {
957
996
  * @returns {KordChord}
958
997
  */
959
998
  seven() {
960
- const ret = wasm.kordchord_seven(this.ptr);
999
+ const ret = wasm.kordchord_seven(this.__wbg_ptr);
961
1000
  return KordChord.__wrap(ret);
962
1001
  }
963
1002
  /**
@@ -965,7 +1004,7 @@ export class KordChord {
965
1004
  * @returns {KordChord}
966
1005
  */
967
1006
  nine() {
968
- const ret = wasm.kordchord_nine(this.ptr);
1007
+ const ret = wasm.kordchord_nine(this.__wbg_ptr);
969
1008
  return KordChord.__wrap(ret);
970
1009
  }
971
1010
  /**
@@ -973,7 +1012,7 @@ export class KordChord {
973
1012
  * @returns {KordChord}
974
1013
  */
975
1014
  eleven() {
976
- const ret = wasm.kordchord_eleven(this.ptr);
1015
+ const ret = wasm.kordchord_eleven(this.__wbg_ptr);
977
1016
  return KordChord.__wrap(ret);
978
1017
  }
979
1018
  /**
@@ -981,7 +1020,7 @@ export class KordChord {
981
1020
  * @returns {KordChord}
982
1021
  */
983
1022
  thirteen() {
984
- const ret = wasm.kordchord_thirteen(this.ptr);
1023
+ const ret = wasm.kordchord_thirteen(this.__wbg_ptr);
985
1024
  return KordChord.__wrap(ret);
986
1025
  }
987
1026
  /**
@@ -989,7 +1028,7 @@ export class KordChord {
989
1028
  * @returns {KordChord}
990
1029
  */
991
1030
  flat9() {
992
- const ret = wasm.kordchord_flat9(this.ptr);
1031
+ const ret = wasm.kordchord_flat9(this.__wbg_ptr);
993
1032
  return KordChord.__wrap(ret);
994
1033
  }
995
1034
  /**
@@ -997,7 +1036,7 @@ export class KordChord {
997
1036
  * @returns {KordChord}
998
1037
  */
999
1038
  sharp9() {
1000
- const ret = wasm.kordchord_sharp9(this.ptr);
1039
+ const ret = wasm.kordchord_sharp9(this.__wbg_ptr);
1001
1040
  return KordChord.__wrap(ret);
1002
1041
  }
1003
1042
  /**
@@ -1005,7 +1044,7 @@ export class KordChord {
1005
1044
  * @returns {KordChord}
1006
1045
  */
1007
1046
  sharp11() {
1008
- const ret = wasm.kordchord_sharp11(this.ptr);
1047
+ const ret = wasm.kordchord_sharp11(this.__wbg_ptr);
1009
1048
  return KordChord.__wrap(ret);
1010
1049
  }
1011
1050
  /**
@@ -1013,7 +1052,7 @@ export class KordChord {
1013
1052
  * @returns {KordChord}
1014
1053
  */
1015
1054
  dim() {
1016
- const ret = wasm.kordchord_dim(this.ptr);
1055
+ const ret = wasm.kordchord_dim(this.__wbg_ptr);
1017
1056
  return KordChord.__wrap(ret);
1018
1057
  }
1019
1058
  /**
@@ -1021,7 +1060,7 @@ export class KordChord {
1021
1060
  * @returns {KordChord}
1022
1061
  */
1023
1062
  halfDim() {
1024
- const ret = wasm.kordchord_halfDim(this.ptr);
1063
+ const ret = wasm.kordchord_halfDim(this.__wbg_ptr);
1025
1064
  return KordChord.__wrap(ret);
1026
1065
  }
1027
1066
  /**
@@ -1029,7 +1068,7 @@ export class KordChord {
1029
1068
  * @returns {KordChord}
1030
1069
  */
1031
1070
  sus2() {
1032
- const ret = wasm.kordchord_sus2(this.ptr);
1071
+ const ret = wasm.kordchord_sus2(this.__wbg_ptr);
1033
1072
  return KordChord.__wrap(ret);
1034
1073
  }
1035
1074
  /**
@@ -1037,7 +1076,7 @@ export class KordChord {
1037
1076
  * @returns {KordChord}
1038
1077
  */
1039
1078
  sus4() {
1040
- const ret = wasm.kordchord_sus4(this.ptr);
1079
+ const ret = wasm.kordchord_sus4(this.__wbg_ptr);
1041
1080
  return KordChord.__wrap(ret);
1042
1081
  }
1043
1082
  /**
@@ -1045,7 +1084,7 @@ export class KordChord {
1045
1084
  * @returns {KordChord}
1046
1085
  */
1047
1086
  flat11() {
1048
- const ret = wasm.kordchord_flat11(this.ptr);
1087
+ const ret = wasm.kordchord_flat11(this.__wbg_ptr);
1049
1088
  return KordChord.__wrap(ret);
1050
1089
  }
1051
1090
  /**
@@ -1053,7 +1092,7 @@ export class KordChord {
1053
1092
  * @returns {KordChord}
1054
1093
  */
1055
1094
  flat13() {
1056
- const ret = wasm.kordchord_flat13(this.ptr);
1095
+ const ret = wasm.kordchord_flat13(this.__wbg_ptr);
1057
1096
  return KordChord.__wrap(ret);
1058
1097
  }
1059
1098
  /**
@@ -1061,7 +1100,7 @@ export class KordChord {
1061
1100
  * @returns {KordChord}
1062
1101
  */
1063
1102
  sharp13() {
1064
- const ret = wasm.kordchord_sharp13(this.ptr);
1103
+ const ret = wasm.kordchord_sharp13(this.__wbg_ptr);
1065
1104
  return KordChord.__wrap(ret);
1066
1105
  }
1067
1106
  /**
@@ -1069,7 +1108,7 @@ export class KordChord {
1069
1108
  * @returns {KordChord}
1070
1109
  */
1071
1110
  add2() {
1072
- const ret = wasm.kordchord_add2(this.ptr);
1111
+ const ret = wasm.kordchord_add2(this.__wbg_ptr);
1073
1112
  return KordChord.__wrap(ret);
1074
1113
  }
1075
1114
  /**
@@ -1077,7 +1116,7 @@ export class KordChord {
1077
1116
  * @returns {KordChord}
1078
1117
  */
1079
1118
  add4() {
1080
- const ret = wasm.kordchord_add4(this.ptr);
1119
+ const ret = wasm.kordchord_add4(this.__wbg_ptr);
1081
1120
  return KordChord.__wrap(ret);
1082
1121
  }
1083
1122
  /**
@@ -1085,7 +1124,7 @@ export class KordChord {
1085
1124
  * @returns {KordChord}
1086
1125
  */
1087
1126
  add6() {
1088
- const ret = wasm.kordchord_add6(this.ptr);
1127
+ const ret = wasm.kordchord_add6(this.__wbg_ptr);
1089
1128
  return KordChord.__wrap(ret);
1090
1129
  }
1091
1130
  /**
@@ -1093,7 +1132,7 @@ export class KordChord {
1093
1132
  * @returns {KordChord}
1094
1133
  */
1095
1134
  add9() {
1096
- const ret = wasm.kordchord_add9(this.ptr);
1135
+ const ret = wasm.kordchord_add9(this.__wbg_ptr);
1097
1136
  return KordChord.__wrap(ret);
1098
1137
  }
1099
1138
  /**
@@ -1101,7 +1140,7 @@ export class KordChord {
1101
1140
  * @returns {KordChord}
1102
1141
  */
1103
1142
  add11() {
1104
- const ret = wasm.kordchord_add11(this.ptr);
1143
+ const ret = wasm.kordchord_add11(this.__wbg_ptr);
1105
1144
  return KordChord.__wrap(ret);
1106
1145
  }
1107
1146
  /**
@@ -1109,7 +1148,7 @@ export class KordChord {
1109
1148
  * @returns {KordChord}
1110
1149
  */
1111
1150
  add13() {
1112
- const ret = wasm.kordchord_add13(this.ptr);
1151
+ const ret = wasm.kordchord_add13(this.__wbg_ptr);
1113
1152
  return KordChord.__wrap(ret);
1114
1153
  }
1115
1154
  }
@@ -1119,15 +1158,16 @@ export class KordChord {
1119
1158
  export class KordNote {
1120
1159
 
1121
1160
  static __wrap(ptr) {
1161
+ ptr = ptr >>> 0;
1122
1162
  const obj = Object.create(KordNote.prototype);
1123
- obj.ptr = ptr;
1163
+ obj.__wbg_ptr = ptr;
1124
1164
 
1125
1165
  return obj;
1126
1166
  }
1127
1167
 
1128
1168
  __destroy_into_raw() {
1129
- const ptr = this.ptr;
1130
- this.ptr = 0;
1169
+ const ptr = this.__wbg_ptr;
1170
+ this.__wbg_ptr = 0;
1131
1171
 
1132
1172
  return ptr;
1133
1173
  }
@@ -1209,15 +1249,19 @@ export class KordNote {
1209
1249
  * @returns {string}
1210
1250
  */
1211
1251
  name() {
1252
+ let deferred1_0;
1253
+ let deferred1_1;
1212
1254
  try {
1213
1255
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1214
- wasm.kordnote_name(retptr, this.ptr);
1256
+ wasm.kordnote_name(retptr, this.__wbg_ptr);
1215
1257
  var r0 = getInt32Memory0()[retptr / 4 + 0];
1216
1258
  var r1 = getInt32Memory0()[retptr / 4 + 1];
1259
+ deferred1_0 = r0;
1260
+ deferred1_1 = r1;
1217
1261
  return getStringFromWasm0(r0, r1);
1218
1262
  } finally {
1219
1263
  wasm.__wbindgen_add_to_stack_pointer(16);
1220
- wasm.__wbindgen_free(r0, r1);
1264
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1221
1265
  }
1222
1266
  }
1223
1267
  /**
@@ -1225,15 +1269,19 @@ export class KordNote {
1225
1269
  * @returns {string}
1226
1270
  */
1227
1271
  toString() {
1272
+ let deferred1_0;
1273
+ let deferred1_1;
1228
1274
  try {
1229
1275
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1230
- wasm.kordnote_toString(retptr, this.ptr);
1276
+ wasm.kordnote_toString(retptr, this.__wbg_ptr);
1231
1277
  var r0 = getInt32Memory0()[retptr / 4 + 0];
1232
1278
  var r1 = getInt32Memory0()[retptr / 4 + 1];
1279
+ deferred1_0 = r0;
1280
+ deferred1_1 = r1;
1233
1281
  return getStringFromWasm0(r0, r1);
1234
1282
  } finally {
1235
1283
  wasm.__wbindgen_add_to_stack_pointer(16);
1236
- wasm.__wbindgen_free(r0, r1);
1284
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1237
1285
  }
1238
1286
  }
1239
1287
  /**
@@ -1241,15 +1289,19 @@ export class KordNote {
1241
1289
  * @returns {string}
1242
1290
  */
1243
1291
  pitch() {
1292
+ let deferred1_0;
1293
+ let deferred1_1;
1244
1294
  try {
1245
1295
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1246
- wasm.kordnote_pitch(retptr, this.ptr);
1296
+ wasm.kordnote_pitch(retptr, this.__wbg_ptr);
1247
1297
  var r0 = getInt32Memory0()[retptr / 4 + 0];
1248
1298
  var r1 = getInt32Memory0()[retptr / 4 + 1];
1299
+ deferred1_0 = r0;
1300
+ deferred1_1 = r1;
1249
1301
  return getStringFromWasm0(r0, r1);
1250
1302
  } finally {
1251
1303
  wasm.__wbindgen_add_to_stack_pointer(16);
1252
- wasm.__wbindgen_free(r0, r1);
1304
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1253
1305
  }
1254
1306
  }
1255
1307
  /**
@@ -1257,7 +1309,7 @@ export class KordNote {
1257
1309
  * @returns {number}
1258
1310
  */
1259
1311
  octave() {
1260
- const ret = wasm.kordnote_octave(this.ptr);
1312
+ const ret = wasm.kordnote_octave(this.__wbg_ptr);
1261
1313
  return ret;
1262
1314
  }
1263
1315
  /**
@@ -1265,44 +1317,44 @@ export class KordNote {
1265
1317
  * @returns {number}
1266
1318
  */
1267
1319
  frequency() {
1268
- const ret = wasm.kordnote_frequency(this.ptr);
1320
+ const ret = wasm.kordnote_frequency(this.__wbg_ptr);
1269
1321
  return ret;
1270
1322
  }
1271
1323
  /**
1272
1324
  * Adds the given interval to the [`Note`], producing a new [`Note`] instance.
1273
- * @param {number} interval
1325
+ * @param {KordInterval} interval
1274
1326
  * @returns {KordNote}
1275
1327
  */
1276
1328
  addInterval(interval) {
1277
- const ret = wasm.kordnote_addInterval(this.ptr, interval);
1329
+ const ret = wasm.kordnote_addInterval(this.__wbg_ptr, interval);
1278
1330
  return KordNote.__wrap(ret);
1279
1331
  }
1280
1332
  /**
1281
1333
  * Subtracts the given interval from the [`Note`], producing a new [`Note`] instance.
1282
- * @param {number} interval
1334
+ * @param {KordInterval} interval
1283
1335
  * @returns {KordNote}
1284
1336
  */
1285
1337
  subInterval(interval) {
1286
- const ret = wasm.kordnote_subInterval(this.ptr, interval);
1338
+ const ret = wasm.kordnote_subInterval(this.__wbg_ptr, interval);
1287
1339
  return KordNote.__wrap(ret);
1288
1340
  }
1289
1341
  /**
1290
1342
  * Computes the [`Interval`] distance between the [`Note`] and the given [`Note`].
1291
1343
  * @param {KordNote} other
1292
- * @returns {number}
1344
+ * @returns {KordInterval}
1293
1345
  */
1294
1346
  distanceTo(other) {
1295
1347
  _assertClass(other, KordNote);
1296
1348
  var ptr0 = other.__destroy_into_raw();
1297
- const ret = wasm.kordnote_distanceTo(this.ptr, ptr0);
1298
- return ret >>> 0;
1349
+ const ret = wasm.kordnote_distanceTo(this.__wbg_ptr, ptr0);
1350
+ return ret;
1299
1351
  }
1300
1352
  /**
1301
1353
  * Returns the primary (first 13) harmonic series of the [`Note`].
1302
1354
  * @returns {Array<any>}
1303
1355
  */
1304
1356
  harmonicSeries() {
1305
- const ret = wasm.kordnote_harmonicSeries(this.ptr);
1357
+ const ret = wasm.kordnote_harmonicSeries(this.__wbg_ptr);
1306
1358
  return takeObject(ret);
1307
1359
  }
1308
1360
  /**
@@ -1310,7 +1362,7 @@ export class KordNote {
1310
1362
  * @returns {KordNote}
1311
1363
  */
1312
1364
  copy() {
1313
- const ret = wasm.kordnote_copy(this.ptr);
1365
+ const ret = wasm.kordnote_copy(this.__wbg_ptr);
1314
1366
  return KordNote.__wrap(ret);
1315
1367
  }
1316
1368
  }
@@ -1322,8 +1374,8 @@ export class KordNote {
1322
1374
  export class KordPlaybackHandle {
1323
1375
 
1324
1376
  __destroy_into_raw() {
1325
- const ptr = this.ptr;
1326
- this.ptr = 0;
1377
+ const ptr = this.__wbg_ptr;
1378
+ this.__wbg_ptr = 0;
1327
1379
 
1328
1380
  return ptr;
1329
1381
  }
@@ -1348,11 +1400,6 @@ export function __wbindgen_object_drop_ref(arg0) {
1348
1400
  takeObject(arg0);
1349
1401
  };
1350
1402
 
1351
- export function __wbindgen_string_new(arg0, arg1) {
1352
- const ret = getStringFromWasm0(arg0, arg1);
1353
- return addHeapObject(ret);
1354
- };
1355
-
1356
1403
  export function __wbindgen_number_get(arg0, arg1) {
1357
1404
  const obj = getObject(arg1);
1358
1405
  const ret = typeof(obj) === 'number' ? obj : undefined;
@@ -1360,6 +1407,16 @@ export function __wbindgen_number_get(arg0, arg1) {
1360
1407
  getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
1361
1408
  };
1362
1409
 
1410
+ export function __wbindgen_string_new(arg0, arg1) {
1411
+ const ret = getStringFromWasm0(arg0, arg1);
1412
+ return addHeapObject(ret);
1413
+ };
1414
+
1415
+ export function __wbindgen_number_new(arg0) {
1416
+ const ret = arg0;
1417
+ return addHeapObject(ret);
1418
+ };
1419
+
1363
1420
  export function __wbg_kordnote_new(arg0) {
1364
1421
  const ret = KordNote.__wrap(arg0);
1365
1422
  return addHeapObject(ret);
@@ -1386,53 +1443,53 @@ export function __wbindgen_boolean_get(arg0) {
1386
1443
  return ret;
1387
1444
  };
1388
1445
 
1389
- export function __wbg_instanceof_Window_e266f02eee43b570(arg0) {
1446
+ export function __wbg_instanceof_Window_9029196b662bc42a(arg0) {
1390
1447
  let result;
1391
1448
  try {
1392
1449
  result = getObject(arg0) instanceof Window;
1393
- } catch {
1450
+ } catch (_) {
1394
1451
  result = false;
1395
1452
  }
1396
1453
  const ret = result;
1397
1454
  return ret;
1398
1455
  };
1399
1456
 
1400
- export function __wbg_setTimeout_6609c9aa64f32bfc() { return handleError(function (arg0, arg1, arg2) {
1457
+ export function __wbg_setTimeout_eb1a0d116c26d9f6() { return handleError(function (arg0, arg1, arg2) {
1401
1458
  const ret = getObject(arg0).setTimeout(getObject(arg1), arg2);
1402
1459
  return ret;
1403
1460
  }, arguments) };
1404
1461
 
1405
- export function __wbg_destination_5dfc354bcf2eb941(arg0) {
1462
+ export function __wbg_destination_9e793cf556243084(arg0) {
1406
1463
  const ret = getObject(arg0).destination;
1407
1464
  return addHeapObject(ret);
1408
1465
  };
1409
1466
 
1410
- export function __wbg_currentTime_d94729a1b5fd59a5(arg0) {
1467
+ export function __wbg_currentTime_c6831b97750b898c(arg0) {
1411
1468
  const ret = getObject(arg0).currentTime;
1412
1469
  return ret;
1413
1470
  };
1414
1471
 
1415
- export function __wbg_newwithcontextoptions_6c6a79a71ed7efa3() { return handleError(function (arg0) {
1472
+ export function __wbg_newwithcontextoptions_3fb88aa326cd01e0() { return handleError(function (arg0) {
1416
1473
  const ret = new lAudioContext(getObject(arg0));
1417
1474
  return addHeapObject(ret);
1418
1475
  }, arguments) };
1419
1476
 
1420
- export function __wbg_close_82409a9d656a7c26() { return handleError(function (arg0) {
1477
+ export function __wbg_close_51aa5539747ce076() { return handleError(function (arg0) {
1421
1478
  const ret = getObject(arg0).close();
1422
1479
  return addHeapObject(ret);
1423
1480
  }, arguments) };
1424
1481
 
1425
- export function __wbg_createBuffer_d142e00390bff447() { return handleError(function (arg0, arg1, arg2, arg3) {
1482
+ export function __wbg_createBuffer_13cd030d2b48e8fa() { return handleError(function (arg0, arg1, arg2, arg3) {
1426
1483
  const ret = getObject(arg0).createBuffer(arg1 >>> 0, arg2 >>> 0, arg3);
1427
1484
  return addHeapObject(ret);
1428
1485
  }, arguments) };
1429
1486
 
1430
- export function __wbg_createBufferSource_1473226efd418a08() { return handleError(function (arg0) {
1487
+ export function __wbg_createBufferSource_58423f6345b5f559() { return handleError(function (arg0) {
1431
1488
  const ret = getObject(arg0).createBufferSource();
1432
1489
  return addHeapObject(ret);
1433
1490
  }, arguments) };
1434
1491
 
1435
- export function __wbg_resume_72fe7cd3e68b861a() { return handleError(function (arg0) {
1492
+ export function __wbg_resume_9dc64ed7c3a65255() { return handleError(function (arg0) {
1436
1493
  const ret = getObject(arg0).resume();
1437
1494
  return addHeapObject(ret);
1438
1495
  }, arguments) };
@@ -1440,69 +1497,64 @@ export function __wbg_resume_72fe7cd3e68b861a() { return handleError(function (a
1440
1497
  export function __wbindgen_string_get(arg0, arg1) {
1441
1498
  const obj = getObject(arg1);
1442
1499
  const ret = typeof(obj) === 'string' ? obj : undefined;
1443
- var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1444
- var len0 = WASM_VECTOR_LEN;
1445
- getInt32Memory0()[arg0 / 4 + 1] = len0;
1446
- getInt32Memory0()[arg0 / 4 + 0] = ptr0;
1500
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1501
+ var len1 = WASM_VECTOR_LEN;
1502
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
1503
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
1447
1504
  };
1448
1505
 
1449
- export function __wbindgen_number_new(arg0) {
1450
- const ret = arg0;
1451
- return addHeapObject(ret);
1452
- };
1506
+ export function __wbg_copyToChannel_6e4bd2545a53db54() { return handleError(function (arg0, arg1, arg2, arg3) {
1507
+ getObject(arg0).copyToChannel(getArrayF32FromWasm0(arg1, arg2), arg3);
1508
+ }, arguments) };
1453
1509
 
1454
- export function __wbg_setbuffer_bad384d1628a8306(arg0, arg1) {
1510
+ export function __wbg_setbuffer_beeece042e02534f(arg0, arg1) {
1455
1511
  getObject(arg0).buffer = getObject(arg1);
1456
1512
  };
1457
1513
 
1458
- export function __wbg_setonended_15b13187aec41ac9(arg0, arg1) {
1514
+ export function __wbg_setonended_83dd83b7f84cdef2(arg0, arg1) {
1459
1515
  getObject(arg0).onended = getObject(arg1);
1460
1516
  };
1461
1517
 
1462
- export function __wbg_start_9169e040a16354b9() { return handleError(function (arg0, arg1) {
1518
+ export function __wbg_start_99ecc2647eb67ca6() { return handleError(function (arg0, arg1) {
1463
1519
  getObject(arg0).start(arg1);
1464
1520
  }, arguments) };
1465
1521
 
1466
- export function __wbg_connect_77f2f818a74097e1() { return handleError(function (arg0, arg1) {
1522
+ export function __wbg_connect_3f8f5ba805800c62() { return handleError(function (arg0, arg1) {
1467
1523
  const ret = getObject(arg0).connect(getObject(arg1));
1468
1524
  return addHeapObject(ret);
1469
1525
  }, arguments) };
1470
1526
 
1471
- export function __wbg_copyToChannel_9babe9bf308bffc3() { return handleError(function (arg0, arg1, arg2, arg3) {
1472
- getObject(arg0).copyToChannel(getArrayF32FromWasm0(arg1, arg2), arg3);
1473
- }, arguments) };
1474
-
1475
- export function __wbg_get_27fe3dac1c4d0224(arg0, arg1) {
1527
+ export function __wbg_get_f01601b5a68d10e3(arg0, arg1) {
1476
1528
  const ret = getObject(arg0)[arg1 >>> 0];
1477
1529
  return addHeapObject(ret);
1478
1530
  };
1479
1531
 
1480
- export function __wbg_length_e498fbc24f9c1d4f(arg0) {
1532
+ export function __wbg_length_1009b1af0c481d7b(arg0) {
1481
1533
  const ret = getObject(arg0).length;
1482
1534
  return ret;
1483
1535
  };
1484
1536
 
1485
- export function __wbg_new_b525de17f44a8943() {
1537
+ export function __wbg_new_ffc6d4d085022169() {
1486
1538
  const ret = new Array();
1487
1539
  return addHeapObject(ret);
1488
1540
  };
1489
1541
 
1490
- export function __wbg_newnoargs_2b8b6bd7753c76ba(arg0, arg1) {
1542
+ export function __wbg_newnoargs_c62ea9419c21fbac(arg0, arg1) {
1491
1543
  const ret = new Function(getStringFromWasm0(arg0, arg1));
1492
1544
  return addHeapObject(ret);
1493
1545
  };
1494
1546
 
1495
- export function __wbg_get_baf4855f9a986186() { return handleError(function (arg0, arg1) {
1547
+ export function __wbg_get_7b48513de5dc5ea4() { return handleError(function (arg0, arg1) {
1496
1548
  const ret = Reflect.get(getObject(arg0), getObject(arg1));
1497
1549
  return addHeapObject(ret);
1498
1550
  }, arguments) };
1499
1551
 
1500
- export function __wbg_call_95d1ea488d03e4e8() { return handleError(function (arg0, arg1) {
1552
+ export function __wbg_call_90c26b09837aba1c() { return handleError(function (arg0, arg1) {
1501
1553
  const ret = getObject(arg0).call(getObject(arg1));
1502
1554
  return addHeapObject(ret);
1503
1555
  }, arguments) };
1504
1556
 
1505
- export function __wbg_new_f9876326328f45ed() {
1557
+ export function __wbg_new_9fb8d994e1c0aaac() {
1506
1558
  const ret = new Object();
1507
1559
  return addHeapObject(ret);
1508
1560
  };
@@ -1512,22 +1564,22 @@ export function __wbindgen_object_clone_ref(arg0) {
1512
1564
  return addHeapObject(ret);
1513
1565
  };
1514
1566
 
1515
- export function __wbg_self_e7c1f827057f6584() { return handleError(function () {
1567
+ export function __wbg_self_f0e34d89f33b99fd() { return handleError(function () {
1516
1568
  const ret = self.self;
1517
1569
  return addHeapObject(ret);
1518
1570
  }, arguments) };
1519
1571
 
1520
- export function __wbg_window_a09ec664e14b1b81() { return handleError(function () {
1572
+ export function __wbg_window_d3b084224f4774d7() { return handleError(function () {
1521
1573
  const ret = window.window;
1522
1574
  return addHeapObject(ret);
1523
1575
  }, arguments) };
1524
1576
 
1525
- export function __wbg_globalThis_87cbb8506fecf3a9() { return handleError(function () {
1577
+ export function __wbg_globalThis_9caa27ff917c6860() { return handleError(function () {
1526
1578
  const ret = globalThis.globalThis;
1527
1579
  return addHeapObject(ret);
1528
1580
  }, arguments) };
1529
1581
 
1530
- export function __wbg_global_c85a9259e621f3db() { return handleError(function () {
1582
+ export function __wbg_global_35dfdd59a4da3e74() { return handleError(function () {
1531
1583
  const ret = global.global;
1532
1584
  return addHeapObject(ret);
1533
1585
  }, arguments) };
@@ -1537,43 +1589,43 @@ export function __wbindgen_is_undefined(arg0) {
1537
1589
  return ret;
1538
1590
  };
1539
1591
 
1540
- export function __wbg_eval_be0434aab6074e1e() { return handleError(function (arg0, arg1) {
1592
+ export function __wbg_eval_0b93354704a20351() { return handleError(function (arg0, arg1) {
1541
1593
  const ret = eval(getStringFromWasm0(arg0, arg1));
1542
1594
  return addHeapObject(ret);
1543
1595
  }, arguments) };
1544
1596
 
1545
- export function __wbg_push_49c286f04dd3bf59(arg0, arg1) {
1597
+ export function __wbg_push_901f3914205d44de(arg0, arg1) {
1546
1598
  const ret = getObject(arg0).push(getObject(arg1));
1547
1599
  return ret;
1548
1600
  };
1549
1601
 
1550
- export function __wbg_call_9495de66fdbe016b() { return handleError(function (arg0, arg1, arg2) {
1602
+ export function __wbg_call_5da1969d7cd31ccd() { return handleError(function (arg0, arg1, arg2) {
1551
1603
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
1552
1604
  return addHeapObject(ret);
1553
1605
  }, arguments) };
1554
1606
 
1555
- export function __wbg_name_4e66d4cfa3e9270a(arg0) {
1607
+ export function __wbg_name_0b0c238354bb6019(arg0) {
1556
1608
  const ret = getObject(arg0).name;
1557
1609
  return addHeapObject(ret);
1558
1610
  };
1559
1611
 
1560
- export function __wbg_instanceof_Object_f5a826c4da0d4a94(arg0) {
1612
+ export function __wbg_instanceof_Object_702c4990f4c3db8d(arg0) {
1561
1613
  let result;
1562
1614
  try {
1563
1615
  result = getObject(arg0) instanceof Object;
1564
- } catch {
1616
+ } catch (_) {
1565
1617
  result = false;
1566
1618
  }
1567
1619
  const ret = result;
1568
1620
  return ret;
1569
1621
  };
1570
1622
 
1571
- export function __wbg_constructor_0c9828c8a7cf1dc6(arg0) {
1623
+ export function __wbg_constructor_2cc2b72dddc41594(arg0) {
1572
1624
  const ret = getObject(arg0).constructor;
1573
1625
  return addHeapObject(ret);
1574
1626
  };
1575
1627
 
1576
- export function __wbg_new_9d3a9ce4282a18a8(arg0, arg1) {
1628
+ export function __wbg_new_60f57089c7563e81(arg0, arg1) {
1577
1629
  try {
1578
1630
  var state0 = {a: arg0, b: arg1};
1579
1631
  var cb0 = (arg0, arg1) => {
@@ -1592,45 +1644,45 @@ export function __wbg_new_9d3a9ce4282a18a8(arg0, arg1) {
1592
1644
  }
1593
1645
  };
1594
1646
 
1595
- export function __wbg_resolve_fd40f858d9db1a04(arg0) {
1647
+ export function __wbg_resolve_6e1c6553a82f85b7(arg0) {
1596
1648
  const ret = Promise.resolve(getObject(arg0));
1597
1649
  return addHeapObject(ret);
1598
1650
  };
1599
1651
 
1600
- export function __wbg_then_ec5db6d509eb475f(arg0, arg1) {
1652
+ export function __wbg_then_3ab08cd4fbb91ae9(arg0, arg1) {
1601
1653
  const ret = getObject(arg0).then(getObject(arg1));
1602
1654
  return addHeapObject(ret);
1603
1655
  };
1604
1656
 
1605
- export function __wbg_set_6aa458a4ebdb65cb() { return handleError(function (arg0, arg1, arg2) {
1657
+ export function __wbg_set_759f75cd92b612d2() { return handleError(function (arg0, arg1, arg2) {
1606
1658
  const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
1607
1659
  return ret;
1608
1660
  }, arguments) };
1609
1661
 
1610
1662
  export function __wbindgen_debug_string(arg0, arg1) {
1611
1663
  const ret = debugString(getObject(arg1));
1612
- const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1613
- const len0 = WASM_VECTOR_LEN;
1614
- getInt32Memory0()[arg0 / 4 + 1] = len0;
1615
- getInt32Memory0()[arg0 / 4 + 0] = ptr0;
1664
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1665
+ const len1 = WASM_VECTOR_LEN;
1666
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
1667
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
1616
1668
  };
1617
1669
 
1618
1670
  export function __wbindgen_throw(arg0, arg1) {
1619
1671
  throw new Error(getStringFromWasm0(arg0, arg1));
1620
1672
  };
1621
1673
 
1622
- export function __wbindgen_closure_wrapper1065(arg0, arg1, arg2) {
1623
- const ret = makeMutClosure(arg0, arg1, 458, __wbg_adapter_24);
1674
+ export function __wbindgen_closure_wrapper1156(arg0, arg1, arg2) {
1675
+ const ret = makeMutClosure(arg0, arg1, 495, __wbg_adapter_24);
1624
1676
  return addHeapObject(ret);
1625
1677
  };
1626
1678
 
1627
- export function __wbindgen_closure_wrapper1117(arg0, arg1, arg2) {
1628
- const ret = makeMutClosure(arg0, arg1, 494, __wbg_adapter_27);
1679
+ export function __wbindgen_closure_wrapper1182(arg0, arg1, arg2) {
1680
+ const ret = makeMutClosure(arg0, arg1, 508, __wbg_adapter_27);
1629
1681
  return addHeapObject(ret);
1630
1682
  };
1631
1683
 
1632
- export function __wbindgen_closure_wrapper1404(arg0, arg1, arg2) {
1633
- const ret = makeMutClosure(arg0, arg1, 600, __wbg_adapter_30);
1684
+ export function __wbindgen_closure_wrapper1356(arg0, arg1, arg2) {
1685
+ const ret = makeMutClosure(arg0, arg1, 554, __wbg_adapter_30);
1634
1686
  return addHeapObject(ret);
1635
1687
  };
1636
1688