kordweb 0.5.6 → 0.5.7

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
@@ -228,7 +228,10 @@ chord.name(); // C7(♯9)
228
228
  chord.chordString(); // C4 E4 G4 Bb5 D#5
229
229
 
230
230
  // Easy chaining.
231
- KordChord.parse("C7b9").withOctave(2).chord().map(n => n.name()); // [ 'C2', 'D♭2', 'E2', 'G2', 'B♭2' ]
231
+ KordChord.parse('C7b9').withOctave(2).chord().map(n => n.name()); // [ 'C2', 'D♭2', 'E2', 'G2', 'B♭2' ]
232
+
233
+ // Build chords.
234
+ KordChord.parse('C').min().seven().chord().map(n => n.name()); // [ 'C4', 'Eb4', 'G4', 'Bb4' ]
232
235
  ```
233
236
 
234
237
  ## Feature Flags
package/klib.d.ts CHANGED
@@ -202,59 +202,6 @@ export enum KordInterval {
202
202
  ThreePerfectOctavesAndMajorSeventh = 47,
203
203
  }
204
204
  /**
205
- * The chord modifiers.
206
- */
207
- export enum KordModifier {
208
- /**
209
- * Minor modifier.
210
- */
211
- Minor = 0,
212
- /**
213
- * Flat 5 modifier.
214
- */
215
- Flat5 = 1,
216
- /**
217
- * Sharp 5 modifier.
218
- */
219
- Augmented5 = 2,
220
- /**
221
- * Major 7 modifier.
222
- */
223
- Major7 = 3,
224
- /**
225
- * Dominant 7 modifier.
226
- */
227
- Dominant7 = 4,
228
- /**
229
- * Dominant 9 modifier.
230
- */
231
- Dominant9 = 5,
232
- /**
233
- * Dominant 11 modifier.
234
- */
235
- Dominant11 = 6,
236
- /**
237
- * Dominant 13 modifier.
238
- */
239
- Dominant13 = 7,
240
- /**
241
- * Flat 9 modifier.
242
- */
243
- Flat9 = 8,
244
- /**
245
- * Sharp 9 modifier.
246
- */
247
- Sharp9 = 9,
248
- /**
249
- * Sharp 11 modifier.
250
- */
251
- Sharp11 = 10,
252
- /**
253
- * Diminished modifier.
254
- */
255
- Diminished = 11,
256
- }
257
- /**
258
205
  * An enum representing the extension of a chord.
259
206
  *
260
207
  * Extensions are not really "special" in the sense that they do not change how the
@@ -308,6 +255,59 @@ export enum KordExtension {
308
255
  Add13 = 10,
309
256
  }
310
257
  /**
258
+ * The chord modifiers.
259
+ */
260
+ export enum KordModifier {
261
+ /**
262
+ * Minor modifier.
263
+ */
264
+ Minor = 0,
265
+ /**
266
+ * Flat 5 modifier.
267
+ */
268
+ Flat5 = 1,
269
+ /**
270
+ * Sharp 5 modifier.
271
+ */
272
+ Augmented5 = 2,
273
+ /**
274
+ * Major 7 modifier.
275
+ */
276
+ Major7 = 3,
277
+ /**
278
+ * Dominant 7 modifier.
279
+ */
280
+ Dominant7 = 4,
281
+ /**
282
+ * Dominant 9 modifier.
283
+ */
284
+ Dominant9 = 5,
285
+ /**
286
+ * Dominant 11 modifier.
287
+ */
288
+ Dominant11 = 6,
289
+ /**
290
+ * Dominant 13 modifier.
291
+ */
292
+ Dominant13 = 7,
293
+ /**
294
+ * Flat 9 modifier.
295
+ */
296
+ Flat9 = 8,
297
+ /**
298
+ * Sharp 9 modifier.
299
+ */
300
+ Sharp9 = 9,
301
+ /**
302
+ * Sharp 11 modifier.
303
+ */
304
+ Sharp11 = 10,
305
+ /**
306
+ * Diminished modifier.
307
+ */
308
+ Diminished = 11,
309
+ }
310
+ /**
311
311
  * The [`Chord`] wrapper.
312
312
  */
313
313
  export class KordChord {
@@ -427,7 +427,7 @@ export class KordChord {
427
427
  */
428
428
  withOctave(octave: number): KordChord;
429
429
  /**
430
- * Returns a new [`Chord`] with the "crunchiness" to the provided value.
430
+ * Returns a new [`Chord`] with the "crunchiness" set to the provided value.
431
431
  * @param {boolean} is_crunchy
432
432
  * @returns {KordChord}
433
433
  */
@@ -445,6 +445,126 @@ export class KordChord {
445
445
  * @returns {KordChord}
446
446
  */
447
447
  copy(): KordChord;
448
+ /**
449
+ * Returns a new [`Chord`] with the `minor` modifier.
450
+ * @returns {KordChord}
451
+ */
452
+ minor(): KordChord;
453
+ /**
454
+ * Returns a new [`Chord`] with the `flat5` modifier.
455
+ * @returns {KordChord}
456
+ */
457
+ flat5(): KordChord;
458
+ /**
459
+ * Returns a new [`Chord`] with the `augmented` modifier.
460
+ * @returns {KordChord}
461
+ */
462
+ aug(): KordChord;
463
+ /**
464
+ * Returns a new [`Chord`] with the `maj7` modifier.
465
+ * @returns {KordChord}
466
+ */
467
+ maj7(): KordChord;
468
+ /**
469
+ * Returns a new [`Chord`] with the `dom7` modifier.
470
+ * @returns {KordChord}
471
+ */
472
+ seven(): KordChord;
473
+ /**
474
+ * Returns a new [`Chord`] with the `dom9` modifier.
475
+ * @returns {KordChord}
476
+ */
477
+ nine(): KordChord;
478
+ /**
479
+ * Returns a new [`Chord`] with the `dom11` modifier.
480
+ * @returns {KordChord}
481
+ */
482
+ eleven(): KordChord;
483
+ /**
484
+ * Returns a new [`Chord`] with the `dom13` modifier.
485
+ * @returns {KordChord}
486
+ */
487
+ thirteen(): KordChord;
488
+ /**
489
+ * Returns a new [`Chord`] with the `flat9` modifier.
490
+ * @returns {KordChord}
491
+ */
492
+ flat9(): KordChord;
493
+ /**
494
+ * Returns a new [`Chord`] with the `sharp9` modifier.
495
+ * @returns {KordChord}
496
+ */
497
+ sharp9(): KordChord;
498
+ /**
499
+ * Returns a new [`Chord`] with the `sharp11` modifier.
500
+ * @returns {KordChord}
501
+ */
502
+ sharp11(): KordChord;
503
+ /**
504
+ * Returns a new [`Chord`] with the `dim` modifier.
505
+ * @returns {KordChord}
506
+ */
507
+ dim(): KordChord;
508
+ /**
509
+ * Returns a new [`Chord`] with the `halfDim` modifier.
510
+ * @returns {KordChord}
511
+ */
512
+ halfDim(): KordChord;
513
+ /**
514
+ * Returns a new [`Chord`] with the `sus2` extension.
515
+ * @returns {KordChord}
516
+ */
517
+ sus2(): KordChord;
518
+ /**
519
+ * Returns a new [`Chord`] with the `sus4` extension.
520
+ * @returns {KordChord}
521
+ */
522
+ sus4(): KordChord;
523
+ /**
524
+ * Returns a new [`Chord`] with the `flat11` extension.
525
+ * @returns {KordChord}
526
+ */
527
+ flat11(): KordChord;
528
+ /**
529
+ * Returns a new [`Chord`] with the `flat13` extension.
530
+ * @returns {KordChord}
531
+ */
532
+ flat13(): KordChord;
533
+ /**
534
+ * Returns a new [`Chord`] with the `sharp13` extension.
535
+ * @returns {KordChord}
536
+ */
537
+ sharp13(): KordChord;
538
+ /**
539
+ * Returns a new [`Chord`] with the `add2` extension.
540
+ * @returns {KordChord}
541
+ */
542
+ add2(): KordChord;
543
+ /**
544
+ * Returns a new [`Chord`] with the `add4` extension.
545
+ * @returns {KordChord}
546
+ */
547
+ add4(): KordChord;
548
+ /**
549
+ * Returns a new [`Chord`] with the `add6` extension.
550
+ * @returns {KordChord}
551
+ */
552
+ add6(): KordChord;
553
+ /**
554
+ * Returns a new [`Chord`] with the `add9` extension.
555
+ * @returns {KordChord}
556
+ */
557
+ add9(): KordChord;
558
+ /**
559
+ * Returns a new [`Chord`] with the `add11` extension.
560
+ * @returns {KordChord}
561
+ */
562
+ add11(): KordChord;
563
+ /**
564
+ * Returns a new [`Chord`] with the `add13` extension.
565
+ * @returns {KordChord}
566
+ */
567
+ add13(): KordChord;
448
568
  }
449
569
  /**
450
570
  * The [`Note`] wrapper.
@@ -498,13 +618,18 @@ export class KordNote {
498
618
  frequency(): number;
499
619
  /**
500
620
  * Adds the given interval to the [`Note`].
501
- *
621
+ *
502
622
  * Clones the underlying note before mutation, producing a _new_ [`KordNote`].
503
623
  * @param {number} interval
504
624
  * @returns {KordNote}
505
625
  */
506
626
  addInterval(interval: number): KordNote;
507
627
  /**
628
+ * Returns the primary (first 13) harmonic series of the [`Note`].
629
+ * @returns {Array<any>}
630
+ */
631
+ harmonicSeries(): Array<any>;
632
+ /**
508
633
  * Returns the clone of the [`Note`].
509
634
  * @returns {KordNote}
510
635
  */
@@ -525,6 +650,7 @@ export interface InitOutput {
525
650
  readonly kordnote_octave: (a: number) => number;
526
651
  readonly kordnote_frequency: (a: number) => number;
527
652
  readonly kordnote_addInterval: (a: number, b: number, c: number) => void;
653
+ readonly kordnote_harmonicSeries: (a: number) => number;
528
654
  readonly kordnote_copy: (a: number) => number;
529
655
  readonly __wbg_kordchord_free: (a: number) => void;
530
656
  readonly kordchord_parse: (a: number, b: number, c: number) => void;
@@ -550,6 +676,30 @@ export interface InitOutput {
550
676
  readonly kordchord_withCrunchy: (a: number, b: number) => number;
551
677
  readonly kordchord_play: (a: number, b: number, c: number, d: number) => number;
552
678
  readonly kordchord_copy: (a: number) => number;
679
+ readonly kordchord_minor: (a: number) => number;
680
+ readonly kordchord_flat5: (a: number) => number;
681
+ readonly kordchord_aug: (a: number) => number;
682
+ readonly kordchord_maj7: (a: number) => number;
683
+ readonly kordchord_seven: (a: number) => number;
684
+ readonly kordchord_nine: (a: number) => number;
685
+ readonly kordchord_eleven: (a: number) => number;
686
+ readonly kordchord_thirteen: (a: number) => number;
687
+ readonly kordchord_flat9: (a: number) => number;
688
+ readonly kordchord_sharp9: (a: number) => number;
689
+ readonly kordchord_sharp11: (a: number) => number;
690
+ readonly kordchord_dim: (a: number) => number;
691
+ readonly kordchord_halfDim: (a: number) => number;
692
+ readonly kordchord_sus2: (a: number) => number;
693
+ readonly kordchord_sus4: (a: number) => number;
694
+ readonly kordchord_flat11: (a: number) => number;
695
+ readonly kordchord_flat13: (a: number) => number;
696
+ readonly kordchord_sharp13: (a: number) => number;
697
+ readonly kordchord_add2: (a: number) => number;
698
+ readonly kordchord_add4: (a: number) => number;
699
+ readonly kordchord_add6: (a: number) => number;
700
+ readonly kordchord_add9: (a: number) => number;
701
+ readonly kordchord_add11: (a: number) => number;
702
+ readonly kordchord_add13: (a: number) => number;
553
703
  readonly kordchord_toString: (a: number, b: number) => void;
554
704
  readonly main: () => void;
555
705
  readonly __wbindgen_malloc: (a: number) => number;
package/klib.js CHANGED
@@ -266,7 +266,7 @@ function handleError(f, args) {
266
266
  function getArrayF32FromWasm0(ptr, len) {
267
267
  return getFloat32Memory0().subarray(ptr / 4, ptr / 4 + len);
268
268
  }
269
- function __wbg_adapter_125(arg0, arg1, arg2, arg3) {
269
+ function __wbg_adapter_150(arg0, arg1, arg2, arg3) {
270
270
  wasm.wasm_bindgen__convert__closures__invoke2_mut__h768f6593dd414d73(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
271
271
  }
272
272
 
@@ -467,58 +467,6 @@ ThreePerfectOctavesAndMinorSeventh:46,"46":"ThreePerfectOctavesAndMinorSeventh",
467
467
  */
468
468
  ThreePerfectOctavesAndMajorSeventh:47,"47":"ThreePerfectOctavesAndMajorSeventh", });
469
469
  /**
470
- * The chord modifiers.
471
- */
472
- export const KordModifier = Object.freeze({
473
- /**
474
- * Minor modifier.
475
- */
476
- Minor:0,"0":"Minor",
477
- /**
478
- * Flat 5 modifier.
479
- */
480
- Flat5:1,"1":"Flat5",
481
- /**
482
- * Sharp 5 modifier.
483
- */
484
- Augmented5:2,"2":"Augmented5",
485
- /**
486
- * Major 7 modifier.
487
- */
488
- Major7:3,"3":"Major7",
489
- /**
490
- * Dominant 7 modifier.
491
- */
492
- Dominant7:4,"4":"Dominant7",
493
- /**
494
- * Dominant 9 modifier.
495
- */
496
- Dominant9:5,"5":"Dominant9",
497
- /**
498
- * Dominant 11 modifier.
499
- */
500
- Dominant11:6,"6":"Dominant11",
501
- /**
502
- * Dominant 13 modifier.
503
- */
504
- Dominant13:7,"7":"Dominant13",
505
- /**
506
- * Flat 9 modifier.
507
- */
508
- Flat9:8,"8":"Flat9",
509
- /**
510
- * Sharp 9 modifier.
511
- */
512
- Sharp9:9,"9":"Sharp9",
513
- /**
514
- * Sharp 11 modifier.
515
- */
516
- Sharp11:10,"10":"Sharp11",
517
- /**
518
- * Diminished modifier.
519
- */
520
- Diminished:11,"11":"Diminished", });
521
- /**
522
470
  * An enum representing the extension of a chord.
523
471
  *
524
472
  * Extensions are not really "special" in the sense that they do not change how the
@@ -570,6 +518,58 @@ Add11:9,"9":"Add11",
570
518
  * Add13 extension.
571
519
  */
572
520
  Add13:10,"10":"Add13", });
521
+ /**
522
+ * The chord modifiers.
523
+ */
524
+ export const KordModifier = Object.freeze({
525
+ /**
526
+ * Minor modifier.
527
+ */
528
+ Minor:0,"0":"Minor",
529
+ /**
530
+ * Flat 5 modifier.
531
+ */
532
+ Flat5:1,"1":"Flat5",
533
+ /**
534
+ * Sharp 5 modifier.
535
+ */
536
+ Augmented5:2,"2":"Augmented5",
537
+ /**
538
+ * Major 7 modifier.
539
+ */
540
+ Major7:3,"3":"Major7",
541
+ /**
542
+ * Dominant 7 modifier.
543
+ */
544
+ Dominant7:4,"4":"Dominant7",
545
+ /**
546
+ * Dominant 9 modifier.
547
+ */
548
+ Dominant9:5,"5":"Dominant9",
549
+ /**
550
+ * Dominant 11 modifier.
551
+ */
552
+ Dominant11:6,"6":"Dominant11",
553
+ /**
554
+ * Dominant 13 modifier.
555
+ */
556
+ Dominant13:7,"7":"Dominant13",
557
+ /**
558
+ * Flat 9 modifier.
559
+ */
560
+ Flat9:8,"8":"Flat9",
561
+ /**
562
+ * Sharp 9 modifier.
563
+ */
564
+ Sharp9:9,"9":"Sharp9",
565
+ /**
566
+ * Sharp 11 modifier.
567
+ */
568
+ Sharp11:10,"10":"Sharp11",
569
+ /**
570
+ * Diminished modifier.
571
+ */
572
+ Diminished:11,"11":"Diminished", });
573
573
 
574
574
  const KordChordFinalization = new FinalizationRegistry(ptr => wasm.__wbg_kordchord_free(ptr));
575
575
  /**
@@ -894,7 +894,7 @@ export class KordChord {
894
894
  }
895
895
  }
896
896
  /**
897
- * Returns a new [`Chord`] with the "crunchiness" to the provided value.
897
+ * Returns a new [`Chord`] with the "crunchiness" set to the provided value.
898
898
  * @param {boolean} is_crunchy
899
899
  * @returns {KordChord}
900
900
  */
@@ -921,6 +921,198 @@ export class KordChord {
921
921
  const ret = wasm.kordchord_copy(this.ptr);
922
922
  return KordChord.__wrap(ret);
923
923
  }
924
+ /**
925
+ * Returns a new [`Chord`] with the `minor` modifier.
926
+ * @returns {KordChord}
927
+ */
928
+ minor() {
929
+ const ret = wasm.kordchord_minor(this.ptr);
930
+ return KordChord.__wrap(ret);
931
+ }
932
+ /**
933
+ * Returns a new [`Chord`] with the `flat5` modifier.
934
+ * @returns {KordChord}
935
+ */
936
+ flat5() {
937
+ const ret = wasm.kordchord_flat5(this.ptr);
938
+ return KordChord.__wrap(ret);
939
+ }
940
+ /**
941
+ * Returns a new [`Chord`] with the `augmented` modifier.
942
+ * @returns {KordChord}
943
+ */
944
+ aug() {
945
+ const ret = wasm.kordchord_aug(this.ptr);
946
+ return KordChord.__wrap(ret);
947
+ }
948
+ /**
949
+ * Returns a new [`Chord`] with the `maj7` modifier.
950
+ * @returns {KordChord}
951
+ */
952
+ maj7() {
953
+ const ret = wasm.kordchord_maj7(this.ptr);
954
+ return KordChord.__wrap(ret);
955
+ }
956
+ /**
957
+ * Returns a new [`Chord`] with the `dom7` modifier.
958
+ * @returns {KordChord}
959
+ */
960
+ seven() {
961
+ const ret = wasm.kordchord_seven(this.ptr);
962
+ return KordChord.__wrap(ret);
963
+ }
964
+ /**
965
+ * Returns a new [`Chord`] with the `dom9` modifier.
966
+ * @returns {KordChord}
967
+ */
968
+ nine() {
969
+ const ret = wasm.kordchord_nine(this.ptr);
970
+ return KordChord.__wrap(ret);
971
+ }
972
+ /**
973
+ * Returns a new [`Chord`] with the `dom11` modifier.
974
+ * @returns {KordChord}
975
+ */
976
+ eleven() {
977
+ const ret = wasm.kordchord_eleven(this.ptr);
978
+ return KordChord.__wrap(ret);
979
+ }
980
+ /**
981
+ * Returns a new [`Chord`] with the `dom13` modifier.
982
+ * @returns {KordChord}
983
+ */
984
+ thirteen() {
985
+ const ret = wasm.kordchord_thirteen(this.ptr);
986
+ return KordChord.__wrap(ret);
987
+ }
988
+ /**
989
+ * Returns a new [`Chord`] with the `flat9` modifier.
990
+ * @returns {KordChord}
991
+ */
992
+ flat9() {
993
+ const ret = wasm.kordchord_flat9(this.ptr);
994
+ return KordChord.__wrap(ret);
995
+ }
996
+ /**
997
+ * Returns a new [`Chord`] with the `sharp9` modifier.
998
+ * @returns {KordChord}
999
+ */
1000
+ sharp9() {
1001
+ const ret = wasm.kordchord_sharp9(this.ptr);
1002
+ return KordChord.__wrap(ret);
1003
+ }
1004
+ /**
1005
+ * Returns a new [`Chord`] with the `sharp11` modifier.
1006
+ * @returns {KordChord}
1007
+ */
1008
+ sharp11() {
1009
+ const ret = wasm.kordchord_sharp11(this.ptr);
1010
+ return KordChord.__wrap(ret);
1011
+ }
1012
+ /**
1013
+ * Returns a new [`Chord`] with the `dim` modifier.
1014
+ * @returns {KordChord}
1015
+ */
1016
+ dim() {
1017
+ const ret = wasm.kordchord_dim(this.ptr);
1018
+ return KordChord.__wrap(ret);
1019
+ }
1020
+ /**
1021
+ * Returns a new [`Chord`] with the `halfDim` modifier.
1022
+ * @returns {KordChord}
1023
+ */
1024
+ halfDim() {
1025
+ const ret = wasm.kordchord_halfDim(this.ptr);
1026
+ return KordChord.__wrap(ret);
1027
+ }
1028
+ /**
1029
+ * Returns a new [`Chord`] with the `sus2` extension.
1030
+ * @returns {KordChord}
1031
+ */
1032
+ sus2() {
1033
+ const ret = wasm.kordchord_sus2(this.ptr);
1034
+ return KordChord.__wrap(ret);
1035
+ }
1036
+ /**
1037
+ * Returns a new [`Chord`] with the `sus4` extension.
1038
+ * @returns {KordChord}
1039
+ */
1040
+ sus4() {
1041
+ const ret = wasm.kordchord_sus4(this.ptr);
1042
+ return KordChord.__wrap(ret);
1043
+ }
1044
+ /**
1045
+ * Returns a new [`Chord`] with the `flat11` extension.
1046
+ * @returns {KordChord}
1047
+ */
1048
+ flat11() {
1049
+ const ret = wasm.kordchord_flat11(this.ptr);
1050
+ return KordChord.__wrap(ret);
1051
+ }
1052
+ /**
1053
+ * Returns a new [`Chord`] with the `flat13` extension.
1054
+ * @returns {KordChord}
1055
+ */
1056
+ flat13() {
1057
+ const ret = wasm.kordchord_flat13(this.ptr);
1058
+ return KordChord.__wrap(ret);
1059
+ }
1060
+ /**
1061
+ * Returns a new [`Chord`] with the `sharp13` extension.
1062
+ * @returns {KordChord}
1063
+ */
1064
+ sharp13() {
1065
+ const ret = wasm.kordchord_sharp13(this.ptr);
1066
+ return KordChord.__wrap(ret);
1067
+ }
1068
+ /**
1069
+ * Returns a new [`Chord`] with the `add2` extension.
1070
+ * @returns {KordChord}
1071
+ */
1072
+ add2() {
1073
+ const ret = wasm.kordchord_add2(this.ptr);
1074
+ return KordChord.__wrap(ret);
1075
+ }
1076
+ /**
1077
+ * Returns a new [`Chord`] with the `add4` extension.
1078
+ * @returns {KordChord}
1079
+ */
1080
+ add4() {
1081
+ const ret = wasm.kordchord_add4(this.ptr);
1082
+ return KordChord.__wrap(ret);
1083
+ }
1084
+ /**
1085
+ * Returns a new [`Chord`] with the `add6` extension.
1086
+ * @returns {KordChord}
1087
+ */
1088
+ add6() {
1089
+ const ret = wasm.kordchord_add6(this.ptr);
1090
+ return KordChord.__wrap(ret);
1091
+ }
1092
+ /**
1093
+ * Returns a new [`Chord`] with the `add9` extension.
1094
+ * @returns {KordChord}
1095
+ */
1096
+ add9() {
1097
+ const ret = wasm.kordchord_add9(this.ptr);
1098
+ return KordChord.__wrap(ret);
1099
+ }
1100
+ /**
1101
+ * Returns a new [`Chord`] with the `add11` extension.
1102
+ * @returns {KordChord}
1103
+ */
1104
+ add11() {
1105
+ const ret = wasm.kordchord_add11(this.ptr);
1106
+ return KordChord.__wrap(ret);
1107
+ }
1108
+ /**
1109
+ * Returns a new [`Chord`] with the `add13` extension.
1110
+ * @returns {KordChord}
1111
+ */
1112
+ add13() {
1113
+ const ret = wasm.kordchord_add13(this.ptr);
1114
+ return KordChord.__wrap(ret);
1115
+ }
924
1116
  }
925
1117
 
926
1118
  const KordNoteFinalization = new FinalizationRegistry(ptr => wasm.__wbg_kordnote_free(ptr));
@@ -1102,6 +1294,14 @@ export class KordNote {
1102
1294
  }
1103
1295
  }
1104
1296
  /**
1297
+ * Returns the primary (first 13) harmonic series of the [`Note`].
1298
+ * @returns {Array<any>}
1299
+ */
1300
+ harmonicSeries() {
1301
+ const ret = wasm.kordnote_harmonicSeries(this.ptr);
1302
+ return takeObject(ret);
1303
+ }
1304
+ /**
1105
1305
  * Returns the clone of the [`Note`].
1106
1306
  * @returns {KordNote}
1107
1307
  */
@@ -1148,24 +1348,18 @@ function getImports() {
1148
1348
  imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
1149
1349
  takeObject(arg0);
1150
1350
  };
1151
- imports.wbg.__wbg_kordchord_new = function(arg0) {
1152
- const ret = KordChord.__wrap(arg0);
1153
- return addHeapObject(ret);
1154
- };
1155
1351
  imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
1156
1352
  const ret = getStringFromWasm0(arg0, arg1);
1157
1353
  return addHeapObject(ret);
1158
1354
  };
1355
+ imports.wbg.__wbg_kordchord_new = function(arg0) {
1356
+ const ret = KordChord.__wrap(arg0);
1357
+ return addHeapObject(ret);
1358
+ };
1159
1359
  imports.wbg.__wbg_kordnote_new = function(arg0) {
1160
1360
  const ret = KordNote.__wrap(arg0);
1161
1361
  return addHeapObject(ret);
1162
1362
  };
1163
- imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
1164
- const obj = getObject(arg1);
1165
- const ret = typeof(obj) === 'number' ? obj : undefined;
1166
- getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
1167
- getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
1168
- };
1169
1363
  imports.wbg.__wbindgen_cb_drop = function(arg0) {
1170
1364
  const obj = takeObject(arg0).original;
1171
1365
  if (obj.cnt-- == 1) {
@@ -1175,6 +1369,12 @@ function getImports() {
1175
1369
  const ret = false;
1176
1370
  return ret;
1177
1371
  };
1372
+ imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
1373
+ const obj = getObject(arg1);
1374
+ const ret = typeof(obj) === 'number' ? obj : undefined;
1375
+ getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
1376
+ getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
1377
+ };
1178
1378
  imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
1179
1379
  const ret = new Error();
1180
1380
  return addHeapObject(ret);
@@ -1357,7 +1557,7 @@ function getImports() {
1357
1557
  const a = state0.a;
1358
1558
  state0.a = 0;
1359
1559
  try {
1360
- return __wbg_adapter_125(a, state0.b, arg0, arg1);
1560
+ return __wbg_adapter_150(a, state0.b, arg0, arg1);
1361
1561
  } finally {
1362
1562
  state0.a = a;
1363
1563
  }
@@ -1390,12 +1590,12 @@ function getImports() {
1390
1590
  imports.wbg.__wbindgen_throw = function(arg0, arg1) {
1391
1591
  throw new Error(getStringFromWasm0(arg0, arg1));
1392
1592
  };
1393
- imports.wbg.__wbindgen_closure_wrapper1041 = function(arg0, arg1, arg2) {
1394
- const ret = makeMutClosure(arg0, arg1, 469, __wbg_adapter_24);
1593
+ imports.wbg.__wbindgen_closure_wrapper1061 = function(arg0, arg1, arg2) {
1594
+ const ret = makeMutClosure(arg0, arg1, 466, __wbg_adapter_24);
1395
1595
  return addHeapObject(ret);
1396
1596
  };
1397
- imports.wbg.__wbindgen_closure_wrapper1368 = function(arg0, arg1, arg2) {
1398
- const ret = makeMutClosure(arg0, arg1, 606, __wbg_adapter_27);
1597
+ imports.wbg.__wbindgen_closure_wrapper1388 = function(arg0, arg1, arg2) {
1598
+ const ret = makeMutClosure(arg0, arg1, 603, __wbg_adapter_27);
1399
1599
  return addHeapObject(ret);
1400
1600
  };
1401
1601
 
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.5.6",
7
+ "version": "0.5.7",
8
8
  "license": "MIT",
9
9
  "repository": {
10
10
  "type": "git",