@viji-dev/core 0.5.7 → 0.5.8
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/dist/assets/viji.worker-BeMqLpbi.js +24475 -0
- package/dist/docs-api.js +1 -1
- package/dist/essentia-wasm.web-IBcodv5m.js +3377 -0
- package/dist/essentia.js-core.es-CC_3Ap1i.js +638 -0
- package/dist/index-DxIYcMJv.js +8335 -0
- package/dist/index.js +5 -5
- package/package.json +3 -2
- package/dist/assets/viji.worker-DwYMDyfQ.js +0 -27920
- package/dist/assets/viji.worker-DwYMDyfQ.js.map +0 -1
- package/dist/essentia-wasm.web-htE1Skqw.js +0 -5696
- package/dist/essentia-wasm.web-htE1Skqw.js.map +0 -1
- package/dist/essentia.js-core.es-DnrJE0uR.js +0 -3174
- package/dist/essentia.js-core.es-DnrJE0uR.js.map +0 -1
- package/dist/index-CwwVLcjs.js +0 -11835
- package/dist/index-CwwVLcjs.js.map +0 -1
- package/dist/index.js.map +0 -1
|
@@ -0,0 +1,638 @@
|
|
|
1
|
+
/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
4
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
5
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
|
|
7
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
8
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
9
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
10
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
11
|
+
|
|
12
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
13
|
+
and limitations under the License.
|
|
14
|
+
***************************************************************************** */
|
|
15
|
+
function V(u, v, i, o) {
|
|
16
|
+
return new (i || (i = Promise))(function(t, f) {
|
|
17
|
+
function d(n) {
|
|
18
|
+
try {
|
|
19
|
+
h(o.next(n));
|
|
20
|
+
} catch (s) {
|
|
21
|
+
f(s);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
function r(n) {
|
|
25
|
+
try {
|
|
26
|
+
h(o.throw(n));
|
|
27
|
+
} catch (s) {
|
|
28
|
+
f(s);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
function h(n) {
|
|
32
|
+
n.done ? t(n.value) : new i(function(s) {
|
|
33
|
+
s(n.value);
|
|
34
|
+
}).then(d, r);
|
|
35
|
+
}
|
|
36
|
+
h((o = o.apply(u, [])).next());
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
function N(u, v) {
|
|
40
|
+
var i = { label: 0, sent: function() {
|
|
41
|
+
if (f[0] & 1) throw f[1];
|
|
42
|
+
return f[1];
|
|
43
|
+
}, trys: [], ops: [] }, o, t, f, d;
|
|
44
|
+
return d = { next: r(0), throw: r(1), return: r(2) }, typeof Symbol == "function" && (d[Symbol.iterator] = function() {
|
|
45
|
+
return this;
|
|
46
|
+
}), d;
|
|
47
|
+
function r(n) {
|
|
48
|
+
return function(s) {
|
|
49
|
+
return h([n, s]);
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function h(n) {
|
|
53
|
+
if (o) throw new TypeError("Generator is already executing.");
|
|
54
|
+
for (; i; ) try {
|
|
55
|
+
if (o = 1, t && (f = n[0] & 2 ? t.return : n[0] ? t.throw || ((f = t.return) && f.call(t), 0) : t.next) && !(f = f.call(t, n[1])).done) return f;
|
|
56
|
+
switch (t = 0, f && (n = [n[0] & 2, f.value]), n[0]) {
|
|
57
|
+
case 0:
|
|
58
|
+
case 1:
|
|
59
|
+
f = n;
|
|
60
|
+
break;
|
|
61
|
+
case 4:
|
|
62
|
+
return i.label++, { value: n[1], done: !1 };
|
|
63
|
+
case 5:
|
|
64
|
+
i.label++, t = n[1], n = [0];
|
|
65
|
+
continue;
|
|
66
|
+
case 7:
|
|
67
|
+
n = i.ops.pop(), i.trys.pop();
|
|
68
|
+
continue;
|
|
69
|
+
default:
|
|
70
|
+
if (f = i.trys, !(f = f.length > 0 && f[f.length - 1]) && (n[0] === 6 || n[0] === 2)) {
|
|
71
|
+
i = 0;
|
|
72
|
+
continue;
|
|
73
|
+
}
|
|
74
|
+
if (n[0] === 3 && (!f || n[1] > f[0] && n[1] < f[3])) {
|
|
75
|
+
i.label = n[1];
|
|
76
|
+
break;
|
|
77
|
+
}
|
|
78
|
+
if (n[0] === 6 && i.label < f[1]) {
|
|
79
|
+
i.label = f[1], f = n;
|
|
80
|
+
break;
|
|
81
|
+
}
|
|
82
|
+
if (f && i.label < f[2]) {
|
|
83
|
+
i.label = f[2], i.ops.push(n);
|
|
84
|
+
break;
|
|
85
|
+
}
|
|
86
|
+
f[2] && i.ops.pop(), i.trys.pop();
|
|
87
|
+
continue;
|
|
88
|
+
}
|
|
89
|
+
n = v.call(u, i);
|
|
90
|
+
} catch (s) {
|
|
91
|
+
n = [6, s], t = 0;
|
|
92
|
+
} finally {
|
|
93
|
+
o = f = 0;
|
|
94
|
+
}
|
|
95
|
+
if (n[0] & 5) throw n[1];
|
|
96
|
+
return { value: n[0] ? n[1] : void 0, done: !0 };
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* @license
|
|
101
|
+
* Copyright (C) 2006-2020 Music Technology Group - Universitat Pompeu Fabra
|
|
102
|
+
*
|
|
103
|
+
* This file is part of Essentia
|
|
104
|
+
*
|
|
105
|
+
* Essentia is free software: you can redistribute it and/or modify it under
|
|
106
|
+
* the terms of the GNU Affero General Public License as published by the Free
|
|
107
|
+
* Software Foundation (FSF), either version 3 of the License, or (at your
|
|
108
|
+
* option) any later version.
|
|
109
|
+
*
|
|
110
|
+
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
111
|
+
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
112
|
+
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
113
|
+
* details.
|
|
114
|
+
*
|
|
115
|
+
* You should have received a copy of the Affero GNU General Public License
|
|
116
|
+
* version 3 along with this program. If not, see http://www.gnu.org/licenses/
|
|
117
|
+
*/
|
|
118
|
+
var Y = (
|
|
119
|
+
/** @class */
|
|
120
|
+
function() {
|
|
121
|
+
function u(v, i) {
|
|
122
|
+
i === void 0 && (i = !1), this.EssentiaWASM = v, this.isDebug = i, this.algorithms = new v.EssentiaJS(i), this.module = v, this.version = this.algorithms.version, this.algorithmNames = this.algorithms.algorithmNames;
|
|
123
|
+
}
|
|
124
|
+
return u.prototype.getAudioBufferFromURL = function(v, i) {
|
|
125
|
+
return V(this, void 0, void 0, function() {
|
|
126
|
+
var o, t, f;
|
|
127
|
+
return N(this, function(d) {
|
|
128
|
+
switch (d.label) {
|
|
129
|
+
case 0:
|
|
130
|
+
return [4, fetch(v)];
|
|
131
|
+
case 1:
|
|
132
|
+
return o = d.sent(), [4, o.arrayBuffer()];
|
|
133
|
+
case 2:
|
|
134
|
+
return t = d.sent(), [4, i.decodeAudioData(t)];
|
|
135
|
+
case 3:
|
|
136
|
+
return f = d.sent(), [2, f];
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
});
|
|
140
|
+
}, u.prototype.getAudioChannelDataFromURL = function(v, i, o) {
|
|
141
|
+
return o === void 0 && (o = 0), V(this, void 0, void 0, function() {
|
|
142
|
+
var t, f, d;
|
|
143
|
+
return N(this, function(r) {
|
|
144
|
+
switch (r.label) {
|
|
145
|
+
case 0:
|
|
146
|
+
return [4, fetch(v)];
|
|
147
|
+
case 1:
|
|
148
|
+
return t = r.sent(), [4, t.arrayBuffer()];
|
|
149
|
+
case 2:
|
|
150
|
+
return f = r.sent(), [4, i.decodeAudioData(f)];
|
|
151
|
+
case 3:
|
|
152
|
+
return d = r.sent(), [2, d.getChannelData(o)];
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
});
|
|
156
|
+
}, u.prototype.audioBufferToMonoSignal = function(v) {
|
|
157
|
+
if (v.numberOfChannels === 1)
|
|
158
|
+
return v.getChannelData(0);
|
|
159
|
+
if (v.numberOfChannels === 2) {
|
|
160
|
+
var i = this.arrayToVector(v.getChannelData(0)), o = this.arrayToVector(v.getChannelData(1)), t = this.MonoMixer(i, o).audio;
|
|
161
|
+
return this.vectorToArray(t);
|
|
162
|
+
}
|
|
163
|
+
throw new Error("Unexpected number of channels found in audio buffer. Only accepts mono or stereo audio buffers.");
|
|
164
|
+
}, u.prototype.shutdown = function() {
|
|
165
|
+
this.algorithms.shutdown();
|
|
166
|
+
}, u.prototype.reinstantiate = function() {
|
|
167
|
+
this.algorithms = new this.module.EssentiaJS(this.isDebug);
|
|
168
|
+
}, u.prototype.delete = function() {
|
|
169
|
+
this.algorithms.delete();
|
|
170
|
+
}, u.prototype.arrayToVector = function(v) {
|
|
171
|
+
return this.module.arrayToVector(v);
|
|
172
|
+
}, u.prototype.vectorToArray = function(v) {
|
|
173
|
+
return this.module.vectorToArray(v);
|
|
174
|
+
}, u.prototype.FrameGenerator = function(v, i, o) {
|
|
175
|
+
return i === void 0 && (i = 2048), o === void 0 && (o = 1024), this.algorithms.FrameGenerator(v, i, o);
|
|
176
|
+
}, u.prototype.MonoMixer = function(v, i) {
|
|
177
|
+
return this.algorithms.MonoMixer(v, i);
|
|
178
|
+
}, u.prototype.LoudnessEBUR128 = function(v, i, o, t, f) {
|
|
179
|
+
return o === void 0 && (o = 0.1), t === void 0 && (t = 44100), f === void 0 && (f = !1), this.algorithms.LoudnessEBUR128(v, i, o, t, f);
|
|
180
|
+
}, u.prototype.AfterMaxToBeforeMaxEnergyRatio = function(v) {
|
|
181
|
+
return this.algorithms.AfterMaxToBeforeMaxEnergyRatio(v);
|
|
182
|
+
}, u.prototype.AllPass = function(v, i, o, t, f) {
|
|
183
|
+
return i === void 0 && (i = 500), o === void 0 && (o = 1500), t === void 0 && (t = 1), f === void 0 && (f = 44100), this.algorithms.AllPass(v, i, o, t, f);
|
|
184
|
+
}, u.prototype.AudioOnsetsMarker = function(v, i, o, t) {
|
|
185
|
+
i === void 0 && (i = []), o === void 0 && (o = 44100), t === void 0 && (t = "beep");
|
|
186
|
+
for (var f = new this.module.VectorFloat(), d = 0; d < f.size(); d++)
|
|
187
|
+
f.push_back(i[d]);
|
|
188
|
+
return this.algorithms.AudioOnsetsMarker(v, f, o, t);
|
|
189
|
+
}, u.prototype.AutoCorrelation = function(v, i, o, t) {
|
|
190
|
+
return i === void 0 && (i = 0.5), o === void 0 && (o = !1), t === void 0 && (t = "standard"), this.algorithms.AutoCorrelation(v, i, o, t);
|
|
191
|
+
}, u.prototype.BFCC = function(v, i, o, t, f, d, r, h, n, s, c, M, g) {
|
|
192
|
+
return i === void 0 && (i = 2), o === void 0 && (o = 11e3), t === void 0 && (t = 1025), f === void 0 && (f = 0), d === void 0 && (d = "dbamp"), r === void 0 && (r = 0), h === void 0 && (h = "unit_sum"), n === void 0 && (n = 40), s === void 0 && (s = 13), c === void 0 && (c = 44100), M === void 0 && (M = "power"), g === void 0 && (g = "warping"), this.algorithms.BFCC(v, i, o, t, f, d, r, h, n, s, c, M, g);
|
|
193
|
+
}, u.prototype.BPF = function(v, i, o) {
|
|
194
|
+
i === void 0 && (i = [0, 1]), o === void 0 && (o = [0, 1]);
|
|
195
|
+
for (var t = new this.module.VectorFloat(), f = 0; f < t.size(); f++)
|
|
196
|
+
t.push_back(i[f]);
|
|
197
|
+
for (var d = new this.module.VectorFloat(), f = 0; f < d.size(); f++)
|
|
198
|
+
d.push_back(o[f]);
|
|
199
|
+
return this.algorithms.BPF(v, t, d);
|
|
200
|
+
}, u.prototype.BandPass = function(v, i, o, t) {
|
|
201
|
+
return i === void 0 && (i = 500), o === void 0 && (o = 1500), t === void 0 && (t = 44100), this.algorithms.BandPass(v, i, o, t);
|
|
202
|
+
}, u.prototype.BandReject = function(v, i, o, t) {
|
|
203
|
+
return i === void 0 && (i = 500), o === void 0 && (o = 1500), t === void 0 && (t = 44100), this.algorithms.BandReject(v, i, o, t);
|
|
204
|
+
}, u.prototype.BarkBands = function(v, i, o) {
|
|
205
|
+
return i === void 0 && (i = 27), o === void 0 && (o = 44100), this.algorithms.BarkBands(v, i, o);
|
|
206
|
+
}, u.prototype.BeatTrackerDegara = function(v, i, o) {
|
|
207
|
+
return i === void 0 && (i = 208), o === void 0 && (o = 40), this.algorithms.BeatTrackerDegara(v, i, o);
|
|
208
|
+
}, u.prototype.BeatTrackerMultiFeature = function(v, i, o) {
|
|
209
|
+
return i === void 0 && (i = 208), o === void 0 && (o = 40), this.algorithms.BeatTrackerMultiFeature(v, i, o);
|
|
210
|
+
}, u.prototype.Beatogram = function(v, i, o) {
|
|
211
|
+
return o === void 0 && (o = 16), this.algorithms.Beatogram(v, i, o);
|
|
212
|
+
}, u.prototype.BeatsLoudness = function(v, i, o, t, f, d) {
|
|
213
|
+
i === void 0 && (i = 0.05), o === void 0 && (o = 0.1), t === void 0 && (t = []), f === void 0 && (f = [20, 150, 400, 3200, 7e3, 22e3]), d === void 0 && (d = 44100);
|
|
214
|
+
for (var r = new this.module.VectorFloat(), h = 0; h < r.size(); h++)
|
|
215
|
+
r.push_back(t[h]);
|
|
216
|
+
for (var n = new this.module.VectorFloat(), h = 0; h < n.size(); h++)
|
|
217
|
+
n.push_back(f[h]);
|
|
218
|
+
return this.algorithms.BeatsLoudness(v, i, o, r, n, d);
|
|
219
|
+
}, u.prototype.BinaryOperator = function(v, i, o) {
|
|
220
|
+
return o === void 0 && (o = "add"), this.algorithms.BinaryOperator(v, i, o);
|
|
221
|
+
}, u.prototype.BinaryOperatorStream = function(v, i, o) {
|
|
222
|
+
return o === void 0 && (o = "add"), this.algorithms.BinaryOperatorStream(v, i, o);
|
|
223
|
+
}, u.prototype.BpmHistogramDescriptors = function(v) {
|
|
224
|
+
return this.algorithms.BpmHistogramDescriptors(v);
|
|
225
|
+
}, u.prototype.BpmRubato = function(v, i, o, t) {
|
|
226
|
+
return i === void 0 && (i = 20), o === void 0 && (o = 4), t === void 0 && (t = 0.08), this.algorithms.BpmRubato(v, i, o, t);
|
|
227
|
+
}, u.prototype.CentralMoments = function(v, i, o) {
|
|
228
|
+
return i === void 0 && (i = "pdf"), o === void 0 && (o = 1), this.algorithms.CentralMoments(v, i, o);
|
|
229
|
+
}, u.prototype.Centroid = function(v, i) {
|
|
230
|
+
return i === void 0 && (i = 1), this.algorithms.Centroid(v, i);
|
|
231
|
+
}, u.prototype.ChordsDescriptors = function(v, i, o) {
|
|
232
|
+
return this.algorithms.ChordsDescriptors(v, i, o);
|
|
233
|
+
}, u.prototype.ChordsDetection = function(v, i, o, t) {
|
|
234
|
+
return i === void 0 && (i = 2048), o === void 0 && (o = 44100), t === void 0 && (t = 2), this.algorithms.ChordsDetection(v, i, o, t);
|
|
235
|
+
}, u.prototype.ChordsDetectionBeats = function(v, i, o, t, f) {
|
|
236
|
+
return o === void 0 && (o = "interbeat_median"), t === void 0 && (t = 2048), f === void 0 && (f = 44100), this.algorithms.ChordsDetectionBeats(v, i, o, t, f);
|
|
237
|
+
}, u.prototype.ChromaCrossSimilarity = function(v, i, o, t, f, d, r, h, n) {
|
|
238
|
+
return o === void 0 && (o = 0.095), t === void 0 && (t = 9), f === void 0 && (f = 1), d === void 0 && (d = 12), r === void 0 && (r = !0), h === void 0 && (h = !1), n === void 0 && (n = !1), this.algorithms.ChromaCrossSimilarity(v, i, o, t, f, d, r, h, n);
|
|
239
|
+
}, u.prototype.Chromagram = function(v, i, o, t, f, d, r, h, n, s, c) {
|
|
240
|
+
return i === void 0 && (i = 12), o === void 0 && (o = 32.7), t === void 0 && (t = 4), f === void 0 && (f = "unit_max"), d === void 0 && (d = 84), r === void 0 && (r = 44100), h === void 0 && (h = 1), n === void 0 && (n = 0.01), s === void 0 && (s = "hann"), c === void 0 && (c = !0), this.algorithms.Chromagram(v, i, o, t, f, d, r, h, n, s, c);
|
|
241
|
+
}, u.prototype.ClickDetector = function(v, i, o, t, f, d, r, h) {
|
|
242
|
+
return i === void 0 && (i = 30), o === void 0 && (o = 512), t === void 0 && (t = 256), f === void 0 && (f = 12), d === void 0 && (d = 10), r === void 0 && (r = 44100), h === void 0 && (h = -50), this.algorithms.ClickDetector(v, i, o, t, f, d, r, h);
|
|
243
|
+
}, u.prototype.Clipper = function(v, i, o) {
|
|
244
|
+
return i === void 0 && (i = 1), o === void 0 && (o = -1), this.algorithms.Clipper(v, i, o);
|
|
245
|
+
}, u.prototype.CoverSongSimilarity = function(v, i, o, t, f) {
|
|
246
|
+
return i === void 0 && (i = "serra09"), o === void 0 && (o = 0.5), t === void 0 && (t = 0.5), f === void 0 && (f = "asymmetric"), this.algorithms.CoverSongSimilarity(v, i, o, t, f);
|
|
247
|
+
}, u.prototype.Crest = function(v) {
|
|
248
|
+
return this.algorithms.Crest(v);
|
|
249
|
+
}, u.prototype.CrossCorrelation = function(v, i, o, t) {
|
|
250
|
+
return o === void 0 && (o = 1), t === void 0 && (t = 0), this.algorithms.CrossCorrelation(v, i, o, t);
|
|
251
|
+
}, u.prototype.CrossSimilarityMatrix = function(v, i, o, t, f, d) {
|
|
252
|
+
return o === void 0 && (o = !1), t === void 0 && (t = 0.095), f === void 0 && (f = 1), d === void 0 && (d = 1), this.algorithms.CrossSimilarityMatrix(v, i, o, t, f, d);
|
|
253
|
+
}, u.prototype.CubicSpline = function(v, i, o, t, f, d, r) {
|
|
254
|
+
i === void 0 && (i = 0), o === void 0 && (o = 0), t === void 0 && (t = 0), f === void 0 && (f = 0), d === void 0 && (d = [0, 1]), r === void 0 && (r = [0, 1]);
|
|
255
|
+
for (var h = new this.module.VectorFloat(), n = 0; n < h.size(); n++)
|
|
256
|
+
h.push_back(d[n]);
|
|
257
|
+
for (var s = new this.module.VectorFloat(), n = 0; n < s.size(); n++)
|
|
258
|
+
s.push_back(r[n]);
|
|
259
|
+
return this.algorithms.CubicSpline(v, i, o, t, f, h, s);
|
|
260
|
+
}, u.prototype.DCRemoval = function(v, i, o) {
|
|
261
|
+
return i === void 0 && (i = 40), o === void 0 && (o = 44100), this.algorithms.DCRemoval(v, i, o);
|
|
262
|
+
}, u.prototype.DCT = function(v, i, o, t, f) {
|
|
263
|
+
return i === void 0 && (i = 2), o === void 0 && (o = 10), t === void 0 && (t = 0), f === void 0 && (f = 10), this.algorithms.DCT(v, i, o, t, f);
|
|
264
|
+
}, u.prototype.Danceability = function(v, i, o, t, f) {
|
|
265
|
+
return i === void 0 && (i = 8800), o === void 0 && (o = 310), t === void 0 && (t = 44100), f === void 0 && (f = 1.1), this.algorithms.Danceability(v, i, o, t, f);
|
|
266
|
+
}, u.prototype.Decrease = function(v, i) {
|
|
267
|
+
return i === void 0 && (i = 1), this.algorithms.Decrease(v, i);
|
|
268
|
+
}, u.prototype.Derivative = function(v) {
|
|
269
|
+
return this.algorithms.Derivative(v);
|
|
270
|
+
}, u.prototype.DerivativeSFX = function(v) {
|
|
271
|
+
return this.algorithms.DerivativeSFX(v);
|
|
272
|
+
}, u.prototype.DiscontinuityDetector = function(v, i, o, t, f, d, r, h, n) {
|
|
273
|
+
return i === void 0 && (i = 8), o === void 0 && (o = -60), t === void 0 && (t = 512), f === void 0 && (f = 256), d === void 0 && (d = 7), r === void 0 && (r = 3), h === void 0 && (h = -50), n === void 0 && (n = 32), this.algorithms.DiscontinuityDetector(v, i, o, t, f, d, r, h, n);
|
|
274
|
+
}, u.prototype.Dissonance = function(v, i) {
|
|
275
|
+
return this.algorithms.Dissonance(v, i);
|
|
276
|
+
}, u.prototype.DistributionShape = function(v) {
|
|
277
|
+
return this.algorithms.DistributionShape(v);
|
|
278
|
+
}, u.prototype.Duration = function(v, i) {
|
|
279
|
+
return i === void 0 && (i = 44100), this.algorithms.Duration(v, i);
|
|
280
|
+
}, u.prototype.DynamicComplexity = function(v, i, o) {
|
|
281
|
+
return i === void 0 && (i = 0.2), o === void 0 && (o = 44100), this.algorithms.DynamicComplexity(v, i, o);
|
|
282
|
+
}, u.prototype.ERBBands = function(v, i, o, t, f, d, r, h) {
|
|
283
|
+
return i === void 0 && (i = 22050), o === void 0 && (o = 1025), t === void 0 && (t = 50), f === void 0 && (f = 40), d === void 0 && (d = 44100), r === void 0 && (r = "power"), h === void 0 && (h = 1), this.algorithms.ERBBands(v, i, o, t, f, d, r, h);
|
|
284
|
+
}, u.prototype.EffectiveDuration = function(v, i, o) {
|
|
285
|
+
return i === void 0 && (i = 44100), o === void 0 && (o = 0.4), this.algorithms.EffectiveDuration(v, i, o);
|
|
286
|
+
}, u.prototype.Energy = function(v) {
|
|
287
|
+
return this.algorithms.Energy(v);
|
|
288
|
+
}, u.prototype.EnergyBand = function(v, i, o, t) {
|
|
289
|
+
return i === void 0 && (i = 44100), o === void 0 && (o = 0), t === void 0 && (t = 100), this.algorithms.EnergyBand(v, i, o, t);
|
|
290
|
+
}, u.prototype.EnergyBandRatio = function(v, i, o, t) {
|
|
291
|
+
return i === void 0 && (i = 44100), o === void 0 && (o = 0), t === void 0 && (t = 100), this.algorithms.EnergyBandRatio(v, i, o, t);
|
|
292
|
+
}, u.prototype.Entropy = function(v) {
|
|
293
|
+
return this.algorithms.Entropy(v);
|
|
294
|
+
}, u.prototype.Envelope = function(v, i, o, t, f) {
|
|
295
|
+
return i === void 0 && (i = !0), o === void 0 && (o = 10), t === void 0 && (t = 1500), f === void 0 && (f = 44100), this.algorithms.Envelope(v, i, o, t, f);
|
|
296
|
+
}, u.prototype.EqualLoudness = function(v, i) {
|
|
297
|
+
return i === void 0 && (i = 44100), this.algorithms.EqualLoudness(v, i);
|
|
298
|
+
}, u.prototype.Flatness = function(v) {
|
|
299
|
+
return this.algorithms.Flatness(v);
|
|
300
|
+
}, u.prototype.FlatnessDB = function(v) {
|
|
301
|
+
return this.algorithms.FlatnessDB(v);
|
|
302
|
+
}, u.prototype.FlatnessSFX = function(v) {
|
|
303
|
+
return this.algorithms.FlatnessSFX(v);
|
|
304
|
+
}, u.prototype.Flux = function(v, i, o) {
|
|
305
|
+
return i === void 0 && (i = !1), o === void 0 && (o = "L2"), this.algorithms.Flux(v, i, o);
|
|
306
|
+
}, u.prototype.FrameCutter = function(v, i, o, t, f, d) {
|
|
307
|
+
return i === void 0 && (i = 1024), o === void 0 && (o = 512), t === void 0 && (t = !1), f === void 0 && (f = !1), d === void 0 && (d = 0), this.algorithms.FrameCutter(v, i, o, t, f, d);
|
|
308
|
+
}, u.prototype.FrameToReal = function(v, i, o) {
|
|
309
|
+
return i === void 0 && (i = 2048), o === void 0 && (o = 128), this.algorithms.FrameToReal(v, i, o);
|
|
310
|
+
}, u.prototype.FrequencyBands = function(v, i, o) {
|
|
311
|
+
i === void 0 && (i = [0, 50, 100, 150, 200, 300, 400, 510, 630, 770, 920, 1080, 1270, 1480, 1720, 2e3, 2320, 2700, 3150, 3700, 4400, 5300, 6400, 7700, 9500, 12e3, 15500, 20500, 27e3]), o === void 0 && (o = 44100);
|
|
312
|
+
for (var t = new this.module.VectorFloat(), f = 0; f < t.size(); f++)
|
|
313
|
+
t.push_back(i[f]);
|
|
314
|
+
return this.algorithms.FrequencyBands(v, t, o);
|
|
315
|
+
}, u.prototype.GFCC = function(v, i, o, t, f, d, r, h, n, s, c) {
|
|
316
|
+
return i === void 0 && (i = 2), o === void 0 && (o = 22050), t === void 0 && (t = 1025), f === void 0 && (f = "dbamp"), d === void 0 && (d = 40), r === void 0 && (r = 40), h === void 0 && (h = 13), n === void 0 && (n = 44100), s === void 0 && (s = 1e-10), c === void 0 && (c = "power"), this.algorithms.GFCC(v, i, o, t, f, d, r, h, n, s, c);
|
|
317
|
+
}, u.prototype.GapsDetector = function(v, i, o, t, f, d, r, h, n, s, c, M, g) {
|
|
318
|
+
return i === void 0 && (i = 0.05), o === void 0 && (o = 2048), t === void 0 && (t = 1024), f === void 0 && (f = 11), d === void 0 && (d = 3500), r === void 0 && (r = 10), h === void 0 && (h = 40), n === void 0 && (n = -30), s === void 0 && (s = 40), c === void 0 && (c = 0.05), M === void 0 && (M = 44100), g === void 0 && (g = -50), this.algorithms.GapsDetector(v, i, o, t, f, d, r, h, n, s, c, M, g);
|
|
319
|
+
}, u.prototype.GeometricMean = function(v) {
|
|
320
|
+
return this.algorithms.GeometricMean(v);
|
|
321
|
+
}, u.prototype.HFC = function(v, i, o) {
|
|
322
|
+
return i === void 0 && (i = 44100), o === void 0 && (o = "Masri"), this.algorithms.HFC(v, i, o);
|
|
323
|
+
}, u.prototype.HPCP = function(v, i, o, t, f, d, r, h, n, s, c, M, g, C, E) {
|
|
324
|
+
return o === void 0 && (o = !0), t === void 0 && (t = 500), f === void 0 && (f = 0), d === void 0 && (d = 5e3), r === void 0 && (r = !1), h === void 0 && (h = 40), n === void 0 && (n = !1), s === void 0 && (s = "unitMax"), c === void 0 && (c = 440), M === void 0 && (M = 44100), g === void 0 && (g = 12), C === void 0 && (C = "squaredCosine"), E === void 0 && (E = 1), this.algorithms.HPCP(v, i, o, t, f, d, r, h, n, s, c, M, g, C, E);
|
|
325
|
+
}, u.prototype.HarmonicBpm = function(v, i, o, t) {
|
|
326
|
+
return i === void 0 && (i = 60), o === void 0 && (o = 20), t === void 0 && (t = 5), this.algorithms.HarmonicBpm(v, i, o, t);
|
|
327
|
+
}, u.prototype.HarmonicPeaks = function(v, i, o, t, f) {
|
|
328
|
+
return t === void 0 && (t = 20), f === void 0 && (f = 0.2), this.algorithms.HarmonicPeaks(v, i, o, t, f);
|
|
329
|
+
}, u.prototype.HighPass = function(v, i, o) {
|
|
330
|
+
return i === void 0 && (i = 1500), o === void 0 && (o = 44100), this.algorithms.HighPass(v, i, o);
|
|
331
|
+
}, u.prototype.HighResolutionFeatures = function(v, i) {
|
|
332
|
+
return i === void 0 && (i = 24), this.algorithms.HighResolutionFeatures(v, i);
|
|
333
|
+
}, u.prototype.Histogram = function(v, i, o, t, f) {
|
|
334
|
+
return i === void 0 && (i = 1), o === void 0 && (o = 0), t === void 0 && (t = "none"), f === void 0 && (f = 10), this.algorithms.Histogram(v, i, o, t, f);
|
|
335
|
+
}, u.prototype.HprModelAnal = function(v, i, o, t, f, d, r, h, n, s, c, M, g, C, E, L) {
|
|
336
|
+
return o === void 0 && (o = 2048), t === void 0 && (t = 20), f === void 0 && (f = 0.01), d === void 0 && (d = 0.01), r === void 0 && (r = 512), h === void 0 && (h = 0), n === void 0 && (n = 5e3), s === void 0 && (s = 100), c === void 0 && (c = 100), M === void 0 && (M = 20), g === void 0 && (g = 100), C === void 0 && (C = "frequency"), E === void 0 && (E = 44100), L === void 0 && (L = 0.2), this.algorithms.HprModelAnal(v, i, o, t, f, d, r, h, n, s, c, M, g, C, E, L);
|
|
337
|
+
}, u.prototype.HpsModelAnal = function(v, i, o, t, f, d, r, h, n, s, c, M, g, C, E, L) {
|
|
338
|
+
return o === void 0 && (o = 2048), t === void 0 && (t = 20), f === void 0 && (f = 0.01), d === void 0 && (d = 0.01), r === void 0 && (r = 512), h === void 0 && (h = 0), n === void 0 && (n = 5e3), s === void 0 && (s = 100), c === void 0 && (c = 100), M === void 0 && (M = 20), g === void 0 && (g = 100), C === void 0 && (C = "frequency"), E === void 0 && (E = 44100), L === void 0 && (L = 0.2), this.algorithms.HpsModelAnal(v, i, o, t, f, d, r, h, n, s, c, M, g, C, E, L);
|
|
339
|
+
}, u.prototype.IDCT = function(v, i, o, t, f) {
|
|
340
|
+
return i === void 0 && (i = 2), o === void 0 && (o = 10), t === void 0 && (t = 0), f === void 0 && (f = 10), this.algorithms.IDCT(v, i, o, t, f);
|
|
341
|
+
}, u.prototype.IIR = function(v, i, o) {
|
|
342
|
+
i === void 0 && (i = [1]), o === void 0 && (o = [1]);
|
|
343
|
+
for (var t = new this.module.VectorFloat(), f = 0; f < t.size(); f++)
|
|
344
|
+
t.push_back(i[f]);
|
|
345
|
+
for (var d = new this.module.VectorFloat(), f = 0; f < d.size(); f++)
|
|
346
|
+
d.push_back(o[f]);
|
|
347
|
+
return this.algorithms.IIR(v, t, d);
|
|
348
|
+
}, u.prototype.Inharmonicity = function(v, i) {
|
|
349
|
+
return this.algorithms.Inharmonicity(v, i);
|
|
350
|
+
}, u.prototype.InstantPower = function(v) {
|
|
351
|
+
return this.algorithms.InstantPower(v);
|
|
352
|
+
}, u.prototype.Intensity = function(v, i) {
|
|
353
|
+
return i === void 0 && (i = 44100), this.algorithms.Intensity(v, i);
|
|
354
|
+
}, u.prototype.Key = function(v, i, o, t, f, d, r, h) {
|
|
355
|
+
return i === void 0 && (i = 4), o === void 0 && (o = 36), t === void 0 && (t = "bgate"), f === void 0 && (f = 0.6), d === void 0 && (d = !1), r === void 0 && (r = !0), h === void 0 && (h = !0), this.algorithms.Key(v, i, o, t, f, d, r, h);
|
|
356
|
+
}, u.prototype.KeyExtractor = function(v, i, o, t, f, d, r, h, n, s, c, M, g, C, E) {
|
|
357
|
+
return i === void 0 && (i = !0), o === void 0 && (o = 4096), t === void 0 && (t = 4096), f === void 0 && (f = 12), d === void 0 && (d = 3500), r === void 0 && (r = 60), h === void 0 && (h = 25), n === void 0 && (n = 0.2), s === void 0 && (s = "bgate"), c === void 0 && (c = 44100), M === void 0 && (M = 1e-4), g === void 0 && (g = 440), C === void 0 && (C = "cosine"), E === void 0 && (E = "hann"), this.algorithms.KeyExtractor(v, i, o, t, f, d, r, h, n, s, c, M, g, C, E);
|
|
358
|
+
}, u.prototype.LPC = function(v, i, o, t) {
|
|
359
|
+
return i === void 0 && (i = 10), o === void 0 && (o = 44100), t === void 0 && (t = "regular"), this.algorithms.LPC(v, i, o, t);
|
|
360
|
+
}, u.prototype.Larm = function(v, i, o, t, f) {
|
|
361
|
+
return i === void 0 && (i = 10), o === void 0 && (o = 1.5), t === void 0 && (t = 1500), f === void 0 && (f = 44100), this.algorithms.Larm(v, i, o, t, f);
|
|
362
|
+
}, u.prototype.Leq = function(v) {
|
|
363
|
+
return this.algorithms.Leq(v);
|
|
364
|
+
}, u.prototype.LevelExtractor = function(v, i, o) {
|
|
365
|
+
return i === void 0 && (i = 88200), o === void 0 && (o = 44100), this.algorithms.LevelExtractor(v, i, o);
|
|
366
|
+
}, u.prototype.LogAttackTime = function(v, i, o, t) {
|
|
367
|
+
return i === void 0 && (i = 44100), o === void 0 && (o = 0.2), t === void 0 && (t = 0.9), this.algorithms.LogAttackTime(v, i, o, t);
|
|
368
|
+
}, u.prototype.LogSpectrum = function(v, i, o, t, f) {
|
|
369
|
+
return i === void 0 && (i = 3), o === void 0 && (o = 1025), t === void 0 && (t = 0), f === void 0 && (f = 44100), this.algorithms.LogSpectrum(v, i, o, t, f);
|
|
370
|
+
}, u.prototype.LoopBpmConfidence = function(v, i, o) {
|
|
371
|
+
return o === void 0 && (o = 44100), this.algorithms.LoopBpmConfidence(v, i, o);
|
|
372
|
+
}, u.prototype.LoopBpmEstimator = function(v, i) {
|
|
373
|
+
return i === void 0 && (i = 0.95), this.algorithms.LoopBpmEstimator(v, i);
|
|
374
|
+
}, u.prototype.Loudness = function(v) {
|
|
375
|
+
return this.algorithms.Loudness(v);
|
|
376
|
+
}, u.prototype.LoudnessVickers = function(v, i) {
|
|
377
|
+
return i === void 0 && (i = 44100), this.algorithms.LoudnessVickers(v, i);
|
|
378
|
+
}, u.prototype.LowLevelSpectralEqloudExtractor = function(v, i, o, t) {
|
|
379
|
+
return i === void 0 && (i = 2048), o === void 0 && (o = 1024), t === void 0 && (t = 44100), this.algorithms.LowLevelSpectralEqloudExtractor(v, i, o, t);
|
|
380
|
+
}, u.prototype.LowLevelSpectralExtractor = function(v, i, o, t) {
|
|
381
|
+
return i === void 0 && (i = 2048), o === void 0 && (o = 1024), t === void 0 && (t = 44100), this.algorithms.LowLevelSpectralExtractor(v, i, o, t);
|
|
382
|
+
}, u.prototype.LowPass = function(v, i, o) {
|
|
383
|
+
return i === void 0 && (i = 1500), o === void 0 && (o = 44100), this.algorithms.LowPass(v, i, o);
|
|
384
|
+
}, u.prototype.MFCC = function(v, i, o, t, f, d, r, h, n, s, c, M, g, C, E) {
|
|
385
|
+
return i === void 0 && (i = 2), o === void 0 && (o = 11e3), t === void 0 && (t = 1025), f === void 0 && (f = 0), d === void 0 && (d = "dbamp"), r === void 0 && (r = 0), h === void 0 && (h = "unit_sum"), n === void 0 && (n = 40), s === void 0 && (s = 13), c === void 0 && (c = 44100), M === void 0 && (M = 1e-10), g === void 0 && (g = "power"), C === void 0 && (C = "htkMel"), E === void 0 && (E = "warping"), this.algorithms.MFCC(v, i, o, t, f, d, r, h, n, s, c, M, g, C, E);
|
|
386
|
+
}, u.prototype.MaxFilter = function(v, i, o) {
|
|
387
|
+
return i === void 0 && (i = !0), o === void 0 && (o = 3), this.algorithms.MaxFilter(v, i, o);
|
|
388
|
+
}, u.prototype.MaxMagFreq = function(v, i) {
|
|
389
|
+
return i === void 0 && (i = 44100), this.algorithms.MaxMagFreq(v, i);
|
|
390
|
+
}, u.prototype.MaxToTotal = function(v) {
|
|
391
|
+
return this.algorithms.MaxToTotal(v);
|
|
392
|
+
}, u.prototype.Mean = function(v) {
|
|
393
|
+
return this.algorithms.Mean(v);
|
|
394
|
+
}, u.prototype.Median = function(v) {
|
|
395
|
+
return this.algorithms.Median(v);
|
|
396
|
+
}, u.prototype.MedianFilter = function(v, i) {
|
|
397
|
+
return i === void 0 && (i = 11), this.algorithms.MedianFilter(v, i);
|
|
398
|
+
}, u.prototype.MelBands = function(v, i, o, t, f, d, r, h, n, s, c) {
|
|
399
|
+
return i === void 0 && (i = 22050), o === void 0 && (o = 1025), t === void 0 && (t = !1), f === void 0 && (f = 0), d === void 0 && (d = "unit_sum"), r === void 0 && (r = 24), h === void 0 && (h = 44100), n === void 0 && (n = "power"), s === void 0 && (s = "htkMel"), c === void 0 && (c = "warping"), this.algorithms.MelBands(v, i, o, t, f, d, r, h, n, s, c);
|
|
400
|
+
}, u.prototype.Meter = function(v) {
|
|
401
|
+
return this.algorithms.Meter(v);
|
|
402
|
+
}, u.prototype.MinMax = function(v, i) {
|
|
403
|
+
return i === void 0 && (i = "min"), this.algorithms.MinMax(v, i);
|
|
404
|
+
}, u.prototype.MinToTotal = function(v) {
|
|
405
|
+
return this.algorithms.MinToTotal(v);
|
|
406
|
+
}, u.prototype.MovingAverage = function(v, i) {
|
|
407
|
+
return i === void 0 && (i = 6), this.algorithms.MovingAverage(v, i);
|
|
408
|
+
}, u.prototype.MultiPitchKlapuri = function(v, i, o, t, f, d, r, h, n, s, c, M) {
|
|
409
|
+
return i === void 0 && (i = 10), o === void 0 && (o = 2048), t === void 0 && (t = 0.8), f === void 0 && (f = 128), d === void 0 && (d = 1), r === void 0 && (r = 40), h === void 0 && (h = 1760), n === void 0 && (n = 80), s === void 0 && (s = 10), c === void 0 && (c = 55), M === void 0 && (M = 44100), this.algorithms.MultiPitchKlapuri(v, i, o, t, f, d, r, h, n, s, c, M);
|
|
410
|
+
}, u.prototype.MultiPitchMelodia = function(v, i, o, t, f, d, r, h, n, s, c, M, g, C, E, L, _, P, y) {
|
|
411
|
+
return i === void 0 && (i = 10), o === void 0 && (o = 3), t === void 0 && (t = 2048), f === void 0 && (f = !1), d === void 0 && (d = 0.8), r === void 0 && (r = 128), h === void 0 && (h = 1), n === void 0 && (n = 40), s === void 0 && (s = 2e4), c === void 0 && (c = 100), M === void 0 && (M = 40), g === void 0 && (g = 20), C === void 0 && (C = 0.9), E === void 0 && (E = 0.9), L === void 0 && (L = 27.5625), _ === void 0 && (_ = 55), P === void 0 && (P = 44100), y === void 0 && (y = 100), this.algorithms.MultiPitchMelodia(v, i, o, t, f, d, r, h, n, s, c, M, g, C, E, L, _, P, y);
|
|
412
|
+
}, u.prototype.Multiplexer = function(v, i) {
|
|
413
|
+
return v === void 0 && (v = 0), i === void 0 && (i = 0), this.algorithms.Multiplexer(v, i);
|
|
414
|
+
}, u.prototype.NNLSChroma = function(v, i, o, t, f, d, r, h, n, s) {
|
|
415
|
+
return t === void 0 && (t = "none"), f === void 0 && (f = 1025), d === void 0 && (d = 44100), r === void 0 && (r = 0.7), h === void 0 && (h = 1), n === void 0 && (n = "global"), s === void 0 && (s = !0), this.algorithms.NNLSChroma(v, i, o, t, f, d, r, h, n, s);
|
|
416
|
+
}, u.prototype.NoiseAdder = function(v, i, o) {
|
|
417
|
+
return i === void 0 && (i = !1), o === void 0 && (o = -100), this.algorithms.NoiseAdder(v, i, o);
|
|
418
|
+
}, u.prototype.NoiseBurstDetector = function(v, i, o, t) {
|
|
419
|
+
return i === void 0 && (i = 0.9), o === void 0 && (o = -50), t === void 0 && (t = 8), this.algorithms.NoiseBurstDetector(v, i, o, t);
|
|
420
|
+
}, u.prototype.NoveltyCurve = function(v, i, o, t, f) {
|
|
421
|
+
i === void 0 && (i = 344.531), o === void 0 && (o = !1), t === void 0 && (t = []), f === void 0 && (f = "hybrid");
|
|
422
|
+
for (var d = new this.module.VectorFloat(), r = 0; r < d.size(); r++)
|
|
423
|
+
d.push_back(t[r]);
|
|
424
|
+
return this.algorithms.NoveltyCurve(v, i, o, d, f);
|
|
425
|
+
}, u.prototype.NoveltyCurveFixedBpmEstimator = function(v, i, o, t, f, d) {
|
|
426
|
+
return i === void 0 && (i = 512), o === void 0 && (o = 560), t === void 0 && (t = 30), f === void 0 && (f = 44100), d === void 0 && (d = 3), this.algorithms.NoveltyCurveFixedBpmEstimator(v, i, o, t, f, d);
|
|
427
|
+
}, u.prototype.OddToEvenHarmonicEnergyRatio = function(v, i) {
|
|
428
|
+
return this.algorithms.OddToEvenHarmonicEnergyRatio(v, i);
|
|
429
|
+
}, u.prototype.OnsetDetection = function(v, i, o, t) {
|
|
430
|
+
return o === void 0 && (o = "hfc"), t === void 0 && (t = 44100), this.algorithms.OnsetDetection(v, i, o, t);
|
|
431
|
+
}, u.prototype.OnsetDetectionGlobal = function(v, i, o, t, f) {
|
|
432
|
+
return i === void 0 && (i = 2048), o === void 0 && (o = 512), t === void 0 && (t = "infogain"), f === void 0 && (f = 44100), this.algorithms.OnsetDetectionGlobal(v, i, o, t, f);
|
|
433
|
+
}, u.prototype.OnsetRate = function(v) {
|
|
434
|
+
return this.algorithms.OnsetRate(v);
|
|
435
|
+
}, u.prototype.OverlapAdd = function(v, i, o, t) {
|
|
436
|
+
return i === void 0 && (i = 2048), o === void 0 && (o = 1), t === void 0 && (t = 128), this.algorithms.OverlapAdd(v, i, o, t);
|
|
437
|
+
}, u.prototype.PeakDetection = function(v, i, o, t, f, d, r, h, n) {
|
|
438
|
+
return i === void 0 && (i = !0), o === void 0 && (o = 100), t === void 0 && (t = 1), f === void 0 && (f = 0), d === void 0 && (d = 0), r === void 0 && (r = "position"), h === void 0 && (h = 1), n === void 0 && (n = -1e6), this.algorithms.PeakDetection(v, i, o, t, f, d, r, h, n);
|
|
439
|
+
}, u.prototype.PercivalBpmEstimator = function(v, i, o, t, f, d, r, h) {
|
|
440
|
+
return i === void 0 && (i = 1024), o === void 0 && (o = 2048), t === void 0 && (t = 128), f === void 0 && (f = 128), d === void 0 && (d = 210), r === void 0 && (r = 50), h === void 0 && (h = 44100), this.algorithms.PercivalBpmEstimator(v, i, o, t, f, d, r, h);
|
|
441
|
+
}, u.prototype.PercivalEnhanceHarmonics = function(v) {
|
|
442
|
+
return this.algorithms.PercivalEnhanceHarmonics(v);
|
|
443
|
+
}, u.prototype.PercivalEvaluatePulseTrains = function(v, i) {
|
|
444
|
+
return this.algorithms.PercivalEvaluatePulseTrains(v, i);
|
|
445
|
+
}, u.prototype.PitchContourSegmentation = function(v, i, o, t, f, d, r, h) {
|
|
446
|
+
return o === void 0 && (o = 128), t === void 0 && (t = 0.1), f === void 0 && (f = 60), d === void 0 && (d = -2), r === void 0 && (r = 44100), h === void 0 && (h = 440), this.algorithms.PitchContourSegmentation(v, i, o, t, f, d, r, h);
|
|
447
|
+
}, u.prototype.PitchContours = function(v, i, o, t, f, d, r, h, n, s) {
|
|
448
|
+
return o === void 0 && (o = 10), t === void 0 && (t = 128), f === void 0 && (f = 100), d === void 0 && (d = 0.9), r === void 0 && (r = 0.9), h === void 0 && (h = 27.5625), n === void 0 && (n = 44100), s === void 0 && (s = 100), this.algorithms.PitchContours(v, i, o, t, f, d, r, h, n, s);
|
|
449
|
+
}, u.prototype.PitchContoursMelody = function(v, i, o, t, f, d, r, h, n, s, c, M, g, C) {
|
|
450
|
+
return f === void 0 && (f = 10), d === void 0 && (d = 3), r === void 0 && (r = !1), h === void 0 && (h = 128), n === void 0 && (n = 2e4), s === void 0 && (s = 80), c === void 0 && (c = 55), M === void 0 && (M = 44100), g === void 0 && (g = !1), C === void 0 && (C = 0.2), this.algorithms.PitchContoursMelody(v, i, o, t, f, d, r, h, n, s, c, M, g, C);
|
|
451
|
+
}, u.prototype.PitchContoursMonoMelody = function(v, i, o, t, f, d, r, h, n, s, c, M) {
|
|
452
|
+
return f === void 0 && (f = 10), d === void 0 && (d = 3), r === void 0 && (r = !1), h === void 0 && (h = 128), n === void 0 && (n = 2e4), s === void 0 && (s = 80), c === void 0 && (c = 55), M === void 0 && (M = 44100), this.algorithms.PitchContoursMonoMelody(v, i, o, t, f, d, r, h, n, s, c, M);
|
|
453
|
+
}, u.prototype.PitchContoursMultiMelody = function(v, i, o, t, f, d, r, h, n, s, c, M) {
|
|
454
|
+
return f === void 0 && (f = 10), d === void 0 && (d = 3), r === void 0 && (r = !1), h === void 0 && (h = 128), n === void 0 && (n = 2e4), s === void 0 && (s = 80), c === void 0 && (c = 55), M === void 0 && (M = 44100), this.algorithms.PitchContoursMultiMelody(v, i, o, t, f, d, r, h, n, s, c, M);
|
|
455
|
+
}, u.prototype.PitchFilter = function(v, i, o, t, f) {
|
|
456
|
+
return o === void 0 && (o = 36), t === void 0 && (t = 30), f === void 0 && (f = !1), this.algorithms.PitchFilter(v, i, o, t, f);
|
|
457
|
+
}, u.prototype.PitchMelodia = function(v, i, o, t, f, d, r, h, n, s, c, M, g, C, E, L, _, P, y) {
|
|
458
|
+
return i === void 0 && (i = 10), o === void 0 && (o = 3), t === void 0 && (t = 2048), f === void 0 && (f = !1), d === void 0 && (d = 0.8), r === void 0 && (r = 128), h === void 0 && (h = 1), n === void 0 && (n = 40), s === void 0 && (s = 2e4), c === void 0 && (c = 100), M === void 0 && (M = 40), g === void 0 && (g = 20), C === void 0 && (C = 0.9), E === void 0 && (E = 0.9), L === void 0 && (L = 27.5625), _ === void 0 && (_ = 55), P === void 0 && (P = 44100), y === void 0 && (y = 100), this.algorithms.PitchMelodia(v, i, o, t, f, d, r, h, n, s, c, M, g, C, E, L, _, P, y);
|
|
459
|
+
}, u.prototype.PitchSalience = function(v, i, o, t) {
|
|
460
|
+
return i === void 0 && (i = 5e3), o === void 0 && (o = 100), t === void 0 && (t = 44100), this.algorithms.PitchSalience(v, i, o, t);
|
|
461
|
+
}, u.prototype.PitchSalienceFunction = function(v, i, o, t, f, d, r, h) {
|
|
462
|
+
return o === void 0 && (o = 10), t === void 0 && (t = 0.8), f === void 0 && (f = 1), d === void 0 && (d = 40), r === void 0 && (r = 20), h === void 0 && (h = 55), this.algorithms.PitchSalienceFunction(v, i, o, t, f, d, r, h);
|
|
463
|
+
}, u.prototype.PitchSalienceFunctionPeaks = function(v, i, o, t, f) {
|
|
464
|
+
return i === void 0 && (i = 10), o === void 0 && (o = 1760), t === void 0 && (t = 55), f === void 0 && (f = 55), this.algorithms.PitchSalienceFunctionPeaks(v, i, o, t, f);
|
|
465
|
+
}, u.prototype.PitchYin = function(v, i, o, t, f, d, r) {
|
|
466
|
+
return i === void 0 && (i = 2048), o === void 0 && (o = !0), t === void 0 && (t = 22050), f === void 0 && (f = 20), d === void 0 && (d = 44100), r === void 0 && (r = 0.15), this.algorithms.PitchYin(v, i, o, t, f, d, r);
|
|
467
|
+
}, u.prototype.PitchYinFFT = function(v, i, o, t, f, d, r) {
|
|
468
|
+
return i === void 0 && (i = 2048), o === void 0 && (o = !0), t === void 0 && (t = 22050), f === void 0 && (f = 20), d === void 0 && (d = 44100), r === void 0 && (r = 1), this.algorithms.PitchYinFFT(v, i, o, t, f, d, r);
|
|
469
|
+
}, u.prototype.PitchYinProbabilistic = function(v, i, o, t, f, d, r) {
|
|
470
|
+
return i === void 0 && (i = 2048), o === void 0 && (o = 256), t === void 0 && (t = 0.1), f === void 0 && (f = "negative"), d === void 0 && (d = !1), r === void 0 && (r = 44100), this.algorithms.PitchYinProbabilistic(v, i, o, t, f, d, r);
|
|
471
|
+
}, u.prototype.PitchYinProbabilities = function(v, i, o, t, f) {
|
|
472
|
+
return i === void 0 && (i = 2048), o === void 0 && (o = 0.1), t === void 0 && (t = !1), f === void 0 && (f = 44100), this.algorithms.PitchYinProbabilities(v, i, o, t, f);
|
|
473
|
+
}, u.prototype.PitchYinProbabilitiesHMM = function(v, i, o, t, f, d) {
|
|
474
|
+
return o === void 0 && (o = 61.735), t === void 0 && (t = 5), f === void 0 && (f = 0.99), d === void 0 && (d = 0.5), this.algorithms.PitchYinProbabilitiesHMM(v, i, o, t, f, d);
|
|
475
|
+
}, u.prototype.PowerMean = function(v, i) {
|
|
476
|
+
return i === void 0 && (i = 1), this.algorithms.PowerMean(v, i);
|
|
477
|
+
}, u.prototype.PowerSpectrum = function(v, i) {
|
|
478
|
+
return i === void 0 && (i = 2048), this.algorithms.PowerSpectrum(v, i);
|
|
479
|
+
}, u.prototype.PredominantPitchMelodia = function(v, i, o, t, f, d, r, h, n, s, c, M, g, C, E, L, _, P, y, A, G) {
|
|
480
|
+
return i === void 0 && (i = 10), o === void 0 && (o = 3), t === void 0 && (t = 2048), f === void 0 && (f = !1), d === void 0 && (d = 0.8), r === void 0 && (r = 128), h === void 0 && (h = 1), n === void 0 && (n = 40), s === void 0 && (s = 2e4), c === void 0 && (c = 100), M === void 0 && (M = 80), g === void 0 && (g = 20), C === void 0 && (C = 0.9), E === void 0 && (E = 0.9), L === void 0 && (L = 27.5625), _ === void 0 && (_ = 55), P === void 0 && (P = 44100), y === void 0 && (y = 100), A === void 0 && (A = !1), G === void 0 && (G = 0.2), this.algorithms.PredominantPitchMelodia(v, i, o, t, f, d, r, h, n, s, c, M, g, C, E, L, _, P, y, A, G);
|
|
481
|
+
}, u.prototype.RMS = function(v) {
|
|
482
|
+
return this.algorithms.RMS(v);
|
|
483
|
+
}, u.prototype.RawMoments = function(v, i) {
|
|
484
|
+
return i === void 0 && (i = 22050), this.algorithms.RawMoments(v, i);
|
|
485
|
+
}, u.prototype.ReplayGain = function(v, i) {
|
|
486
|
+
return i === void 0 && (i = 44100), this.algorithms.ReplayGain(v, i);
|
|
487
|
+
}, u.prototype.Resample = function(v, i, o, t) {
|
|
488
|
+
return i === void 0 && (i = 44100), o === void 0 && (o = 44100), t === void 0 && (t = 1), this.algorithms.Resample(v, i, o, t);
|
|
489
|
+
}, u.prototype.ResampleFFT = function(v, i, o) {
|
|
490
|
+
return i === void 0 && (i = 128), o === void 0 && (o = 128), this.algorithms.ResampleFFT(v, i, o);
|
|
491
|
+
}, u.prototype.RhythmDescriptors = function(v) {
|
|
492
|
+
return this.algorithms.RhythmDescriptors(v);
|
|
493
|
+
}, u.prototype.RhythmExtractor = function(v, i, o, t, f, d, r, h, n, s, c, M, g) {
|
|
494
|
+
i === void 0 && (i = 1024), o === void 0 && (o = 1024), t === void 0 && (t = 256), f === void 0 && (f = 0.1), d === void 0 && (d = 208), r === void 0 && (r = 40), h === void 0 && (h = 1024), n === void 0 && (n = 44100), s === void 0 && (s = []), c === void 0 && (c = 0.24), M === void 0 && (M = !0), g === void 0 && (g = !0);
|
|
495
|
+
for (var C = new this.module.VectorFloat(), E = 0; E < C.size(); E++)
|
|
496
|
+
C.push_back(s[E]);
|
|
497
|
+
return this.algorithms.RhythmExtractor(v, i, o, t, f, d, r, h, n, C, c, M, g);
|
|
498
|
+
}, u.prototype.RhythmExtractor2013 = function(v, i, o, t) {
|
|
499
|
+
return i === void 0 && (i = 208), o === void 0 && (o = "multifeature"), t === void 0 && (t = 40), this.algorithms.RhythmExtractor2013(v, i, o, t);
|
|
500
|
+
}, u.prototype.RhythmTransform = function(v, i, o) {
|
|
501
|
+
return i === void 0 && (i = 256), o === void 0 && (o = 32), this.algorithms.RhythmTransform(v, i, o);
|
|
502
|
+
}, u.prototype.RollOff = function(v, i, o) {
|
|
503
|
+
return i === void 0 && (i = 0.85), o === void 0 && (o = 44100), this.algorithms.RollOff(v, i, o);
|
|
504
|
+
}, u.prototype.SNR = function(v, i, o, t, f, d, r, h) {
|
|
505
|
+
return i === void 0 && (i = 0.95), o === void 0 && (o = 0.98), t === void 0 && (t = 0.9), f === void 0 && (f = 512), d === void 0 && (d = -40), r === void 0 && (r = 44100), h === void 0 && (h = !0), this.algorithms.SNR(v, i, o, t, f, d, r, h);
|
|
506
|
+
}, u.prototype.SaturationDetector = function(v, i, o, t, f, d, r) {
|
|
507
|
+
return i === void 0 && (i = 1e-3), o === void 0 && (o = -1), t === void 0 && (t = 512), f === void 0 && (f = 256), d === void 0 && (d = 5e-3), r === void 0 && (r = 44100), this.algorithms.SaturationDetector(v, i, o, t, f, d, r);
|
|
508
|
+
}, u.prototype.Scale = function(v, i, o, t) {
|
|
509
|
+
return i === void 0 && (i = !0), o === void 0 && (o = 10), t === void 0 && (t = 1), this.algorithms.Scale(v, i, o, t);
|
|
510
|
+
}, u.prototype.SineSubtraction = function(v, i, o, t, f, d, r) {
|
|
511
|
+
return f === void 0 && (f = 512), d === void 0 && (d = 128), r === void 0 && (r = 44100), this.algorithms.SineSubtraction(v, i, o, t, f, d, r);
|
|
512
|
+
}, u.prototype.SingleBeatLoudness = function(v, i, o, t, f, d) {
|
|
513
|
+
i === void 0 && (i = 0.05), o === void 0 && (o = 0.1), t === void 0 && (t = [0, 200, 400, 800, 1600, 3200, 22e3]), f === void 0 && (f = "sumEnergy"), d === void 0 && (d = 44100);
|
|
514
|
+
for (var r = new this.module.VectorFloat(), h = 0; h < r.size(); h++)
|
|
515
|
+
r.push_back(t[h]);
|
|
516
|
+
return this.algorithms.SingleBeatLoudness(v, i, o, r, f, d);
|
|
517
|
+
}, u.prototype.Slicer = function(v, i, o, t, f) {
|
|
518
|
+
i === void 0 && (i = []), o === void 0 && (o = 44100), t === void 0 && (t = []), f === void 0 && (f = "seconds");
|
|
519
|
+
for (var d = new this.module.VectorFloat(), r = 0; r < d.size(); r++)
|
|
520
|
+
d.push_back(i[r]);
|
|
521
|
+
for (var h = new this.module.VectorFloat(), r = 0; r < h.size(); r++)
|
|
522
|
+
h.push_back(t[r]);
|
|
523
|
+
return this.algorithms.Slicer(v, d, o, h, f);
|
|
524
|
+
}, u.prototype.SpectralCentroidTime = function(v, i) {
|
|
525
|
+
return i === void 0 && (i = 44100), this.algorithms.SpectralCentroidTime(v, i);
|
|
526
|
+
}, u.prototype.SpectralComplexity = function(v, i, o) {
|
|
527
|
+
return i === void 0 && (i = 5e-3), o === void 0 && (o = 44100), this.algorithms.SpectralComplexity(v, i, o);
|
|
528
|
+
}, u.prototype.SpectralContrast = function(v, i, o, t, f, d, r, h) {
|
|
529
|
+
return i === void 0 && (i = 2048), o === void 0 && (o = 11e3), t === void 0 && (t = 20), f === void 0 && (f = 0.4), d === void 0 && (d = 6), r === void 0 && (r = 22050), h === void 0 && (h = 0.15), this.algorithms.SpectralContrast(v, i, o, t, f, d, r, h);
|
|
530
|
+
}, u.prototype.SpectralPeaks = function(v, i, o, t, f, d, r) {
|
|
531
|
+
return i === void 0 && (i = 0), o === void 0 && (o = 5e3), t === void 0 && (t = 100), f === void 0 && (f = 0), d === void 0 && (d = "frequency"), r === void 0 && (r = 44100), this.algorithms.SpectralPeaks(v, i, o, t, f, d, r);
|
|
532
|
+
}, u.prototype.SpectralWhitening = function(v, i, o, t, f) {
|
|
533
|
+
return t === void 0 && (t = 5e3), f === void 0 && (f = 44100), this.algorithms.SpectralWhitening(v, i, o, t, f);
|
|
534
|
+
}, u.prototype.Spectrum = function(v, i) {
|
|
535
|
+
return i === void 0 && (i = 2048), this.algorithms.Spectrum(v, i);
|
|
536
|
+
}, u.prototype.SpectrumCQ = function(v, i, o, t, f, d, r, h, n, s) {
|
|
537
|
+
return i === void 0 && (i = 12), o === void 0 && (o = 32.7), t === void 0 && (t = 4), f === void 0 && (f = 84), d === void 0 && (d = 44100), r === void 0 && (r = 1), h === void 0 && (h = 0.01), n === void 0 && (n = "hann"), s === void 0 && (s = !0), this.algorithms.SpectrumCQ(v, i, o, t, f, d, r, h, n, s);
|
|
538
|
+
}, u.prototype.SpectrumToCent = function(v, i, o, t, f, d, r, h, n) {
|
|
539
|
+
return i === void 0 && (i = 720), o === void 0 && (o = 10), t === void 0 && (t = 32768), f === void 0 && (f = !0), d === void 0 && (d = 164), r === void 0 && (r = "unit_sum"), h === void 0 && (h = 44100), n === void 0 && (n = "power"), this.algorithms.SpectrumToCent(v, i, o, t, f, d, r, h, n);
|
|
540
|
+
}, u.prototype.Spline = function(v, i, o, t, f, d) {
|
|
541
|
+
i === void 0 && (i = 1), o === void 0 && (o = 0), t === void 0 && (t = "b"), f === void 0 && (f = [0, 1]), d === void 0 && (d = [0, 1]);
|
|
542
|
+
for (var r = new this.module.VectorFloat(), h = 0; h < r.size(); h++)
|
|
543
|
+
r.push_back(f[h]);
|
|
544
|
+
for (var n = new this.module.VectorFloat(), h = 0; h < n.size(); h++)
|
|
545
|
+
n.push_back(d[h]);
|
|
546
|
+
return this.algorithms.Spline(v, i, o, t, r, n);
|
|
547
|
+
}, u.prototype.SprModelAnal = function(v, i, o, t, f, d, r, h, n, s, c, M) {
|
|
548
|
+
return i === void 0 && (i = 2048), o === void 0 && (o = 20), t === void 0 && (t = 0.01), f === void 0 && (f = 512), d === void 0 && (d = 0), r === void 0 && (r = 5e3), h === void 0 && (h = 100), n === void 0 && (n = 100), s === void 0 && (s = 0), c === void 0 && (c = "frequency"), M === void 0 && (M = 44100), this.algorithms.SprModelAnal(v, i, o, t, f, d, r, h, n, s, c, M);
|
|
549
|
+
}, u.prototype.SprModelSynth = function(v, i, o, t, f, d, r) {
|
|
550
|
+
return f === void 0 && (f = 2048), d === void 0 && (d = 512), r === void 0 && (r = 44100), this.algorithms.SprModelSynth(v, i, o, t, f, d, r);
|
|
551
|
+
}, u.prototype.SpsModelAnal = function(v, i, o, t, f, d, r, h, n, s, c, M, g) {
|
|
552
|
+
return i === void 0 && (i = 2048), o === void 0 && (o = 20), t === void 0 && (t = 0.01), f === void 0 && (f = 512), d === void 0 && (d = 0), r === void 0 && (r = 5e3), h === void 0 && (h = 100), n === void 0 && (n = 100), s === void 0 && (s = 0), c === void 0 && (c = "frequency"), M === void 0 && (M = 44100), g === void 0 && (g = 0.2), this.algorithms.SpsModelAnal(v, i, o, t, f, d, r, h, n, s, c, M, g);
|
|
553
|
+
}, u.prototype.SpsModelSynth = function(v, i, o, t, f, d, r, h) {
|
|
554
|
+
return f === void 0 && (f = 2048), d === void 0 && (d = 512), r === void 0 && (r = 44100), h === void 0 && (h = 0.2), this.algorithms.SpsModelSynth(v, i, o, t, f, d, r, h);
|
|
555
|
+
}, u.prototype.StartStopCut = function(v, i, o, t, f, d, r) {
|
|
556
|
+
return i === void 0 && (i = 256), o === void 0 && (o = 256), t === void 0 && (t = 10), f === void 0 && (f = 10), d === void 0 && (d = 44100), r === void 0 && (r = -60), this.algorithms.StartStopCut(v, i, o, t, f, d, r);
|
|
557
|
+
}, u.prototype.StartStopSilence = function(v, i) {
|
|
558
|
+
return i === void 0 && (i = -60), this.algorithms.StartStopSilence(v, i);
|
|
559
|
+
}, u.prototype.StochasticModelAnal = function(v, i, o, t, f) {
|
|
560
|
+
return i === void 0 && (i = 2048), o === void 0 && (o = 512), t === void 0 && (t = 44100), f === void 0 && (f = 0.2), this.algorithms.StochasticModelAnal(v, i, o, t, f);
|
|
561
|
+
}, u.prototype.StochasticModelSynth = function(v, i, o, t, f) {
|
|
562
|
+
return i === void 0 && (i = 2048), o === void 0 && (o = 512), t === void 0 && (t = 44100), f === void 0 && (f = 0.2), this.algorithms.StochasticModelSynth(v, i, o, t, f);
|
|
563
|
+
}, u.prototype.StrongDecay = function(v, i) {
|
|
564
|
+
return i === void 0 && (i = 44100), this.algorithms.StrongDecay(v, i);
|
|
565
|
+
}, u.prototype.StrongPeak = function(v) {
|
|
566
|
+
return this.algorithms.StrongPeak(v);
|
|
567
|
+
}, u.prototype.SuperFluxExtractor = function(v, i, o, t, f, d, r) {
|
|
568
|
+
return i === void 0 && (i = 20), o === void 0 && (o = 2048), t === void 0 && (t = 256), f === void 0 && (f = 16), d === void 0 && (d = 44100), r === void 0 && (r = 0.05), this.algorithms.SuperFluxExtractor(v, i, o, t, f, d, r);
|
|
569
|
+
}, u.prototype.SuperFluxNovelty = function(v, i, o) {
|
|
570
|
+
return i === void 0 && (i = 3), o === void 0 && (o = 2), this.algorithms.SuperFluxNovelty(v, i, o);
|
|
571
|
+
}, u.prototype.SuperFluxPeaks = function(v, i, o, t, f, d, r) {
|
|
572
|
+
return i === void 0 && (i = 30), o === void 0 && (o = 172), t === void 0 && (t = 100), f === void 0 && (f = 30), d === void 0 && (d = 16), r === void 0 && (r = 0.05), this.algorithms.SuperFluxPeaks(v, i, o, t, f, d, r);
|
|
573
|
+
}, u.prototype.TCToTotal = function(v) {
|
|
574
|
+
return this.algorithms.TCToTotal(v);
|
|
575
|
+
}, u.prototype.TempoScaleBands = function(v, i, o) {
|
|
576
|
+
i === void 0 && (i = [2, 3, 2, 1, 1.20000004768, 2, 3, 2.5]), o === void 0 && (o = 512);
|
|
577
|
+
for (var t = new this.module.VectorFloat(), f = 0; f < t.size(); f++)
|
|
578
|
+
t.push_back(i[f]);
|
|
579
|
+
return this.algorithms.TempoScaleBands(v, t, o);
|
|
580
|
+
}, u.prototype.TempoTap = function(v, i, o, t, f, d, r, h) {
|
|
581
|
+
i === void 0 && (i = 1024), o === void 0 && (o = 256), t === void 0 && (t = 208), f === void 0 && (f = 40), d === void 0 && (d = 1024), r === void 0 && (r = 44100), h === void 0 && (h = []);
|
|
582
|
+
for (var n = new this.module.VectorFloat(), s = 0; s < n.size(); s++)
|
|
583
|
+
n.push_back(h[s]);
|
|
584
|
+
return this.algorithms.TempoTap(v, i, o, t, f, d, r, n);
|
|
585
|
+
}, u.prototype.TempoTapDegara = function(v, i, o, t, f) {
|
|
586
|
+
return i === void 0 && (i = 208), o === void 0 && (o = 40), t === void 0 && (t = "none"), f === void 0 && (f = 86.1328), this.algorithms.TempoTapDegara(v, i, o, t, f);
|
|
587
|
+
}, u.prototype.TempoTapMaxAgreement = function(v) {
|
|
588
|
+
return this.algorithms.TempoTapMaxAgreement(v);
|
|
589
|
+
}, u.prototype.TempoTapTicks = function(v, i, o, t, f) {
|
|
590
|
+
return o === void 0 && (o = 512), t === void 0 && (t = 256), f === void 0 && (f = 44100), this.algorithms.TempoTapTicks(v, i, o, t, f);
|
|
591
|
+
}, u.prototype.TensorflowInputMusiCNN = function(v) {
|
|
592
|
+
return this.algorithms.TensorflowInputMusiCNN(v);
|
|
593
|
+
}, u.prototype.TensorflowInputVGGish = function(v) {
|
|
594
|
+
return this.algorithms.TensorflowInputVGGish(v);
|
|
595
|
+
}, u.prototype.TonalExtractor = function(v, i, o, t) {
|
|
596
|
+
return i === void 0 && (i = 4096), o === void 0 && (o = 2048), t === void 0 && (t = 440), this.algorithms.TonalExtractor(v, i, o, t);
|
|
597
|
+
}, u.prototype.TonicIndianArtMusic = function(v, i, o, t, f, d, r, h, n, s, c, M, g) {
|
|
598
|
+
return i === void 0 && (i = 10), o === void 0 && (o = 2048), t === void 0 && (t = 0.85), f === void 0 && (f = 512), d === void 0 && (d = 1), r === void 0 && (r = 40), h === void 0 && (h = 375), n === void 0 && (n = 100), s === void 0 && (s = 20), c === void 0 && (c = 5), M === void 0 && (M = 55), g === void 0 && (g = 44100), this.algorithms.TonicIndianArtMusic(v, i, o, t, f, d, r, h, n, s, c, M, g);
|
|
599
|
+
}, u.prototype.TriangularBands = function(v, i, o, t, f, d, r, h) {
|
|
600
|
+
i === void 0 && (i = [21.533203125, 43.06640625, 64.599609375, 86.1328125, 107.666015625, 129.19921875, 150.732421875, 172.265625, 193.798828125, 215.33203125, 236.865234375, 258.3984375, 279.931640625, 301.46484375, 322.998046875, 344.53125, 366.064453125, 387.59765625, 409.130859375, 430.6640625, 452.197265625, 473.73046875, 495.263671875, 516.796875, 538.330078125, 559.86328125, 581.396484375, 602.9296875, 624.462890625, 645.99609375, 667.529296875, 689.0625, 710.595703125, 732.12890625, 753.662109375, 775.1953125, 796.728515625, 839.794921875, 861.328125, 882.861328125, 904.39453125, 925.927734375, 968.994140625, 990.52734375, 1012.06054688, 1055.12695312, 1076.66015625, 1098.19335938, 1141.25976562, 1184.32617188, 1205.859375, 1248.92578125, 1270.45898438, 1313.52539062, 1356.59179688, 1399.65820312, 1442.72460938, 1485.79101562, 1528.85742188, 1571.92382812, 1614.99023438, 1658.05664062, 1701.12304688, 1765.72265625, 1808.7890625, 1873.38867188, 1916.45507812, 1981.0546875, 2024.12109375, 2088.72070312, 2153.3203125, 2217.91992188, 2282.51953125, 2347.11914062, 2411.71875, 2497.8515625, 2562.45117188, 2627.05078125, 2713.18359375, 2799.31640625, 2885.44921875, 2950.04882812, 3036.18164062, 3143.84765625, 3229.98046875, 3316.11328125, 3423.77929688, 3509.91210938, 3617.578125, 3725.24414062, 3832.91015625, 3940.57617188, 4069.77539062, 4177.44140625, 4306.640625, 4435.83984375, 4565.0390625, 4694.23828125, 4844.97070312, 4974.16992188, 5124.90234375, 5275.63476562, 5426.3671875, 5577.09960938, 5749.36523438, 5921.63085938, 6093.89648438, 6266.16210938, 6459.9609375, 6653.75976562, 6847.55859375, 7041.35742188, 7256.68945312, 7450.48828125, 7687.35351562, 7902.68554688, 8139.55078125, 8376.41601562, 8613.28125, 8871.6796875, 9130.078125, 9388.4765625, 9668.40820312, 9948.33984375, 10249.8046875, 10551.2695312, 10852.734375, 11175.7324219, 11498.7304688, 11843.2617188, 12187.7929688, 12553.8574219, 12919.921875, 13285.9863281, 13673.5839844, 14082.7148438, 14491.8457031, 14922.5097656, 15353.1738281, 15805.3710938, 16257.5683594]), o === void 0 && (o = 1025), t === void 0 && (t = !0), f === void 0 && (f = "unit_sum"), d === void 0 && (d = 44100), r === void 0 && (r = "power"), h === void 0 && (h = "linear");
|
|
601
|
+
for (var n = new this.module.VectorFloat(), s = 0; s < n.size(); s++)
|
|
602
|
+
n.push_back(i[s]);
|
|
603
|
+
return this.algorithms.TriangularBands(v, n, o, t, f, d, r, h);
|
|
604
|
+
}, u.prototype.TriangularBarkBands = function(v, i, o, t, f, d, r, h, n, s) {
|
|
605
|
+
return i === void 0 && (i = 22050), o === void 0 && (o = 1025), t === void 0 && (t = !1), f === void 0 && (f = 0), d === void 0 && (d = "unit_sum"), r === void 0 && (r = 24), h === void 0 && (h = 44100), n === void 0 && (n = "power"), s === void 0 && (s = "warping"), this.algorithms.TriangularBarkBands(v, i, o, t, f, d, r, h, n, s);
|
|
606
|
+
}, u.prototype.Trimmer = function(v, i, o, t, f) {
|
|
607
|
+
return i === void 0 && (i = !1), o === void 0 && (o = 1e6), t === void 0 && (t = 44100), f === void 0 && (f = 0), this.algorithms.Trimmer(v, i, o, t, f);
|
|
608
|
+
}, u.prototype.Tristimulus = function(v, i) {
|
|
609
|
+
return this.algorithms.Tristimulus(v, i);
|
|
610
|
+
}, u.prototype.TruePeakDetector = function(v, i, o, t, f, d, r, h) {
|
|
611
|
+
return i === void 0 && (i = !1), o === void 0 && (o = !1), t === void 0 && (t = 4), f === void 0 && (f = 1), d === void 0 && (d = 44100), r === void 0 && (r = -2e-4), h === void 0 && (h = 4), this.algorithms.TruePeakDetector(v, i, o, t, f, d, r, h);
|
|
612
|
+
}, u.prototype.TuningFrequency = function(v, i, o) {
|
|
613
|
+
return o === void 0 && (o = 1), this.algorithms.TuningFrequency(v, i, o);
|
|
614
|
+
}, u.prototype.TuningFrequencyExtractor = function(v, i, o) {
|
|
615
|
+
return i === void 0 && (i = 4096), o === void 0 && (o = 2048), this.algorithms.TuningFrequencyExtractor(v, i, o);
|
|
616
|
+
}, u.prototype.UnaryOperator = function(v, i, o, t) {
|
|
617
|
+
return i === void 0 && (i = 1), o === void 0 && (o = 0), t === void 0 && (t = "identity"), this.algorithms.UnaryOperator(v, i, o, t);
|
|
618
|
+
}, u.prototype.UnaryOperatorStream = function(v, i, o, t) {
|
|
619
|
+
return i === void 0 && (i = 1), o === void 0 && (o = 0), t === void 0 && (t = "identity"), this.algorithms.UnaryOperatorStream(v, i, o, t);
|
|
620
|
+
}, u.prototype.Variance = function(v) {
|
|
621
|
+
return this.algorithms.Variance(v);
|
|
622
|
+
}, u.prototype.Vibrato = function(v, i, o, t, f, d) {
|
|
623
|
+
return i === void 0 && (i = 250), o === void 0 && (o = 8), t === void 0 && (t = 50), f === void 0 && (f = 4), d === void 0 && (d = 344.531), this.algorithms.Vibrato(v, i, o, t, f, d);
|
|
624
|
+
}, u.prototype.WarpedAutoCorrelation = function(v, i, o) {
|
|
625
|
+
return i === void 0 && (i = 1), o === void 0 && (o = 44100), this.algorithms.WarpedAutoCorrelation(v, i, o);
|
|
626
|
+
}, u.prototype.Welch = function(v, i, o, t, f, d, r) {
|
|
627
|
+
return i === void 0 && (i = 10), o === void 0 && (o = 1024), t === void 0 && (t = 512), f === void 0 && (f = 44100), d === void 0 && (d = "density"), r === void 0 && (r = "hann"), this.algorithms.Welch(v, i, o, t, f, d, r);
|
|
628
|
+
}, u.prototype.Windowing = function(v, i, o, t, f, d) {
|
|
629
|
+
return i === void 0 && (i = !0), o === void 0 && (o = 1024), t === void 0 && (t = "hann"), f === void 0 && (f = 0), d === void 0 && (d = !0), this.algorithms.Windowing(v, i, o, t, f, d);
|
|
630
|
+
}, u.prototype.ZeroCrossingRate = function(v, i) {
|
|
631
|
+
return i === void 0 && (i = 0), this.algorithms.ZeroCrossingRate(v, i);
|
|
632
|
+
}, u;
|
|
633
|
+
}()
|
|
634
|
+
);
|
|
635
|
+
export {
|
|
636
|
+
Y as default
|
|
637
|
+
};
|
|
638
|
+
//# sourceMappingURL=essentia.js-core.es-CC_3Ap1i.js.map
|