kordweb 0.5.5 → 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 +42 -1
- package/klib.d.ts +510 -90
- package/klib.js +797 -361
- package/klib_bg.wasm +0 -0
- package/package.json +1 -1
package/klib.js
CHANGED
|
@@ -1,6 +1,26 @@
|
|
|
1
1
|
const lAudioContext = (typeof AudioContext !== 'undefined' ? AudioContext : (typeof webkitAudioContext !== 'undefined' ? webkitAudioContext : undefined));
|
|
2
2
|
let wasm;
|
|
3
3
|
|
|
4
|
+
const heap = new Array(128).fill(undefined);
|
|
5
|
+
|
|
6
|
+
heap.push(undefined, null, true, false);
|
|
7
|
+
|
|
8
|
+
function getObject(idx) { return heap[idx]; }
|
|
9
|
+
|
|
10
|
+
let heap_next = heap.length;
|
|
11
|
+
|
|
12
|
+
function dropObject(idx) {
|
|
13
|
+
if (idx < 132) return;
|
|
14
|
+
heap[idx] = heap_next;
|
|
15
|
+
heap_next = idx;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function takeObject(idx) {
|
|
19
|
+
const ret = getObject(idx);
|
|
20
|
+
dropObject(idx);
|
|
21
|
+
return ret;
|
|
22
|
+
}
|
|
23
|
+
|
|
4
24
|
const cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
5
25
|
|
|
6
26
|
cachedTextDecoder.decode();
|
|
@@ -18,12 +38,6 @@ function getStringFromWasm0(ptr, len) {
|
|
|
18
38
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
19
39
|
}
|
|
20
40
|
|
|
21
|
-
const heap = new Array(128).fill(undefined);
|
|
22
|
-
|
|
23
|
-
heap.push(undefined, null, true, false);
|
|
24
|
-
|
|
25
|
-
let heap_next = heap.length;
|
|
26
|
-
|
|
27
41
|
function addHeapObject(obj) {
|
|
28
42
|
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
29
43
|
const idx = heap_next;
|
|
@@ -33,18 +47,81 @@ function addHeapObject(obj) {
|
|
|
33
47
|
return idx;
|
|
34
48
|
}
|
|
35
49
|
|
|
36
|
-
function
|
|
50
|
+
function isLikeNone(x) {
|
|
51
|
+
return x === undefined || x === null;
|
|
52
|
+
}
|
|
37
53
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
54
|
+
let cachedFloat64Memory0 = null;
|
|
55
|
+
|
|
56
|
+
function getFloat64Memory0() {
|
|
57
|
+
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
|
58
|
+
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
59
|
+
}
|
|
60
|
+
return cachedFloat64Memory0;
|
|
42
61
|
}
|
|
43
62
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
63
|
+
let cachedInt32Memory0 = null;
|
|
64
|
+
|
|
65
|
+
function getInt32Memory0() {
|
|
66
|
+
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
|
|
67
|
+
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
68
|
+
}
|
|
69
|
+
return cachedInt32Memory0;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
let WASM_VECTOR_LEN = 0;
|
|
73
|
+
|
|
74
|
+
const cachedTextEncoder = new TextEncoder('utf-8');
|
|
75
|
+
|
|
76
|
+
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
77
|
+
? function (arg, view) {
|
|
78
|
+
return cachedTextEncoder.encodeInto(arg, view);
|
|
79
|
+
}
|
|
80
|
+
: function (arg, view) {
|
|
81
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
82
|
+
view.set(buf);
|
|
83
|
+
return {
|
|
84
|
+
read: arg.length,
|
|
85
|
+
written: buf.length
|
|
86
|
+
};
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
90
|
+
|
|
91
|
+
if (realloc === undefined) {
|
|
92
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
93
|
+
const ptr = malloc(buf.length);
|
|
94
|
+
getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
95
|
+
WASM_VECTOR_LEN = buf.length;
|
|
96
|
+
return ptr;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
let len = arg.length;
|
|
100
|
+
let ptr = malloc(len);
|
|
101
|
+
|
|
102
|
+
const mem = getUint8Memory0();
|
|
103
|
+
|
|
104
|
+
let offset = 0;
|
|
105
|
+
|
|
106
|
+
for (; offset < len; offset++) {
|
|
107
|
+
const code = arg.charCodeAt(offset);
|
|
108
|
+
if (code > 0x7F) break;
|
|
109
|
+
mem[ptr + offset] = code;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
if (offset !== len) {
|
|
113
|
+
if (offset !== 0) {
|
|
114
|
+
arg = arg.slice(offset);
|
|
115
|
+
}
|
|
116
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3);
|
|
117
|
+
const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
|
|
118
|
+
const ret = encodeString(arg, view);
|
|
119
|
+
|
|
120
|
+
offset += ret.written;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
WASM_VECTOR_LEN = offset;
|
|
124
|
+
return ptr;
|
|
48
125
|
}
|
|
49
126
|
|
|
50
127
|
function debugString(val) {
|
|
@@ -112,70 +189,6 @@ function debugString(val) {
|
|
|
112
189
|
return className;
|
|
113
190
|
}
|
|
114
191
|
|
|
115
|
-
let WASM_VECTOR_LEN = 0;
|
|
116
|
-
|
|
117
|
-
const cachedTextEncoder = new TextEncoder('utf-8');
|
|
118
|
-
|
|
119
|
-
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
120
|
-
? function (arg, view) {
|
|
121
|
-
return cachedTextEncoder.encodeInto(arg, view);
|
|
122
|
-
}
|
|
123
|
-
: function (arg, view) {
|
|
124
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
125
|
-
view.set(buf);
|
|
126
|
-
return {
|
|
127
|
-
read: arg.length,
|
|
128
|
-
written: buf.length
|
|
129
|
-
};
|
|
130
|
-
});
|
|
131
|
-
|
|
132
|
-
function passStringToWasm0(arg, malloc, realloc) {
|
|
133
|
-
|
|
134
|
-
if (realloc === undefined) {
|
|
135
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
136
|
-
const ptr = malloc(buf.length);
|
|
137
|
-
getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
138
|
-
WASM_VECTOR_LEN = buf.length;
|
|
139
|
-
return ptr;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
let len = arg.length;
|
|
143
|
-
let ptr = malloc(len);
|
|
144
|
-
|
|
145
|
-
const mem = getUint8Memory0();
|
|
146
|
-
|
|
147
|
-
let offset = 0;
|
|
148
|
-
|
|
149
|
-
for (; offset < len; offset++) {
|
|
150
|
-
const code = arg.charCodeAt(offset);
|
|
151
|
-
if (code > 0x7F) break;
|
|
152
|
-
mem[ptr + offset] = code;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
if (offset !== len) {
|
|
156
|
-
if (offset !== 0) {
|
|
157
|
-
arg = arg.slice(offset);
|
|
158
|
-
}
|
|
159
|
-
ptr = realloc(ptr, len, len = offset + arg.length * 3);
|
|
160
|
-
const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
|
|
161
|
-
const ret = encodeString(arg, view);
|
|
162
|
-
|
|
163
|
-
offset += ret.written;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
WASM_VECTOR_LEN = offset;
|
|
167
|
-
return ptr;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
let cachedInt32Memory0 = null;
|
|
171
|
-
|
|
172
|
-
function getInt32Memory0() {
|
|
173
|
-
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
|
|
174
|
-
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
175
|
-
}
|
|
176
|
-
return cachedInt32Memory0;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
192
|
const CLOSURE_DTORS = new FinalizationRegistry(state => {
|
|
180
193
|
wasm.__wbindgen_export_2.get(state.dtor)(state.a, state.b)
|
|
181
194
|
});
|
|
@@ -204,14 +217,21 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
204
217
|
CLOSURE_DTORS.register(real, state, state);
|
|
205
218
|
return real;
|
|
206
219
|
}
|
|
207
|
-
function
|
|
220
|
+
function __wbg_adapter_24(arg0, arg1, arg2) {
|
|
208
221
|
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h747aa41a80ad2697(arg0, arg1, addHeapObject(arg2));
|
|
209
222
|
}
|
|
210
223
|
|
|
211
|
-
function
|
|
224
|
+
function __wbg_adapter_27(arg0, arg1) {
|
|
212
225
|
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__heeae151cfd26f044(arg0, arg1);
|
|
213
226
|
}
|
|
214
227
|
|
|
228
|
+
/**
|
|
229
|
+
* The main entrypoint which sets up global state.
|
|
230
|
+
*/
|
|
231
|
+
export function main() {
|
|
232
|
+
wasm.main();
|
|
233
|
+
}
|
|
234
|
+
|
|
215
235
|
let cachedFloat32Memory0 = null;
|
|
216
236
|
|
|
217
237
|
function getFloat32Memory0() {
|
|
@@ -246,10 +266,311 @@ function handleError(f, args) {
|
|
|
246
266
|
function getArrayF32FromWasm0(ptr, len) {
|
|
247
267
|
return getFloat32Memory0().subarray(ptr / 4, ptr / 4 + len);
|
|
248
268
|
}
|
|
249
|
-
function
|
|
269
|
+
function __wbg_adapter_150(arg0, arg1, arg2, arg3) {
|
|
250
270
|
wasm.wasm_bindgen__convert__closures__invoke2_mut__h768f6593dd414d73(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
251
271
|
}
|
|
252
272
|
|
|
273
|
+
/**
|
|
274
|
+
* An enum representing the interval between two notes.
|
|
275
|
+
*/
|
|
276
|
+
export const KordInterval = Object.freeze({
|
|
277
|
+
/**
|
|
278
|
+
* A perfect unison interval.
|
|
279
|
+
*/
|
|
280
|
+
PerfectUnison:0,"0":"PerfectUnison",
|
|
281
|
+
/**
|
|
282
|
+
* A diminished second interval.
|
|
283
|
+
*/
|
|
284
|
+
DiminishedSecond:1,"1":"DiminishedSecond",
|
|
285
|
+
/**
|
|
286
|
+
* An augmented unison interval.
|
|
287
|
+
*/
|
|
288
|
+
AugmentedUnison:2,"2":"AugmentedUnison",
|
|
289
|
+
/**
|
|
290
|
+
* A minor second interval.
|
|
291
|
+
*/
|
|
292
|
+
MinorSecond:3,"3":"MinorSecond",
|
|
293
|
+
/**
|
|
294
|
+
* A major second interval.
|
|
295
|
+
*/
|
|
296
|
+
MajorSecond:4,"4":"MajorSecond",
|
|
297
|
+
/**
|
|
298
|
+
* A diminished third interval.
|
|
299
|
+
*/
|
|
300
|
+
DiminishedThird:5,"5":"DiminishedThird",
|
|
301
|
+
/**
|
|
302
|
+
* An augmented second interval.
|
|
303
|
+
*/
|
|
304
|
+
AugmentedSecond:6,"6":"AugmentedSecond",
|
|
305
|
+
/**
|
|
306
|
+
* A minor third interval.
|
|
307
|
+
*/
|
|
308
|
+
MinorThird:7,"7":"MinorThird",
|
|
309
|
+
/**
|
|
310
|
+
* A major third interval.
|
|
311
|
+
*/
|
|
312
|
+
MajorThird:8,"8":"MajorThird",
|
|
313
|
+
/**
|
|
314
|
+
* A diminished fourth interval.
|
|
315
|
+
*/
|
|
316
|
+
DiminishedFourth:9,"9":"DiminishedFourth",
|
|
317
|
+
/**
|
|
318
|
+
* An augmented third interval.
|
|
319
|
+
*/
|
|
320
|
+
AugmentedThird:10,"10":"AugmentedThird",
|
|
321
|
+
/**
|
|
322
|
+
* A perfect fourth interval.
|
|
323
|
+
*/
|
|
324
|
+
PerfectFourth:11,"11":"PerfectFourth",
|
|
325
|
+
/**
|
|
326
|
+
* An augmented fourth interval.
|
|
327
|
+
*/
|
|
328
|
+
AugmentedFourth:12,"12":"AugmentedFourth",
|
|
329
|
+
/**
|
|
330
|
+
* A diminished fifth interval.
|
|
331
|
+
*/
|
|
332
|
+
DiminishedFifth:13,"13":"DiminishedFifth",
|
|
333
|
+
/**
|
|
334
|
+
* A perfect fifth interval.
|
|
335
|
+
*/
|
|
336
|
+
PerfectFifth:14,"14":"PerfectFifth",
|
|
337
|
+
/**
|
|
338
|
+
* A diminished sixth interval.
|
|
339
|
+
*/
|
|
340
|
+
DiminishedSixth:15,"15":"DiminishedSixth",
|
|
341
|
+
/**
|
|
342
|
+
* An augmented fifth interval.
|
|
343
|
+
*/
|
|
344
|
+
AugmentedFifth:16,"16":"AugmentedFifth",
|
|
345
|
+
/**
|
|
346
|
+
* A minor sixth interval.
|
|
347
|
+
*/
|
|
348
|
+
MinorSixth:17,"17":"MinorSixth",
|
|
349
|
+
/**
|
|
350
|
+
* A major sixth interval.
|
|
351
|
+
*/
|
|
352
|
+
MajorSixth:18,"18":"MajorSixth",
|
|
353
|
+
/**
|
|
354
|
+
* A diminished seventh interval.
|
|
355
|
+
*/
|
|
356
|
+
DiminishedSeventh:19,"19":"DiminishedSeventh",
|
|
357
|
+
/**
|
|
358
|
+
* An augmented sixth interval.
|
|
359
|
+
*/
|
|
360
|
+
AugmentedSixth:20,"20":"AugmentedSixth",
|
|
361
|
+
/**
|
|
362
|
+
* A minor seventh interval.
|
|
363
|
+
*/
|
|
364
|
+
MinorSeventh:21,"21":"MinorSeventh",
|
|
365
|
+
/**
|
|
366
|
+
* A major seventh interval.
|
|
367
|
+
*/
|
|
368
|
+
MajorSeventh:22,"22":"MajorSeventh",
|
|
369
|
+
/**
|
|
370
|
+
* A diminished octave interval.
|
|
371
|
+
*/
|
|
372
|
+
DiminishedOctave:23,"23":"DiminishedOctave",
|
|
373
|
+
/**
|
|
374
|
+
* An augmented seventh interval.
|
|
375
|
+
*/
|
|
376
|
+
AugmentedSeventh:24,"24":"AugmentedSeventh",
|
|
377
|
+
/**
|
|
378
|
+
* A perfect octave interval.
|
|
379
|
+
*/
|
|
380
|
+
PerfectOctave:25,"25":"PerfectOctave",
|
|
381
|
+
/**
|
|
382
|
+
* An minor ninth interval.
|
|
383
|
+
*/
|
|
384
|
+
MinorNinth:26,"26":"MinorNinth",
|
|
385
|
+
/**
|
|
386
|
+
* A major ninth interval.
|
|
387
|
+
*/
|
|
388
|
+
MajorNinth:27,"27":"MajorNinth",
|
|
389
|
+
/**
|
|
390
|
+
* An augmented ninth interval.
|
|
391
|
+
*/
|
|
392
|
+
AugmentedNinth:28,"28":"AugmentedNinth",
|
|
393
|
+
/**
|
|
394
|
+
* A diminished eleventh interval.
|
|
395
|
+
*/
|
|
396
|
+
DiminishedEleventh:29,"29":"DiminishedEleventh",
|
|
397
|
+
/**
|
|
398
|
+
* A perfect eleventh interval.
|
|
399
|
+
*/
|
|
400
|
+
PerfectEleventh:30,"30":"PerfectEleventh",
|
|
401
|
+
/**
|
|
402
|
+
* An augmented eleventh interval.
|
|
403
|
+
*/
|
|
404
|
+
AugmentedEleventh:31,"31":"AugmentedEleventh",
|
|
405
|
+
/**
|
|
406
|
+
* A minor thirteenth interval.
|
|
407
|
+
*/
|
|
408
|
+
MinorThirteenth:32,"32":"MinorThirteenth",
|
|
409
|
+
/**
|
|
410
|
+
* A major thirteenth interval.
|
|
411
|
+
*/
|
|
412
|
+
MajorThirteenth:33,"33":"MajorThirteenth",
|
|
413
|
+
/**
|
|
414
|
+
* An augmented thirteenth interval.
|
|
415
|
+
*/
|
|
416
|
+
AugmentedThirteenth:34,"34":"AugmentedThirteenth",
|
|
417
|
+
/**
|
|
418
|
+
* A perfect octave and perfect fifth interval.
|
|
419
|
+
*/
|
|
420
|
+
PerfectOctaveAndPerfectFifth:35,"35":"PerfectOctaveAndPerfectFifth",
|
|
421
|
+
/**
|
|
422
|
+
* Two perfect octaves.
|
|
423
|
+
*/
|
|
424
|
+
TwoPerfectOctaves:36,"36":"TwoPerfectOctaves",
|
|
425
|
+
/**
|
|
426
|
+
* Two perfect octaves and a major third.
|
|
427
|
+
*/
|
|
428
|
+
TwoPerfectOctavesAndMajorThird:37,"37":"TwoPerfectOctavesAndMajorThird",
|
|
429
|
+
/**
|
|
430
|
+
* Two perfect octaves and a perfect fifth.
|
|
431
|
+
*/
|
|
432
|
+
TwoPerfectOctavesAndPerfectFifth:38,"38":"TwoPerfectOctavesAndPerfectFifth",
|
|
433
|
+
/**
|
|
434
|
+
* Two perfect octaves and a minor sixth.
|
|
435
|
+
*/
|
|
436
|
+
TwoPerfectOctavesAndMinorSeventh:39,"39":"TwoPerfectOctavesAndMinorSeventh",
|
|
437
|
+
/**
|
|
438
|
+
* Three perfect octaves.
|
|
439
|
+
*/
|
|
440
|
+
ThreePerfectOctaves:40,"40":"ThreePerfectOctaves",
|
|
441
|
+
/**
|
|
442
|
+
* Three perfect octaves and a major second.
|
|
443
|
+
*/
|
|
444
|
+
ThreePerfectOctavesAndMajorSecond:41,"41":"ThreePerfectOctavesAndMajorSecond",
|
|
445
|
+
/**
|
|
446
|
+
* Three perfect octaves and a major third.
|
|
447
|
+
*/
|
|
448
|
+
ThreePerfectOctavesAndMajorThird:42,"42":"ThreePerfectOctavesAndMajorThird",
|
|
449
|
+
/**
|
|
450
|
+
* Three perfect octaves and an augmented fourth.
|
|
451
|
+
*/
|
|
452
|
+
ThreePerfectOctavesAndAugmentedFourth:43,"43":"ThreePerfectOctavesAndAugmentedFourth",
|
|
453
|
+
/**
|
|
454
|
+
* Three perfect octaves and a perfect fifth.
|
|
455
|
+
*/
|
|
456
|
+
ThreePerfectOctavesAndPerfectFifth:44,"44":"ThreePerfectOctavesAndPerfectFifth",
|
|
457
|
+
/**
|
|
458
|
+
* Three perfect octaves and a minor sixth.
|
|
459
|
+
*/
|
|
460
|
+
ThreePerfectOctavesAndMinorSixth:45,"45":"ThreePerfectOctavesAndMinorSixth",
|
|
461
|
+
/**
|
|
462
|
+
* Three perfect octaves and a minor seventh.
|
|
463
|
+
*/
|
|
464
|
+
ThreePerfectOctavesAndMinorSeventh:46,"46":"ThreePerfectOctavesAndMinorSeventh",
|
|
465
|
+
/**
|
|
466
|
+
* Three perfect octaves and a major seventh.
|
|
467
|
+
*/
|
|
468
|
+
ThreePerfectOctavesAndMajorSeventh:47,"47":"ThreePerfectOctavesAndMajorSeventh", });
|
|
469
|
+
/**
|
|
470
|
+
* An enum representing the extension of a chord.
|
|
471
|
+
*
|
|
472
|
+
* Extensions are not really "special" in the sense that they do not change how the
|
|
473
|
+
* chord is interpreted by the system. E.g., an `add2` just adds a 2 to the chord,
|
|
474
|
+
* and the chord is still interpreted as a major chord.
|
|
475
|
+
*/
|
|
476
|
+
export const KordExtension = Object.freeze({
|
|
477
|
+
/**
|
|
478
|
+
* Sus2 extension.
|
|
479
|
+
*/
|
|
480
|
+
Sus2:0,"0":"Sus2",
|
|
481
|
+
/**
|
|
482
|
+
* Sus4 extension.
|
|
483
|
+
*/
|
|
484
|
+
Sus4:1,"1":"Sus4",
|
|
485
|
+
/**
|
|
486
|
+
* Flat 11 extension.
|
|
487
|
+
*/
|
|
488
|
+
Flat11:2,"2":"Flat11",
|
|
489
|
+
/**
|
|
490
|
+
* Flat 13 extension.
|
|
491
|
+
*/
|
|
492
|
+
Flat13:3,"3":"Flat13",
|
|
493
|
+
/**
|
|
494
|
+
* Sharp 13 extension.
|
|
495
|
+
*/
|
|
496
|
+
Sharp13:4,"4":"Sharp13",
|
|
497
|
+
/**
|
|
498
|
+
* Add2 extension.
|
|
499
|
+
*/
|
|
500
|
+
Add2:5,"5":"Add2",
|
|
501
|
+
/**
|
|
502
|
+
* Add4 extension.
|
|
503
|
+
*/
|
|
504
|
+
Add4:6,"6":"Add4",
|
|
505
|
+
/**
|
|
506
|
+
* Add6 extension.
|
|
507
|
+
*/
|
|
508
|
+
Add6:7,"7":"Add6",
|
|
509
|
+
/**
|
|
510
|
+
* Add9 extension.
|
|
511
|
+
*/
|
|
512
|
+
Add9:8,"8":"Add9",
|
|
513
|
+
/**
|
|
514
|
+
* Add11 extension.
|
|
515
|
+
*/
|
|
516
|
+
Add11:9,"9":"Add11",
|
|
517
|
+
/**
|
|
518
|
+
* Add13 extension.
|
|
519
|
+
*/
|
|
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
|
+
|
|
253
574
|
const KordChordFinalization = new FinalizationRegistry(ptr => wasm.__wbg_kordchord_free(ptr));
|
|
254
575
|
/**
|
|
255
576
|
* The [`Chord`] wrapper.
|
|
@@ -302,7 +623,7 @@ export class KordChord {
|
|
|
302
623
|
* The [`Note`]s should be represented as a space-separated string.
|
|
303
624
|
* E.g., `C E G`.
|
|
304
625
|
* @param {string} notes
|
|
305
|
-
* @returns {
|
|
626
|
+
* @returns {Array<any>}
|
|
306
627
|
*/
|
|
307
628
|
static fromNotesString(notes) {
|
|
308
629
|
try {
|
|
@@ -316,29 +637,27 @@ export class KordChord {
|
|
|
316
637
|
if (r2) {
|
|
317
638
|
throw takeObject(r1);
|
|
318
639
|
}
|
|
319
|
-
return
|
|
640
|
+
return takeObject(r0);
|
|
320
641
|
} finally {
|
|
321
642
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
322
643
|
}
|
|
323
644
|
}
|
|
324
645
|
/**
|
|
325
646
|
* Creates a new [`Chord`] from a set of [`Note`]s.
|
|
326
|
-
* @param {
|
|
327
|
-
* @returns {
|
|
647
|
+
* @param {Array<any>} notes
|
|
648
|
+
* @returns {Array<any>}
|
|
328
649
|
*/
|
|
329
650
|
static fromNotes(notes) {
|
|
330
651
|
try {
|
|
331
652
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
332
|
-
|
|
333
|
-
var ptr0 = notes.__destroy_into_raw();
|
|
334
|
-
wasm.kordchord_fromNotes(retptr, ptr0);
|
|
653
|
+
wasm.kordchord_fromNotes(retptr, addHeapObject(notes));
|
|
335
654
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
336
655
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
337
656
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
338
657
|
if (r2) {
|
|
339
658
|
throw takeObject(r1);
|
|
340
659
|
}
|
|
341
|
-
return
|
|
660
|
+
return takeObject(r0);
|
|
342
661
|
} finally {
|
|
343
662
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
344
663
|
}
|
|
@@ -464,191 +783,335 @@ export class KordChord {
|
|
|
464
783
|
return ret;
|
|
465
784
|
}
|
|
466
785
|
/**
|
|
467
|
-
* Returns whether or not the [`Chord`] is "crunchy".
|
|
468
|
-
* @returns {boolean}
|
|
786
|
+
* Returns whether or not the [`Chord`] is "crunchy".
|
|
787
|
+
* @returns {boolean}
|
|
788
|
+
*/
|
|
789
|
+
isCrunchy() {
|
|
790
|
+
const ret = wasm.kordchord_isCrunchy(this.ptr);
|
|
791
|
+
return ret !== 0;
|
|
792
|
+
}
|
|
793
|
+
/**
|
|
794
|
+
* Returns the [`Chord`]'s chord tones.
|
|
795
|
+
* @returns {Array<any>}
|
|
796
|
+
*/
|
|
797
|
+
chord() {
|
|
798
|
+
const ret = wasm.kordchord_chord(this.ptr);
|
|
799
|
+
return takeObject(ret);
|
|
800
|
+
}
|
|
801
|
+
/**
|
|
802
|
+
* Returns the [`Chord`]'s chord tones as a string.
|
|
803
|
+
* @returns {string}
|
|
804
|
+
*/
|
|
805
|
+
chordString() {
|
|
806
|
+
try {
|
|
807
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
808
|
+
wasm.kordchord_chordString(retptr, this.ptr);
|
|
809
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
810
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
811
|
+
return getStringFromWasm0(r0, r1);
|
|
812
|
+
} finally {
|
|
813
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
814
|
+
wasm.__wbindgen_free(r0, r1);
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
/**
|
|
818
|
+
* Returns the [`Chord`]'s scale tones.
|
|
819
|
+
* @returns {Array<any>}
|
|
820
|
+
*/
|
|
821
|
+
scale() {
|
|
822
|
+
const ret = wasm.kordchord_scale(this.ptr);
|
|
823
|
+
return takeObject(ret);
|
|
824
|
+
}
|
|
825
|
+
/**
|
|
826
|
+
* Returns the [`Chord`]'s scale tones as a string.
|
|
827
|
+
* @returns {string}
|
|
828
|
+
*/
|
|
829
|
+
scaleString() {
|
|
830
|
+
try {
|
|
831
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
832
|
+
wasm.kordchord_scaleString(retptr, this.ptr);
|
|
833
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
834
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
835
|
+
return getStringFromWasm0(r0, r1);
|
|
836
|
+
} finally {
|
|
837
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
838
|
+
wasm.__wbindgen_free(r0, r1);
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
/**
|
|
842
|
+
* Returns the [`Chord`]'s modifiers.
|
|
843
|
+
* @returns {Array<any>}
|
|
844
|
+
*/
|
|
845
|
+
modifiers() {
|
|
846
|
+
const ret = wasm.kordchord_modifiers(this.ptr);
|
|
847
|
+
return takeObject(ret);
|
|
848
|
+
}
|
|
849
|
+
/**
|
|
850
|
+
* Returns the [`Chord`]'s extensions.
|
|
851
|
+
* @returns {Array<any>}
|
|
852
|
+
*/
|
|
853
|
+
extensions() {
|
|
854
|
+
const ret = wasm.kordchord_extensions(this.ptr);
|
|
855
|
+
return takeObject(ret);
|
|
856
|
+
}
|
|
857
|
+
/**
|
|
858
|
+
* Returns a new [`Chord`] with the inversion set to the provided value.
|
|
859
|
+
* @param {number} inversion
|
|
860
|
+
* @returns {KordChord}
|
|
861
|
+
*/
|
|
862
|
+
withInversion(inversion) {
|
|
863
|
+
const ret = wasm.kordchord_withInversion(this.ptr, inversion);
|
|
864
|
+
return KordChord.__wrap(ret);
|
|
865
|
+
}
|
|
866
|
+
/**
|
|
867
|
+
* Returns a new [`Chord`] with the slash set to the provided value.
|
|
868
|
+
* @param {KordNote} slash
|
|
869
|
+
* @returns {KordChord}
|
|
870
|
+
*/
|
|
871
|
+
withSlash(slash) {
|
|
872
|
+
_assertClass(slash, KordNote);
|
|
873
|
+
const ret = wasm.kordchord_withSlash(this.ptr, slash.ptr);
|
|
874
|
+
return KordChord.__wrap(ret);
|
|
875
|
+
}
|
|
876
|
+
/**
|
|
877
|
+
* Returns a new [`Chord`] with the octave of the root set to the provided value.
|
|
878
|
+
* @param {number} octave
|
|
879
|
+
* @returns {KordChord}
|
|
880
|
+
*/
|
|
881
|
+
withOctave(octave) {
|
|
882
|
+
try {
|
|
883
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
884
|
+
wasm.kordchord_withOctave(retptr, this.ptr, octave);
|
|
885
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
886
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
887
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
888
|
+
if (r2) {
|
|
889
|
+
throw takeObject(r1);
|
|
890
|
+
}
|
|
891
|
+
return KordChord.__wrap(r0);
|
|
892
|
+
} finally {
|
|
893
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
/**
|
|
897
|
+
* Returns a new [`Chord`] with the "crunchiness" set to the provided value.
|
|
898
|
+
* @param {boolean} is_crunchy
|
|
899
|
+
* @returns {KordChord}
|
|
900
|
+
*/
|
|
901
|
+
withCrunchy(is_crunchy) {
|
|
902
|
+
const ret = wasm.kordchord_withCrunchy(this.ptr, is_crunchy);
|
|
903
|
+
return KordChord.__wrap(ret);
|
|
904
|
+
}
|
|
905
|
+
/**
|
|
906
|
+
* Plays the [`Chord`].
|
|
907
|
+
* @param {number} delay
|
|
908
|
+
* @param {number} length
|
|
909
|
+
* @param {number} fade_in
|
|
910
|
+
* @returns {Promise<void>}
|
|
911
|
+
*/
|
|
912
|
+
play(delay, length, fade_in) {
|
|
913
|
+
const ret = wasm.kordchord_play(this.ptr, delay, length, fade_in);
|
|
914
|
+
return takeObject(ret);
|
|
915
|
+
}
|
|
916
|
+
/**
|
|
917
|
+
* Returns the clone of the [`Chord`].
|
|
918
|
+
* @returns {KordChord}
|
|
919
|
+
*/
|
|
920
|
+
copy() {
|
|
921
|
+
const ret = wasm.kordchord_copy(this.ptr);
|
|
922
|
+
return KordChord.__wrap(ret);
|
|
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}
|
|
469
983
|
*/
|
|
470
|
-
|
|
471
|
-
const ret = wasm.
|
|
472
|
-
return ret
|
|
984
|
+
thirteen() {
|
|
985
|
+
const ret = wasm.kordchord_thirteen(this.ptr);
|
|
986
|
+
return KordChord.__wrap(ret);
|
|
473
987
|
}
|
|
474
988
|
/**
|
|
475
|
-
* Returns
|
|
476
|
-
* @returns {
|
|
989
|
+
* Returns a new [`Chord`] with the `flat9` modifier.
|
|
990
|
+
* @returns {KordChord}
|
|
477
991
|
*/
|
|
478
|
-
|
|
479
|
-
const ret = wasm.
|
|
480
|
-
return
|
|
992
|
+
flat9() {
|
|
993
|
+
const ret = wasm.kordchord_flat9(this.ptr);
|
|
994
|
+
return KordChord.__wrap(ret);
|
|
481
995
|
}
|
|
482
996
|
/**
|
|
483
|
-
* Returns
|
|
484
|
-
* @returns {
|
|
997
|
+
* Returns a new [`Chord`] with the `sharp9` modifier.
|
|
998
|
+
* @returns {KordChord}
|
|
485
999
|
*/
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
wasm.kordchord_chordString(retptr, this.ptr);
|
|
490
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
491
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
492
|
-
return getStringFromWasm0(r0, r1);
|
|
493
|
-
} finally {
|
|
494
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
495
|
-
wasm.__wbindgen_free(r0, r1);
|
|
496
|
-
}
|
|
1000
|
+
sharp9() {
|
|
1001
|
+
const ret = wasm.kordchord_sharp9(this.ptr);
|
|
1002
|
+
return KordChord.__wrap(ret);
|
|
497
1003
|
}
|
|
498
1004
|
/**
|
|
499
|
-
* Returns
|
|
500
|
-
* @returns {
|
|
1005
|
+
* Returns a new [`Chord`] with the `sharp11` modifier.
|
|
1006
|
+
* @returns {KordChord}
|
|
501
1007
|
*/
|
|
502
|
-
|
|
503
|
-
const ret = wasm.
|
|
504
|
-
return
|
|
1008
|
+
sharp11() {
|
|
1009
|
+
const ret = wasm.kordchord_sharp11(this.ptr);
|
|
1010
|
+
return KordChord.__wrap(ret);
|
|
505
1011
|
}
|
|
506
1012
|
/**
|
|
507
|
-
* Returns
|
|
508
|
-
* @returns {
|
|
1013
|
+
* Returns a new [`Chord`] with the `dim` modifier.
|
|
1014
|
+
* @returns {KordChord}
|
|
509
1015
|
*/
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
wasm.kordchord_scaleString(retptr, this.ptr);
|
|
514
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
515
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
516
|
-
return getStringFromWasm0(r0, r1);
|
|
517
|
-
} finally {
|
|
518
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
519
|
-
wasm.__wbindgen_free(r0, r1);
|
|
520
|
-
}
|
|
1016
|
+
dim() {
|
|
1017
|
+
const ret = wasm.kordchord_dim(this.ptr);
|
|
1018
|
+
return KordChord.__wrap(ret);
|
|
521
1019
|
}
|
|
522
1020
|
/**
|
|
523
|
-
*
|
|
524
|
-
* @
|
|
525
|
-
* @param {number} length
|
|
526
|
-
* @param {number} fade_in
|
|
527
|
-
* @returns {Promise<void>}
|
|
1021
|
+
* Returns a new [`Chord`] with the `halfDim` modifier.
|
|
1022
|
+
* @returns {KordChord}
|
|
528
1023
|
*/
|
|
529
|
-
|
|
530
|
-
const ret = wasm.
|
|
531
|
-
return
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
const KordChordsFinalization = new FinalizationRegistry(ptr => wasm.__wbg_kordchords_free(ptr));
|
|
536
|
-
/**
|
|
537
|
-
* The [`Chord`]s wrapper.
|
|
538
|
-
*/
|
|
539
|
-
export class KordChords {
|
|
540
|
-
|
|
541
|
-
static __wrap(ptr) {
|
|
542
|
-
const obj = Object.create(KordChords.prototype);
|
|
543
|
-
obj.ptr = ptr;
|
|
544
|
-
KordChordsFinalization.register(obj, obj.ptr, obj);
|
|
545
|
-
return obj;
|
|
1024
|
+
halfDim() {
|
|
1025
|
+
const ret = wasm.kordchord_halfDim(this.ptr);
|
|
1026
|
+
return KordChord.__wrap(ret);
|
|
546
1027
|
}
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
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);
|
|
553
1035
|
}
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
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);
|
|
558
1043
|
}
|
|
559
1044
|
/**
|
|
560
|
-
*
|
|
561
|
-
* @
|
|
562
|
-
* @returns {KordChord | undefined}
|
|
1045
|
+
* Returns a new [`Chord`] with the `flat11` extension.
|
|
1046
|
+
* @returns {KordChord}
|
|
563
1047
|
*/
|
|
564
|
-
|
|
565
|
-
const ret = wasm.
|
|
566
|
-
return
|
|
1048
|
+
flat11() {
|
|
1049
|
+
const ret = wasm.kordchord_flat11(this.ptr);
|
|
1050
|
+
return KordChord.__wrap(ret);
|
|
567
1051
|
}
|
|
568
1052
|
/**
|
|
569
|
-
* Returns
|
|
570
|
-
* @returns {
|
|
1053
|
+
* Returns a new [`Chord`] with the `flat13` extension.
|
|
1054
|
+
* @returns {KordChord}
|
|
571
1055
|
*/
|
|
572
|
-
|
|
573
|
-
const ret = wasm.
|
|
574
|
-
return ret
|
|
1056
|
+
flat13() {
|
|
1057
|
+
const ret = wasm.kordchord_flat13(this.ptr);
|
|
1058
|
+
return KordChord.__wrap(ret);
|
|
575
1059
|
}
|
|
576
1060
|
/**
|
|
577
|
-
* Returns
|
|
578
|
-
* @returns {
|
|
1061
|
+
* Returns a new [`Chord`] with the `sharp13` extension.
|
|
1062
|
+
* @returns {KordChord}
|
|
579
1063
|
*/
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
wasm.kordchords_toString(retptr, this.ptr);
|
|
584
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
585
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
586
|
-
return getStringFromWasm0(r0, r1);
|
|
587
|
-
} finally {
|
|
588
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
589
|
-
wasm.__wbindgen_free(r0, r1);
|
|
590
|
-
}
|
|
1064
|
+
sharp13() {
|
|
1065
|
+
const ret = wasm.kordchord_sharp13(this.ptr);
|
|
1066
|
+
return KordChord.__wrap(ret);
|
|
591
1067
|
}
|
|
592
1068
|
/**
|
|
593
|
-
* Returns
|
|
594
|
-
* @returns {
|
|
1069
|
+
* Returns a new [`Chord`] with the `add2` extension.
|
|
1070
|
+
* @returns {KordChord}
|
|
595
1071
|
*/
|
|
596
|
-
|
|
597
|
-
const ret = wasm.
|
|
598
|
-
return
|
|
1072
|
+
add2() {
|
|
1073
|
+
const ret = wasm.kordchord_add2(this.ptr);
|
|
1074
|
+
return KordChord.__wrap(ret);
|
|
599
1075
|
}
|
|
600
1076
|
/**
|
|
601
|
-
* Returns
|
|
602
|
-
* @returns {
|
|
1077
|
+
* Returns a new [`Chord`] with the `add4` extension.
|
|
1078
|
+
* @returns {KordChord}
|
|
603
1079
|
*/
|
|
604
|
-
|
|
605
|
-
const ret = wasm.
|
|
606
|
-
return
|
|
1080
|
+
add4() {
|
|
1081
|
+
const ret = wasm.kordchord_add4(this.ptr);
|
|
1082
|
+
return KordChord.__wrap(ret);
|
|
607
1083
|
}
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
static __wrap(ptr) {
|
|
617
|
-
const obj = Object.create(KordChordsIterator.prototype);
|
|
618
|
-
obj.ptr = ptr;
|
|
619
|
-
KordChordsIteratorFinalization.register(obj, obj.ptr, obj);
|
|
620
|
-
return obj;
|
|
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);
|
|
621
1091
|
}
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
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);
|
|
628
1099
|
}
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
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);
|
|
633
1107
|
}
|
|
634
1108
|
/**
|
|
635
|
-
*
|
|
636
|
-
* @returns {
|
|
1109
|
+
* Returns a new [`Chord`] with the `add13` extension.
|
|
1110
|
+
* @returns {KordChord}
|
|
637
1111
|
*/
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
wasm.kordchordsiterator_next(retptr, this.ptr);
|
|
642
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
643
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
644
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
645
|
-
if (r2) {
|
|
646
|
-
throw takeObject(r1);
|
|
647
|
-
}
|
|
648
|
-
return takeObject(r0);
|
|
649
|
-
} finally {
|
|
650
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
651
|
-
}
|
|
1112
|
+
add13() {
|
|
1113
|
+
const ret = wasm.kordchord_add13(this.ptr);
|
|
1114
|
+
return KordChord.__wrap(ret);
|
|
652
1115
|
}
|
|
653
1116
|
}
|
|
654
1117
|
|
|
@@ -702,7 +1165,7 @@ export class KordNote {
|
|
|
702
1165
|
* Returns [`Note`]s from audio data.
|
|
703
1166
|
* @param {Float32Array} data
|
|
704
1167
|
* @param {number} length_in_seconds
|
|
705
|
-
* @returns {
|
|
1168
|
+
* @returns {Array<any>}
|
|
706
1169
|
*/
|
|
707
1170
|
static fromAudio(data, length_in_seconds) {
|
|
708
1171
|
try {
|
|
@@ -716,7 +1179,7 @@ export class KordNote {
|
|
|
716
1179
|
if (r2) {
|
|
717
1180
|
throw takeObject(r1);
|
|
718
1181
|
}
|
|
719
|
-
return
|
|
1182
|
+
return takeObject(r0);
|
|
720
1183
|
} finally {
|
|
721
1184
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
722
1185
|
}
|
|
@@ -725,7 +1188,7 @@ export class KordNote {
|
|
|
725
1188
|
* Returns [`Note`]s from audio data using the ML inference algorithm.
|
|
726
1189
|
* @param {Float32Array} data
|
|
727
1190
|
* @param {number} length_in_seconds
|
|
728
|
-
* @returns {
|
|
1191
|
+
* @returns {Array<any>}
|
|
729
1192
|
*/
|
|
730
1193
|
static fromAudioMl(data, length_in_seconds) {
|
|
731
1194
|
try {
|
|
@@ -739,7 +1202,7 @@ export class KordNote {
|
|
|
739
1202
|
if (r2) {
|
|
740
1203
|
throw takeObject(r1);
|
|
741
1204
|
}
|
|
742
|
-
return
|
|
1205
|
+
return takeObject(r0);
|
|
743
1206
|
} finally {
|
|
744
1207
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
745
1208
|
}
|
|
@@ -808,125 +1271,43 @@ export class KordNote {
|
|
|
808
1271
|
const ret = wasm.kordnote_frequency(this.ptr);
|
|
809
1272
|
return ret;
|
|
810
1273
|
}
|
|
811
|
-
}
|
|
812
|
-
|
|
813
|
-
const KordNotesFinalization = new FinalizationRegistry(ptr => wasm.__wbg_kordnotes_free(ptr));
|
|
814
|
-
/**
|
|
815
|
-
* The [`Note`]s wrapper.
|
|
816
|
-
*/
|
|
817
|
-
export class KordNotes {
|
|
818
|
-
|
|
819
|
-
static __wrap(ptr) {
|
|
820
|
-
const obj = Object.create(KordNotes.prototype);
|
|
821
|
-
obj.ptr = ptr;
|
|
822
|
-
KordNotesFinalization.register(obj, obj.ptr, obj);
|
|
823
|
-
return obj;
|
|
824
|
-
}
|
|
825
|
-
|
|
826
|
-
__destroy_into_raw() {
|
|
827
|
-
const ptr = this.ptr;
|
|
828
|
-
this.ptr = 0;
|
|
829
|
-
KordNotesFinalization.unregister(this);
|
|
830
|
-
return ptr;
|
|
831
|
-
}
|
|
832
|
-
|
|
833
|
-
free() {
|
|
834
|
-
const ptr = this.__destroy_into_raw();
|
|
835
|
-
wasm.__wbg_kordnotes_free(ptr);
|
|
836
|
-
}
|
|
837
|
-
/**
|
|
838
|
-
* Gets an item from the collection.
|
|
839
|
-
* @param {number} index
|
|
840
|
-
* @returns {KordNote | undefined}
|
|
841
|
-
*/
|
|
842
|
-
get(index) {
|
|
843
|
-
const ret = wasm.kordnotes_get(this.ptr, index);
|
|
844
|
-
return ret === 0 ? undefined : KordNote.__wrap(ret);
|
|
845
|
-
}
|
|
846
|
-
/**
|
|
847
|
-
* Returns the number of items in the collection.
|
|
848
|
-
* @returns {number}
|
|
849
|
-
*/
|
|
850
|
-
get length() {
|
|
851
|
-
const ret = wasm.kordchords_length(this.ptr);
|
|
852
|
-
return ret >>> 0;
|
|
853
|
-
}
|
|
854
1274
|
/**
|
|
855
|
-
*
|
|
856
|
-
*
|
|
1275
|
+
* Adds the given interval to the [`Note`].
|
|
1276
|
+
*
|
|
1277
|
+
* Clones the underlying note before mutation, producing a _new_ [`KordNote`].
|
|
1278
|
+
* @param {number} interval
|
|
1279
|
+
* @returns {KordNote}
|
|
857
1280
|
*/
|
|
858
|
-
|
|
1281
|
+
addInterval(interval) {
|
|
859
1282
|
try {
|
|
860
1283
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
861
|
-
wasm.
|
|
1284
|
+
wasm.kordnote_addInterval(retptr, this.ptr, interval);
|
|
862
1285
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
863
1286
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
864
|
-
|
|
1287
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
1288
|
+
if (r2) {
|
|
1289
|
+
throw takeObject(r1);
|
|
1290
|
+
}
|
|
1291
|
+
return KordNote.__wrap(r0);
|
|
865
1292
|
} finally {
|
|
866
1293
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
867
|
-
wasm.__wbindgen_free(r0, r1);
|
|
868
1294
|
}
|
|
869
1295
|
}
|
|
870
1296
|
/**
|
|
871
|
-
* Returns the [`Note`]
|
|
872
|
-
* @returns {KordNotesIterator}
|
|
873
|
-
*/
|
|
874
|
-
iterator() {
|
|
875
|
-
const ret = wasm.kordnotes_iterator(this.ptr);
|
|
876
|
-
return KordNotesIterator.__wrap(ret);
|
|
877
|
-
}
|
|
878
|
-
/**
|
|
879
|
-
* Returns the [`Note`]s as an array.
|
|
1297
|
+
* Returns the primary (first 13) harmonic series of the [`Note`].
|
|
880
1298
|
* @returns {Array<any>}
|
|
881
1299
|
*/
|
|
882
|
-
|
|
883
|
-
const ret = wasm.
|
|
1300
|
+
harmonicSeries() {
|
|
1301
|
+
const ret = wasm.kordnote_harmonicSeries(this.ptr);
|
|
884
1302
|
return takeObject(ret);
|
|
885
1303
|
}
|
|
886
|
-
}
|
|
887
|
-
|
|
888
|
-
const KordNotesIteratorFinalization = new FinalizationRegistry(ptr => wasm.__wbg_kordnotesiterator_free(ptr));
|
|
889
|
-
/**
|
|
890
|
-
* The [`Note`]s iterator.
|
|
891
|
-
*/
|
|
892
|
-
export class KordNotesIterator {
|
|
893
|
-
|
|
894
|
-
static __wrap(ptr) {
|
|
895
|
-
const obj = Object.create(KordNotesIterator.prototype);
|
|
896
|
-
obj.ptr = ptr;
|
|
897
|
-
KordNotesIteratorFinalization.register(obj, obj.ptr, obj);
|
|
898
|
-
return obj;
|
|
899
|
-
}
|
|
900
|
-
|
|
901
|
-
__destroy_into_raw() {
|
|
902
|
-
const ptr = this.ptr;
|
|
903
|
-
this.ptr = 0;
|
|
904
|
-
KordNotesIteratorFinalization.unregister(this);
|
|
905
|
-
return ptr;
|
|
906
|
-
}
|
|
907
|
-
|
|
908
|
-
free() {
|
|
909
|
-
const ptr = this.__destroy_into_raw();
|
|
910
|
-
wasm.__wbg_kordnotesiterator_free(ptr);
|
|
911
|
-
}
|
|
912
1304
|
/**
|
|
913
|
-
*
|
|
914
|
-
* @returns {
|
|
1305
|
+
* Returns the clone of the [`Note`].
|
|
1306
|
+
* @returns {KordNote}
|
|
915
1307
|
*/
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
wasm.kordnotesiterator_next(retptr, this.ptr);
|
|
920
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
921
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
922
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
923
|
-
if (r2) {
|
|
924
|
-
throw takeObject(r1);
|
|
925
|
-
}
|
|
926
|
-
return takeObject(r0);
|
|
927
|
-
} finally {
|
|
928
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
929
|
-
}
|
|
1308
|
+
copy() {
|
|
1309
|
+
const ret = wasm.kordnote_copy(this.ptr);
|
|
1310
|
+
return KordNote.__wrap(ret);
|
|
930
1311
|
}
|
|
931
1312
|
}
|
|
932
1313
|
|
|
@@ -964,21 +1345,21 @@ async function load(module, imports) {
|
|
|
964
1345
|
function getImports() {
|
|
965
1346
|
const imports = {};
|
|
966
1347
|
imports.wbg = {};
|
|
967
|
-
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
968
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
969
|
-
return addHeapObject(ret);
|
|
970
|
-
};
|
|
971
1348
|
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
972
1349
|
takeObject(arg0);
|
|
973
1350
|
};
|
|
974
|
-
imports.wbg.
|
|
975
|
-
const ret =
|
|
1351
|
+
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
1352
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
976
1353
|
return addHeapObject(ret);
|
|
977
1354
|
};
|
|
978
1355
|
imports.wbg.__wbg_kordchord_new = function(arg0) {
|
|
979
1356
|
const ret = KordChord.__wrap(arg0);
|
|
980
1357
|
return addHeapObject(ret);
|
|
981
1358
|
};
|
|
1359
|
+
imports.wbg.__wbg_kordnote_new = function(arg0) {
|
|
1360
|
+
const ret = KordNote.__wrap(arg0);
|
|
1361
|
+
return addHeapObject(ret);
|
|
1362
|
+
};
|
|
982
1363
|
imports.wbg.__wbindgen_cb_drop = function(arg0) {
|
|
983
1364
|
const obj = takeObject(arg0).original;
|
|
984
1365
|
if (obj.cnt-- == 1) {
|
|
@@ -988,6 +1369,30 @@ function getImports() {
|
|
|
988
1369
|
const ret = false;
|
|
989
1370
|
return ret;
|
|
990
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
|
+
};
|
|
1378
|
+
imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
|
|
1379
|
+
const ret = new Error();
|
|
1380
|
+
return addHeapObject(ret);
|
|
1381
|
+
};
|
|
1382
|
+
imports.wbg.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) {
|
|
1383
|
+
const ret = getObject(arg1).stack;
|
|
1384
|
+
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1385
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1386
|
+
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
1387
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
1388
|
+
};
|
|
1389
|
+
imports.wbg.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
|
|
1390
|
+
try {
|
|
1391
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
1392
|
+
} finally {
|
|
1393
|
+
wasm.__wbindgen_free(arg0, arg1);
|
|
1394
|
+
}
|
|
1395
|
+
};
|
|
991
1396
|
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
992
1397
|
const v = getObject(arg0);
|
|
993
1398
|
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
@@ -1039,6 +1444,14 @@ function getImports() {
|
|
|
1039
1444
|
const ret = arg0;
|
|
1040
1445
|
return addHeapObject(ret);
|
|
1041
1446
|
};
|
|
1447
|
+
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
1448
|
+
const obj = getObject(arg1);
|
|
1449
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
1450
|
+
var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1451
|
+
var len0 = WASM_VECTOR_LEN;
|
|
1452
|
+
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
1453
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
1454
|
+
};
|
|
1042
1455
|
imports.wbg.__wbg_setbuffer_bad384d1628a8306 = function(arg0, arg1) {
|
|
1043
1456
|
getObject(arg0).buffer = getObject(arg1);
|
|
1044
1457
|
};
|
|
@@ -1055,6 +1468,14 @@ function getImports() {
|
|
|
1055
1468
|
imports.wbg.__wbg_copyToChannel_9babe9bf308bffc3 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1056
1469
|
getObject(arg0).copyToChannel(getArrayF32FromWasm0(arg1, arg2), arg3);
|
|
1057
1470
|
}, arguments) };
|
|
1471
|
+
imports.wbg.__wbg_get_27fe3dac1c4d0224 = function(arg0, arg1) {
|
|
1472
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
1473
|
+
return addHeapObject(ret);
|
|
1474
|
+
};
|
|
1475
|
+
imports.wbg.__wbg_length_e498fbc24f9c1d4f = function(arg0) {
|
|
1476
|
+
const ret = getObject(arg0).length;
|
|
1477
|
+
return ret;
|
|
1478
|
+
};
|
|
1058
1479
|
imports.wbg.__wbg_new_b525de17f44a8943 = function() {
|
|
1059
1480
|
const ret = new Array();
|
|
1060
1481
|
return addHeapObject(ret);
|
|
@@ -1063,6 +1484,10 @@ function getImports() {
|
|
|
1063
1484
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
1064
1485
|
return addHeapObject(ret);
|
|
1065
1486
|
};
|
|
1487
|
+
imports.wbg.__wbg_get_baf4855f9a986186 = function() { return handleError(function (arg0, arg1) {
|
|
1488
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
1489
|
+
return addHeapObject(ret);
|
|
1490
|
+
}, arguments) };
|
|
1066
1491
|
imports.wbg.__wbg_call_95d1ea488d03e4e8 = function() { return handleError(function (arg0, arg1) {
|
|
1067
1492
|
const ret = getObject(arg0).call(getObject(arg1));
|
|
1068
1493
|
return addHeapObject(ret);
|
|
@@ -1099,10 +1524,6 @@ function getImports() {
|
|
|
1099
1524
|
const ret = eval(getStringFromWasm0(arg0, arg1));
|
|
1100
1525
|
return addHeapObject(ret);
|
|
1101
1526
|
}, arguments) };
|
|
1102
|
-
imports.wbg.__wbg_of_defbc28e6c20f48f = function(arg0, arg1) {
|
|
1103
|
-
const ret = Array.of(getObject(arg0), getObject(arg1));
|
|
1104
|
-
return addHeapObject(ret);
|
|
1105
|
-
};
|
|
1106
1527
|
imports.wbg.__wbg_push_49c286f04dd3bf59 = function(arg0, arg1) {
|
|
1107
1528
|
const ret = getObject(arg0).push(getObject(arg1));
|
|
1108
1529
|
return ret;
|
|
@@ -1111,10 +1532,24 @@ function getImports() {
|
|
|
1111
1532
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
1112
1533
|
return addHeapObject(ret);
|
|
1113
1534
|
}, arguments) };
|
|
1114
|
-
imports.wbg.
|
|
1115
|
-
const ret =
|
|
1535
|
+
imports.wbg.__wbg_name_4e66d4cfa3e9270a = function(arg0) {
|
|
1536
|
+
const ret = getObject(arg0).name;
|
|
1116
1537
|
return addHeapObject(ret);
|
|
1117
|
-
}
|
|
1538
|
+
};
|
|
1539
|
+
imports.wbg.__wbg_instanceof_Object_f5a826c4da0d4a94 = function(arg0) {
|
|
1540
|
+
let result;
|
|
1541
|
+
try {
|
|
1542
|
+
result = getObject(arg0) instanceof Object;
|
|
1543
|
+
} catch {
|
|
1544
|
+
result = false;
|
|
1545
|
+
}
|
|
1546
|
+
const ret = result;
|
|
1547
|
+
return ret;
|
|
1548
|
+
};
|
|
1549
|
+
imports.wbg.__wbg_constructor_0c9828c8a7cf1dc6 = function(arg0) {
|
|
1550
|
+
const ret = getObject(arg0).constructor;
|
|
1551
|
+
return addHeapObject(ret);
|
|
1552
|
+
};
|
|
1118
1553
|
imports.wbg.__wbg_new_9d3a9ce4282a18a8 = function(arg0, arg1) {
|
|
1119
1554
|
try {
|
|
1120
1555
|
var state0 = {a: arg0, b: arg1};
|
|
@@ -1122,7 +1557,7 @@ function getImports() {
|
|
|
1122
1557
|
const a = state0.a;
|
|
1123
1558
|
state0.a = 0;
|
|
1124
1559
|
try {
|
|
1125
|
-
return
|
|
1560
|
+
return __wbg_adapter_150(a, state0.b, arg0, arg1);
|
|
1126
1561
|
} finally {
|
|
1127
1562
|
state0.a = a;
|
|
1128
1563
|
}
|
|
@@ -1155,12 +1590,12 @@ function getImports() {
|
|
|
1155
1590
|
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
|
1156
1591
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1157
1592
|
};
|
|
1158
|
-
imports.wbg.
|
|
1159
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1593
|
+
imports.wbg.__wbindgen_closure_wrapper1061 = function(arg0, arg1, arg2) {
|
|
1594
|
+
const ret = makeMutClosure(arg0, arg1, 466, __wbg_adapter_24);
|
|
1160
1595
|
return addHeapObject(ret);
|
|
1161
1596
|
};
|
|
1162
|
-
imports.wbg.
|
|
1163
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1597
|
+
imports.wbg.__wbindgen_closure_wrapper1388 = function(arg0, arg1, arg2) {
|
|
1598
|
+
const ret = makeMutClosure(arg0, arg1, 603, __wbg_adapter_27);
|
|
1164
1599
|
return addHeapObject(ret);
|
|
1165
1600
|
};
|
|
1166
1601
|
|
|
@@ -1175,10 +1610,11 @@ function finalizeInit(instance, module) {
|
|
|
1175
1610
|
wasm = instance.exports;
|
|
1176
1611
|
init.__wbindgen_wasm_module = module;
|
|
1177
1612
|
cachedFloat32Memory0 = null;
|
|
1613
|
+
cachedFloat64Memory0 = null;
|
|
1178
1614
|
cachedInt32Memory0 = null;
|
|
1179
1615
|
cachedUint8Memory0 = null;
|
|
1180
1616
|
|
|
1181
|
-
|
|
1617
|
+
wasm.__wbindgen_start();
|
|
1182
1618
|
return wasm;
|
|
1183
1619
|
}
|
|
1184
1620
|
|