kordweb 0.6.1 → 0.7.1

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/README.md CHANGED
@@ -19,24 +19,24 @@ A music theory binary and library for Rust / JS (via WASM) ([capability playgrou
19
19
  Windows:
20
20
 
21
21
  ```powershell
22
- iwr https://github.com/twitchax/kord/releases/latest/download/kord_x86_64-pc-windows-gnu.zip
23
- Expand-Archive kord_x86_64-pc-windows-gnu.zip -DestinationPath C:\Users\%USERNAME%\AppData\Local\Programs\kord
22
+ $ iwr https://github.com/twitchax/kord/releases/latest/download/kord_x86_64-pc-windows-gnu.zip
23
+ $ Expand-Archive kord_x86_64-pc-windows-gnu.zip -DestinationPath C:\Users\%USERNAME%\AppData\Local\Programs\kord
24
24
  ```
25
25
 
26
26
  Mac OS (Apple Silicon):
27
27
 
28
28
  ```bash
29
- curl -LO https://github.com/twitchax/kord/releases/latest/download/kord_aarch64-apple-darwin.zip
30
- unzip kord_aarch64-apple-darwin.zip -d /usr/local/bin
31
- chmod a+x /usr/local/bin/kord
29
+ $ curl -LO https://github.com/twitchax/kord/releases/latest/download/kord_aarch64-apple-darwin.zip
30
+ $ unzip kord_aarch64-apple-darwin.zip -d /usr/local/bin
31
+ $ chmod a+x /usr/local/bin/kord
32
32
  ```
33
33
 
34
34
  Linux:
35
35
 
36
36
  ```bash
37
- curl -LO https://github.com/twitchax/kord/releases/latest/download/kord_x86_64-unknown-linux-gnu.zip
38
- unzip kord_x86_64-unknown-linux-gnu.zip -d /usr/local/bin
39
- chmod a+x /usr/local/bin/kord
37
+ $ curl -LO https://github.com/twitchax/kord/releases/latest/download/kord_x86_64-unknown-linux-gnu.zip
38
+ $ unzip kord_x86_64-unknown-linux-gnu.zip -d /usr/local/bin
39
+ $ chmod a+x /usr/local/bin/kord
40
40
  ```
41
41
 
42
42
  Cargo:
@@ -51,6 +51,20 @@ NPM:
51
51
  $ npm install --save kordweb
52
52
  ```
53
53
 
54
+ ### Wasmer
55
+
56
+ This has a reduced capability set (no audio input / output), but works well for some of the core use cases.
57
+
58
+ ```bash
59
+ $ wasmer install twitchax/kord
60
+ ```
61
+
62
+ Alternatively, you can use `wasmer run`.
63
+
64
+ ```bash
65
+ $ wasmer run twitchax/kord -- describe Am7
66
+ ```
67
+
54
68
  ### Help Docs
55
69
 
56
70
  ```bash
package/klib.d.ts CHANGED
@@ -614,22 +614,22 @@ export class KordNote {
614
614
  frequency(): number;
615
615
  /**
616
616
  * Adds the given interval to the [`Note`], producing a new [`Note`] instance.
617
- * @param {number} interval
617
+ * @param {KordInterval} interval
618
618
  * @returns {KordNote}
619
619
  */
620
- addInterval(interval: number): KordNote;
620
+ addInterval(interval: KordInterval): KordNote;
621
621
  /**
622
622
  * Subtracts the given interval from the [`Note`], producing a new [`Note`] instance.
623
- * @param {number} interval
623
+ * @param {KordInterval} interval
624
624
  * @returns {KordNote}
625
625
  */
626
- subInterval(interval: number): KordNote;
626
+ subInterval(interval: KordInterval): KordNote;
627
627
  /**
628
628
  * Computes the [`Interval`] distance between the [`Note`] and the given [`Note`].
629
629
  * @param {KordNote} other
630
- * @returns {number}
630
+ * @returns {KordInterval}
631
631
  */
632
- distanceTo(other: KordNote): number;
632
+ distanceTo(other: KordNote): KordInterval;
633
633
  /**
634
634
  * Returns the primary (first 13) harmonic series of the [`Note`].
635
635
  * @returns {Array<any>}
package/klib_bg.js CHANGED
@@ -41,6 +41,7 @@ function getUint8Memory0() {
41
41
  }
42
42
 
43
43
  function getStringFromWasm0(ptr, len) {
44
+ ptr = ptr >>> 0;
44
45
  return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
45
46
  }
46
47
 
@@ -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
 
@@ -221,16 +222,16 @@ function makeMutClosure(arg0, arg1, dtor, f) {
221
222
 
222
223
  return real;
223
224
  }
224
- 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));
225
+ function __wbg_adapter_32(arg0, arg1, arg2) {
226
+ wasm.wasm_bindgen__convert__closures__invoke1_mut__h7ae5fa43571d2d1a(arg0, arg1, addHeapObject(arg2));
226
227
  }
227
228
 
228
- 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);
229
+ function __wbg_adapter_35(arg0, arg1) {
230
+ wasm.wasm_bindgen__convert__closures__invoke0_mut__h9a3cc0c6ffc8f26a(arg0, arg1);
230
231
  }
231
232
 
232
- 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);
233
+ function __wbg_adapter_38(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
- function __wbg_adapter_152(arg0, arg1, arg2, arg3) {
271
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h3d8a4431f50cb521(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
272
+ function __wbg_adapter_176(arg0, arg1, arg2, arg3) {
273
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h1c849f10298b6e57(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
272
274
  }
273
275
 
274
276
  /**
@@ -577,15 +579,16 @@ Add13:10,"10":"Add13", });
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
  }
@@ -1334,6 +1386,10 @@ export class KordPlaybackHandle {
1334
1386
  }
1335
1387
  }
1336
1388
 
1389
+ export function __wbindgen_object_drop_ref(arg0) {
1390
+ takeObject(arg0);
1391
+ };
1392
+
1337
1393
  export function __wbindgen_cb_drop(arg0) {
1338
1394
  const obj = takeObject(arg0).original;
1339
1395
  if (obj.cnt-- == 1) {
@@ -1344,10 +1400,6 @@ export function __wbindgen_cb_drop(arg0) {
1344
1400
  return ret;
1345
1401
  };
1346
1402
 
1347
- export function __wbindgen_object_drop_ref(arg0) {
1348
- takeObject(arg0);
1349
- };
1350
-
1351
1403
  export function __wbindgen_string_new(arg0, arg1) {
1352
1404
  const ret = getStringFromWasm0(arg0, arg1);
1353
1405
  return addHeapObject(ret);
@@ -1360,13 +1412,18 @@ export function __wbindgen_number_get(arg0, arg1) {
1360
1412
  getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
1361
1413
  };
1362
1414
 
1415
+ export function __wbg_kordchord_new(arg0) {
1416
+ const ret = KordChord.__wrap(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);
1366
1423
  };
1367
1424
 
1368
- export function __wbg_kordchord_new(arg0) {
1369
- const ret = KordChord.__wrap(arg0);
1425
+ export function __wbindgen_number_new(arg0) {
1426
+ const ret = arg0;
1370
1427
  return addHeapObject(ret);
1371
1428
  };
1372
1429
 
@@ -1380,59 +1437,113 @@ export function __wbg_setTimeout_75cb9b6991a4031d() { return handleError(functio
1380
1437
  return addHeapObject(ret);
1381
1438
  }, arguments) };
1382
1439
 
1440
+ export function __wbg_crypto_58f13aa23ffcb166(arg0) {
1441
+ const ret = getObject(arg0).crypto;
1442
+ return addHeapObject(ret);
1443
+ };
1444
+
1445
+ export function __wbindgen_is_object(arg0) {
1446
+ const val = getObject(arg0);
1447
+ const ret = typeof(val) === 'object' && val !== null;
1448
+ return ret;
1449
+ };
1450
+
1451
+ export function __wbg_process_5b786e71d465a513(arg0) {
1452
+ const ret = getObject(arg0).process;
1453
+ return addHeapObject(ret);
1454
+ };
1455
+
1456
+ export function __wbg_versions_c2ab80650590b6a2(arg0) {
1457
+ const ret = getObject(arg0).versions;
1458
+ return addHeapObject(ret);
1459
+ };
1460
+
1461
+ export function __wbg_node_523d7bd03ef69fba(arg0) {
1462
+ const ret = getObject(arg0).node;
1463
+ return addHeapObject(ret);
1464
+ };
1465
+
1466
+ export function __wbindgen_is_string(arg0) {
1467
+ const ret = typeof(getObject(arg0)) === 'string';
1468
+ return ret;
1469
+ };
1470
+
1471
+ export function __wbg_msCrypto_abcb1295e768d1f2(arg0) {
1472
+ const ret = getObject(arg0).msCrypto;
1473
+ return addHeapObject(ret);
1474
+ };
1475
+
1476
+ export function __wbg_require_2784e593a4674877() { return handleError(function () {
1477
+ const ret = module.require;
1478
+ return addHeapObject(ret);
1479
+ }, arguments) };
1480
+
1481
+ export function __wbindgen_is_function(arg0) {
1482
+ const ret = typeof(getObject(arg0)) === 'function';
1483
+ return ret;
1484
+ };
1485
+
1486
+ export function __wbg_randomFillSync_a0d98aa11c81fe89() { return handleError(function (arg0, arg1) {
1487
+ getObject(arg0).randomFillSync(takeObject(arg1));
1488
+ }, arguments) };
1489
+
1490
+ export function __wbg_getRandomValues_504510b5564925af() { return handleError(function (arg0, arg1) {
1491
+ getObject(arg0).getRandomValues(getObject(arg1));
1492
+ }, arguments) };
1493
+
1383
1494
  export function __wbindgen_boolean_get(arg0) {
1384
1495
  const v = getObject(arg0);
1385
1496
  const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
1386
1497
  return ret;
1387
1498
  };
1388
1499
 
1389
- export function __wbg_instanceof_Window_e266f02eee43b570(arg0) {
1500
+ export function __wbg_instanceof_Window_9029196b662bc42a(arg0) {
1390
1501
  let result;
1391
1502
  try {
1392
1503
  result = getObject(arg0) instanceof Window;
1393
- } catch {
1504
+ } catch (_) {
1394
1505
  result = false;
1395
1506
  }
1396
1507
  const ret = result;
1397
1508
  return ret;
1398
1509
  };
1399
1510
 
1400
- export function __wbg_setTimeout_6609c9aa64f32bfc() { return handleError(function (arg0, arg1, arg2) {
1511
+ export function __wbg_setTimeout_eb1a0d116c26d9f6() { return handleError(function (arg0, arg1, arg2) {
1401
1512
  const ret = getObject(arg0).setTimeout(getObject(arg1), arg2);
1402
1513
  return ret;
1403
1514
  }, arguments) };
1404
1515
 
1405
- export function __wbg_destination_5dfc354bcf2eb941(arg0) {
1516
+ export function __wbg_destination_9e793cf556243084(arg0) {
1406
1517
  const ret = getObject(arg0).destination;
1407
1518
  return addHeapObject(ret);
1408
1519
  };
1409
1520
 
1410
- export function __wbg_currentTime_d94729a1b5fd59a5(arg0) {
1521
+ export function __wbg_currentTime_c6831b97750b898c(arg0) {
1411
1522
  const ret = getObject(arg0).currentTime;
1412
1523
  return ret;
1413
1524
  };
1414
1525
 
1415
- export function __wbg_newwithcontextoptions_6c6a79a71ed7efa3() { return handleError(function (arg0) {
1526
+ export function __wbg_newwithcontextoptions_3fb88aa326cd01e0() { return handleError(function (arg0) {
1416
1527
  const ret = new lAudioContext(getObject(arg0));
1417
1528
  return addHeapObject(ret);
1418
1529
  }, arguments) };
1419
1530
 
1420
- export function __wbg_close_82409a9d656a7c26() { return handleError(function (arg0) {
1531
+ export function __wbg_close_51aa5539747ce076() { return handleError(function (arg0) {
1421
1532
  const ret = getObject(arg0).close();
1422
1533
  return addHeapObject(ret);
1423
1534
  }, arguments) };
1424
1535
 
1425
- export function __wbg_createBuffer_d142e00390bff447() { return handleError(function (arg0, arg1, arg2, arg3) {
1536
+ export function __wbg_createBuffer_13cd030d2b48e8fa() { return handleError(function (arg0, arg1, arg2, arg3) {
1426
1537
  const ret = getObject(arg0).createBuffer(arg1 >>> 0, arg2 >>> 0, arg3);
1427
1538
  return addHeapObject(ret);
1428
1539
  }, arguments) };
1429
1540
 
1430
- export function __wbg_createBufferSource_1473226efd418a08() { return handleError(function (arg0) {
1541
+ export function __wbg_createBufferSource_58423f6345b5f559() { return handleError(function (arg0) {
1431
1542
  const ret = getObject(arg0).createBufferSource();
1432
1543
  return addHeapObject(ret);
1433
1544
  }, arguments) };
1434
1545
 
1435
- export function __wbg_resume_72fe7cd3e68b861a() { return handleError(function (arg0) {
1546
+ export function __wbg_resume_9dc64ed7c3a65255() { return handleError(function (arg0) {
1436
1547
  const ret = getObject(arg0).resume();
1437
1548
  return addHeapObject(ret);
1438
1549
  }, arguments) };
@@ -1440,69 +1551,64 @@ export function __wbg_resume_72fe7cd3e68b861a() { return handleError(function (a
1440
1551
  export function __wbindgen_string_get(arg0, arg1) {
1441
1552
  const obj = getObject(arg1);
1442
1553
  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;
1554
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1555
+ var len1 = WASM_VECTOR_LEN;
1556
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
1557
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
1447
1558
  };
1448
1559
 
1449
- export function __wbindgen_number_new(arg0) {
1450
- const ret = arg0;
1451
- return addHeapObject(ret);
1452
- };
1560
+ export function __wbg_copyToChannel_6e4bd2545a53db54() { return handleError(function (arg0, arg1, arg2, arg3) {
1561
+ getObject(arg0).copyToChannel(getArrayF32FromWasm0(arg1, arg2), arg3);
1562
+ }, arguments) };
1453
1563
 
1454
- export function __wbg_setbuffer_bad384d1628a8306(arg0, arg1) {
1564
+ export function __wbg_setbuffer_beeece042e02534f(arg0, arg1) {
1455
1565
  getObject(arg0).buffer = getObject(arg1);
1456
1566
  };
1457
1567
 
1458
- export function __wbg_setonended_15b13187aec41ac9(arg0, arg1) {
1568
+ export function __wbg_setonended_83dd83b7f84cdef2(arg0, arg1) {
1459
1569
  getObject(arg0).onended = getObject(arg1);
1460
1570
  };
1461
1571
 
1462
- export function __wbg_start_9169e040a16354b9() { return handleError(function (arg0, arg1) {
1572
+ export function __wbg_start_99ecc2647eb67ca6() { return handleError(function (arg0, arg1) {
1463
1573
  getObject(arg0).start(arg1);
1464
1574
  }, arguments) };
1465
1575
 
1466
- export function __wbg_connect_77f2f818a74097e1() { return handleError(function (arg0, arg1) {
1576
+ export function __wbg_connect_3f8f5ba805800c62() { return handleError(function (arg0, arg1) {
1467
1577
  const ret = getObject(arg0).connect(getObject(arg1));
1468
1578
  return addHeapObject(ret);
1469
1579
  }, arguments) };
1470
1580
 
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) {
1581
+ export function __wbg_get_f01601b5a68d10e3(arg0, arg1) {
1476
1582
  const ret = getObject(arg0)[arg1 >>> 0];
1477
1583
  return addHeapObject(ret);
1478
1584
  };
1479
1585
 
1480
- export function __wbg_length_e498fbc24f9c1d4f(arg0) {
1586
+ export function __wbg_length_1009b1af0c481d7b(arg0) {
1481
1587
  const ret = getObject(arg0).length;
1482
1588
  return ret;
1483
1589
  };
1484
1590
 
1485
- export function __wbg_new_b525de17f44a8943() {
1591
+ export function __wbg_new_ffc6d4d085022169() {
1486
1592
  const ret = new Array();
1487
1593
  return addHeapObject(ret);
1488
1594
  };
1489
1595
 
1490
- export function __wbg_newnoargs_2b8b6bd7753c76ba(arg0, arg1) {
1596
+ export function __wbg_newnoargs_c62ea9419c21fbac(arg0, arg1) {
1491
1597
  const ret = new Function(getStringFromWasm0(arg0, arg1));
1492
1598
  return addHeapObject(ret);
1493
1599
  };
1494
1600
 
1495
- export function __wbg_get_baf4855f9a986186() { return handleError(function (arg0, arg1) {
1601
+ export function __wbg_get_7b48513de5dc5ea4() { return handleError(function (arg0, arg1) {
1496
1602
  const ret = Reflect.get(getObject(arg0), getObject(arg1));
1497
1603
  return addHeapObject(ret);
1498
1604
  }, arguments) };
1499
1605
 
1500
- export function __wbg_call_95d1ea488d03e4e8() { return handleError(function (arg0, arg1) {
1606
+ export function __wbg_call_90c26b09837aba1c() { return handleError(function (arg0, arg1) {
1501
1607
  const ret = getObject(arg0).call(getObject(arg1));
1502
1608
  return addHeapObject(ret);
1503
1609
  }, arguments) };
1504
1610
 
1505
- export function __wbg_new_f9876326328f45ed() {
1611
+ export function __wbg_new_9fb8d994e1c0aaac() {
1506
1612
  const ret = new Object();
1507
1613
  return addHeapObject(ret);
1508
1614
  };
@@ -1512,22 +1618,22 @@ export function __wbindgen_object_clone_ref(arg0) {
1512
1618
  return addHeapObject(ret);
1513
1619
  };
1514
1620
 
1515
- export function __wbg_self_e7c1f827057f6584() { return handleError(function () {
1621
+ export function __wbg_self_f0e34d89f33b99fd() { return handleError(function () {
1516
1622
  const ret = self.self;
1517
1623
  return addHeapObject(ret);
1518
1624
  }, arguments) };
1519
1625
 
1520
- export function __wbg_window_a09ec664e14b1b81() { return handleError(function () {
1626
+ export function __wbg_window_d3b084224f4774d7() { return handleError(function () {
1521
1627
  const ret = window.window;
1522
1628
  return addHeapObject(ret);
1523
1629
  }, arguments) };
1524
1630
 
1525
- export function __wbg_globalThis_87cbb8506fecf3a9() { return handleError(function () {
1631
+ export function __wbg_globalThis_9caa27ff917c6860() { return handleError(function () {
1526
1632
  const ret = globalThis.globalThis;
1527
1633
  return addHeapObject(ret);
1528
1634
  }, arguments) };
1529
1635
 
1530
- export function __wbg_global_c85a9259e621f3db() { return handleError(function () {
1636
+ export function __wbg_global_35dfdd59a4da3e74() { return handleError(function () {
1531
1637
  const ret = global.global;
1532
1638
  return addHeapObject(ret);
1533
1639
  }, arguments) };
@@ -1537,50 +1643,50 @@ export function __wbindgen_is_undefined(arg0) {
1537
1643
  return ret;
1538
1644
  };
1539
1645
 
1540
- export function __wbg_eval_be0434aab6074e1e() { return handleError(function (arg0, arg1) {
1646
+ export function __wbg_eval_0b93354704a20351() { return handleError(function (arg0, arg1) {
1541
1647
  const ret = eval(getStringFromWasm0(arg0, arg1));
1542
1648
  return addHeapObject(ret);
1543
1649
  }, arguments) };
1544
1650
 
1545
- export function __wbg_push_49c286f04dd3bf59(arg0, arg1) {
1651
+ export function __wbg_push_901f3914205d44de(arg0, arg1) {
1546
1652
  const ret = getObject(arg0).push(getObject(arg1));
1547
1653
  return ret;
1548
1654
  };
1549
1655
 
1550
- export function __wbg_call_9495de66fdbe016b() { return handleError(function (arg0, arg1, arg2) {
1656
+ export function __wbg_call_5da1969d7cd31ccd() { return handleError(function (arg0, arg1, arg2) {
1551
1657
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
1552
1658
  return addHeapObject(ret);
1553
1659
  }, arguments) };
1554
1660
 
1555
- export function __wbg_name_4e66d4cfa3e9270a(arg0) {
1661
+ export function __wbg_name_0b0c238354bb6019(arg0) {
1556
1662
  const ret = getObject(arg0).name;
1557
1663
  return addHeapObject(ret);
1558
1664
  };
1559
1665
 
1560
- export function __wbg_instanceof_Object_f5a826c4da0d4a94(arg0) {
1666
+ export function __wbg_instanceof_Object_702c4990f4c3db8d(arg0) {
1561
1667
  let result;
1562
1668
  try {
1563
1669
  result = getObject(arg0) instanceof Object;
1564
- } catch {
1670
+ } catch (_) {
1565
1671
  result = false;
1566
1672
  }
1567
1673
  const ret = result;
1568
1674
  return ret;
1569
1675
  };
1570
1676
 
1571
- export function __wbg_constructor_0c9828c8a7cf1dc6(arg0) {
1677
+ export function __wbg_constructor_2cc2b72dddc41594(arg0) {
1572
1678
  const ret = getObject(arg0).constructor;
1573
1679
  return addHeapObject(ret);
1574
1680
  };
1575
1681
 
1576
- export function __wbg_new_9d3a9ce4282a18a8(arg0, arg1) {
1682
+ export function __wbg_new_60f57089c7563e81(arg0, arg1) {
1577
1683
  try {
1578
1684
  var state0 = {a: arg0, b: arg1};
1579
1685
  var cb0 = (arg0, arg1) => {
1580
1686
  const a = state0.a;
1581
1687
  state0.a = 0;
1582
1688
  try {
1583
- return __wbg_adapter_152(a, state0.b, arg0, arg1);
1689
+ return __wbg_adapter_176(a, state0.b, arg0, arg1);
1584
1690
  } finally {
1585
1691
  state0.a = a;
1586
1692
  }
@@ -1592,45 +1698,79 @@ export function __wbg_new_9d3a9ce4282a18a8(arg0, arg1) {
1592
1698
  }
1593
1699
  };
1594
1700
 
1595
- export function __wbg_resolve_fd40f858d9db1a04(arg0) {
1701
+ export function __wbg_resolve_6e1c6553a82f85b7(arg0) {
1596
1702
  const ret = Promise.resolve(getObject(arg0));
1597
1703
  return addHeapObject(ret);
1598
1704
  };
1599
1705
 
1600
- export function __wbg_then_ec5db6d509eb475f(arg0, arg1) {
1706
+ export function __wbg_then_3ab08cd4fbb91ae9(arg0, arg1) {
1601
1707
  const ret = getObject(arg0).then(getObject(arg1));
1602
1708
  return addHeapObject(ret);
1603
1709
  };
1604
1710
 
1605
- export function __wbg_set_6aa458a4ebdb65cb() { return handleError(function (arg0, arg1, arg2) {
1711
+ export function __wbg_buffer_a448f833075b71ba(arg0) {
1712
+ const ret = getObject(arg0).buffer;
1713
+ return addHeapObject(ret);
1714
+ };
1715
+
1716
+ export function __wbg_newwithbyteoffsetandlength_d0482f893617af71(arg0, arg1, arg2) {
1717
+ const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
1718
+ return addHeapObject(ret);
1719
+ };
1720
+
1721
+ export function __wbg_new_8f67e318f15d7254(arg0) {
1722
+ const ret = new Uint8Array(getObject(arg0));
1723
+ return addHeapObject(ret);
1724
+ };
1725
+
1726
+ export function __wbg_set_2357bf09366ee480(arg0, arg1, arg2) {
1727
+ getObject(arg0).set(getObject(arg1), arg2 >>> 0);
1728
+ };
1729
+
1730
+ export function __wbg_newwithlength_6c2df9e2f3028c43(arg0) {
1731
+ const ret = new Uint8Array(arg0 >>> 0);
1732
+ return addHeapObject(ret);
1733
+ };
1734
+
1735
+ export function __wbg_subarray_2e940e41c0f5a1d9(arg0, arg1, arg2) {
1736
+ const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
1737
+ return addHeapObject(ret);
1738
+ };
1739
+
1740
+ export function __wbg_set_759f75cd92b612d2() { return handleError(function (arg0, arg1, arg2) {
1606
1741
  const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
1607
1742
  return ret;
1608
1743
  }, arguments) };
1609
1744
 
1610
1745
  export function __wbindgen_debug_string(arg0, arg1) {
1611
1746
  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;
1747
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1748
+ const len1 = WASM_VECTOR_LEN;
1749
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
1750
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
1616
1751
  };
1617
1752
 
1618
1753
  export function __wbindgen_throw(arg0, arg1) {
1619
1754
  throw new Error(getStringFromWasm0(arg0, arg1));
1620
1755
  };
1621
1756
 
1622
- export function __wbindgen_closure_wrapper1065(arg0, arg1, arg2) {
1623
- const ret = makeMutClosure(arg0, arg1, 458, __wbg_adapter_24);
1757
+ export function __wbindgen_memory() {
1758
+ const ret = wasm.memory;
1759
+ return addHeapObject(ret);
1760
+ };
1761
+
1762
+ export function __wbindgen_closure_wrapper1192(arg0, arg1, arg2) {
1763
+ const ret = makeMutClosure(arg0, arg1, 510, __wbg_adapter_32);
1624
1764
  return addHeapObject(ret);
1625
1765
  };
1626
1766
 
1627
- export function __wbindgen_closure_wrapper1117(arg0, arg1, arg2) {
1628
- const ret = makeMutClosure(arg0, arg1, 494, __wbg_adapter_27);
1767
+ export function __wbindgen_closure_wrapper1218(arg0, arg1, arg2) {
1768
+ const ret = makeMutClosure(arg0, arg1, 523, __wbg_adapter_35);
1629
1769
  return addHeapObject(ret);
1630
1770
  };
1631
1771
 
1632
- export function __wbindgen_closure_wrapper1404(arg0, arg1, arg2) {
1633
- const ret = makeMutClosure(arg0, arg1, 600, __wbg_adapter_30);
1772
+ export function __wbindgen_closure_wrapper1562(arg0, arg1, arg2) {
1773
+ const ret = makeMutClosure(arg0, arg1, 631, __wbg_adapter_38);
1634
1774
  return addHeapObject(ret);
1635
1775
  };
1636
1776
 
package/klib_bg.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "Aaron Roney <twitchax@gmail.com>"
5
5
  ],
6
6
  "description": "A tool to easily explore music theory principles.",
7
- "version": "0.6.1",
7
+ "version": "0.7.1",
8
8
  "license": "MIT",
9
9
  "repository": {
10
10
  "type": "git",