/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
function V(u, v, i, o) {
  return new (i || (i = Promise))(function(t, f) {
    function d(n) {
      try {
        h(o.next(n));
      } catch (s) {
        f(s);
      }
    }
    function r(n) {
      try {
        h(o.throw(n));
      } catch (s) {
        f(s);
      }
    }
    function h(n) {
      n.done ? t(n.value) : new i(function(s) {
        s(n.value);
      }).then(d, r);
    }
    h((o = o.apply(u, [])).next());
  });
}
function N(u, v) {
  var i = { label: 0, sent: function() {
    if (f[0] & 1) throw f[1];
    return f[1];
  }, trys: [], ops: [] }, o, t, f, d;
  return d = { next: r(0), throw: r(1), return: r(2) }, typeof Symbol == "function" && (d[Symbol.iterator] = function() {
    return this;
  }), d;
  function r(n) {
    return function(s) {
      return h([n, s]);
    };
  }
  function h(n) {
    if (o) throw new TypeError("Generator is already executing.");
    for (; i; ) try {
      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;
      switch (t = 0, f && (n = [n[0] & 2, f.value]), n[0]) {
        case 0:
        case 1:
          f = n;
          break;
        case 4:
          return i.label++, { value: n[1], done: !1 };
        case 5:
          i.label++, t = n[1], n = [0];
          continue;
        case 7:
          n = i.ops.pop(), i.trys.pop();
          continue;
        default:
          if (f = i.trys, !(f = f.length > 0 && f[f.length - 1]) && (n[0] === 6 || n[0] === 2)) {
            i = 0;
            continue;
          }
          if (n[0] === 3 && (!f || n[1] > f[0] && n[1] < f[3])) {
            i.label = n[1];
            break;
          }
          if (n[0] === 6 && i.label < f[1]) {
            i.label = f[1], f = n;
            break;
          }
          if (f && i.label < f[2]) {
            i.label = f[2], i.ops.push(n);
            break;
          }
          f[2] && i.ops.pop(), i.trys.pop();
          continue;
      }
      n = v.call(u, i);
    } catch (s) {
      n = [6, s], t = 0;
    } finally {
      o = f = 0;
    }
    if (n[0] & 5) throw n[1];
    return { value: n[0] ? n[1] : void 0, done: !0 };
  }
}
/**
 * @license
 * Copyright (C) 2006-2020  Music Technology Group - Universitat Pompeu Fabra
 *
 * This file is part of Essentia
 *
 * Essentia is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation (FSF), either version 3 of the License, or (at your
 * option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
 * details.
 *
 * You should have received a copy of the Affero GNU General Public License
 * version 3 along with this program.  If not, see http://www.gnu.org/licenses/
 */
var Y = (
  /** @class */
  function() {
    function u(v, i) {
      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;
    }
    return u.prototype.getAudioBufferFromURL = function(v, i) {
      return V(this, void 0, void 0, function() {
        var o, t, f;
        return N(this, function(d) {
          switch (d.label) {
            case 0:
              return [4, fetch(v)];
            case 1:
              return o = d.sent(), [4, o.arrayBuffer()];
            case 2:
              return t = d.sent(), [4, i.decodeAudioData(t)];
            case 3:
              return f = d.sent(), [2, f];
          }
        });
      });
    }, u.prototype.getAudioChannelDataFromURL = function(v, i, o) {
      return o === void 0 && (o = 0), V(this, void 0, void 0, function() {
        var t, f, d;
        return N(this, function(r) {
          switch (r.label) {
            case 0:
              return [4, fetch(v)];
            case 1:
              return t = r.sent(), [4, t.arrayBuffer()];
            case 2:
              return f = r.sent(), [4, i.decodeAudioData(f)];
            case 3:
              return d = r.sent(), [2, d.getChannelData(o)];
          }
        });
      });
    }, u.prototype.audioBufferToMonoSignal = function(v) {
      if (v.numberOfChannels === 1)
        return v.getChannelData(0);
      if (v.numberOfChannels === 2) {
        var i = this.arrayToVector(v.getChannelData(0)), o = this.arrayToVector(v.getChannelData(1)), t = this.MonoMixer(i, o).audio;
        return this.vectorToArray(t);
      }
      throw new Error("Unexpected number of channels found in audio buffer. Only accepts mono or stereo audio buffers.");
    }, u.prototype.shutdown = function() {
      this.algorithms.shutdown();
    }, u.prototype.reinstantiate = function() {
      this.algorithms = new this.module.EssentiaJS(this.isDebug);
    }, u.prototype.delete = function() {
      this.algorithms.delete();
    }, u.prototype.arrayToVector = function(v) {
      return this.module.arrayToVector(v);
    }, u.prototype.vectorToArray = function(v) {
      return this.module.vectorToArray(v);
    }, u.prototype.FrameGenerator = function(v, i, o) {
      return i === void 0 && (i = 2048), o === void 0 && (o = 1024), this.algorithms.FrameGenerator(v, i, o);
    }, u.prototype.MonoMixer = function(v, i) {
      return this.algorithms.MonoMixer(v, i);
    }, u.prototype.LoudnessEBUR128 = function(v, i, o, t, f) {
      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);
    }, u.prototype.AfterMaxToBeforeMaxEnergyRatio = function(v) {
      return this.algorithms.AfterMaxToBeforeMaxEnergyRatio(v);
    }, u.prototype.AllPass = function(v, i, o, t, f) {
      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);
    }, u.prototype.AudioOnsetsMarker = function(v, i, o, t) {
      i === void 0 && (i = []), o === void 0 && (o = 44100), t === void 0 && (t = "beep");
      for (var f = new this.module.VectorFloat(), d = 0; d < f.size(); d++)
        f.push_back(i[d]);
      return this.algorithms.AudioOnsetsMarker(v, f, o, t);
    }, u.prototype.AutoCorrelation = function(v, i, o, t) {
      return i === void 0 && (i = 0.5), o === void 0 && (o = !1), t === void 0 && (t = "standard"), this.algorithms.AutoCorrelation(v, i, o, t);
    }, u.prototype.BFCC = function(v, i, o, t, f, d, r, h, n, s, c, M, g) {
      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);
    }, u.prototype.BPF = function(v, i, o) {
      i === void 0 && (i = [0, 1]), o === void 0 && (o = [0, 1]);
      for (var t = new this.module.VectorFloat(), f = 0; f < t.size(); f++)
        t.push_back(i[f]);
      for (var d = new this.module.VectorFloat(), f = 0; f < d.size(); f++)
        d.push_back(o[f]);
      return this.algorithms.BPF(v, t, d);
    }, u.prototype.BandPass = function(v, i, o, t) {
      return i === void 0 && (i = 500), o === void 0 && (o = 1500), t === void 0 && (t = 44100), this.algorithms.BandPass(v, i, o, t);
    }, u.prototype.BandReject = function(v, i, o, t) {
      return i === void 0 && (i = 500), o === void 0 && (o = 1500), t === void 0 && (t = 44100), this.algorithms.BandReject(v, i, o, t);
    }, u.prototype.BarkBands = function(v, i, o) {
      return i === void 0 && (i = 27), o === void 0 && (o = 44100), this.algorithms.BarkBands(v, i, o);
    }, u.prototype.BeatTrackerDegara = function(v, i, o) {
      return i === void 0 && (i = 208), o === void 0 && (o = 40), this.algorithms.BeatTrackerDegara(v, i, o);
    }, u.prototype.BeatTrackerMultiFeature = function(v, i, o) {
      return i === void 0 && (i = 208), o === void 0 && (o = 40), this.algorithms.BeatTrackerMultiFeature(v, i, o);
    }, u.prototype.Beatogram = function(v, i, o) {
      return o === void 0 && (o = 16), this.algorithms.Beatogram(v, i, o);
    }, u.prototype.BeatsLoudness = function(v, i, o, t, f, d) {
      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);
      for (var r = new this.module.VectorFloat(), h = 0; h < r.size(); h++)
        r.push_back(t[h]);
      for (var n = new this.module.VectorFloat(), h = 0; h < n.size(); h++)
        n.push_back(f[h]);
      return this.algorithms.BeatsLoudness(v, i, o, r, n, d);
    }, u.prototype.BinaryOperator = function(v, i, o) {
      return o === void 0 && (o = "add"), this.algorithms.BinaryOperator(v, i, o);
    }, u.prototype.BinaryOperatorStream = function(v, i, o) {
      return o === void 0 && (o = "add"), this.algorithms.BinaryOperatorStream(v, i, o);
    }, u.prototype.BpmHistogramDescriptors = function(v) {
      return this.algorithms.BpmHistogramDescriptors(v);
    }, u.prototype.BpmRubato = function(v, i, o, t) {
      return i === void 0 && (i = 20), o === void 0 && (o = 4), t === void 0 && (t = 0.08), this.algorithms.BpmRubato(v, i, o, t);
    }, u.prototype.CentralMoments = function(v, i, o) {
      return i === void 0 && (i = "pdf"), o === void 0 && (o = 1), this.algorithms.CentralMoments(v, i, o);
    }, u.prototype.Centroid = function(v, i) {
      return i === void 0 && (i = 1), this.algorithms.Centroid(v, i);
    }, u.prototype.ChordsDescriptors = function(v, i, o) {
      return this.algorithms.ChordsDescriptors(v, i, o);
    }, u.prototype.ChordsDetection = function(v, i, o, t) {
      return i === void 0 && (i = 2048), o === void 0 && (o = 44100), t === void 0 && (t = 2), this.algorithms.ChordsDetection(v, i, o, t);
    }, u.prototype.ChordsDetectionBeats = function(v, i, o, t, f) {
      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);
    }, u.prototype.ChromaCrossSimilarity = function(v, i, o, t, f, d, r, h, n) {
      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);
    }, u.prototype.Chromagram = function(v, i, o, t, f, d, r, h, n, s, c) {
      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);
    }, u.prototype.ClickDetector = function(v, i, o, t, f, d, r, h) {
      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);
    }, u.prototype.Clipper = function(v, i, o) {
      return i === void 0 && (i = 1), o === void 0 && (o = -1), this.algorithms.Clipper(v, i, o);
    }, u.prototype.CoverSongSimilarity = function(v, i, o, t, f) {
      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);
    }, u.prototype.Crest = function(v) {
      return this.algorithms.Crest(v);
    }, u.prototype.CrossCorrelation = function(v, i, o, t) {
      return o === void 0 && (o = 1), t === void 0 && (t = 0), this.algorithms.CrossCorrelation(v, i, o, t);
    }, u.prototype.CrossSimilarityMatrix = function(v, i, o, t, f, d) {
      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);
    }, u.prototype.CubicSpline = function(v, i, o, t, f, d, r) {
      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]);
      for (var h = new this.module.VectorFloat(), n = 0; n < h.size(); n++)
        h.push_back(d[n]);
      for (var s = new this.module.VectorFloat(), n = 0; n < s.size(); n++)
        s.push_back(r[n]);
      return this.algorithms.CubicSpline(v, i, o, t, f, h, s);
    }, u.prototype.DCRemoval = function(v, i, o) {
      return i === void 0 && (i = 40), o === void 0 && (o = 44100), this.algorithms.DCRemoval(v, i, o);
    }, u.prototype.DCT = function(v, i, o, t, f) {
      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);
    }, u.prototype.Danceability = function(v, i, o, t, f) {
      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);
    }, u.prototype.Decrease = function(v, i) {
      return i === void 0 && (i = 1), this.algorithms.Decrease(v, i);
    }, u.prototype.Derivative = function(v) {
      return this.algorithms.Derivative(v);
    }, u.prototype.DerivativeSFX = function(v) {
      return this.algorithms.DerivativeSFX(v);
    }, u.prototype.DiscontinuityDetector = function(v, i, o, t, f, d, r, h, n) {
      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);
    }, u.prototype.Dissonance = function(v, i) {
      return this.algorithms.Dissonance(v, i);
    }, u.prototype.DistributionShape = function(v) {
      return this.algorithms.DistributionShape(v);
    }, u.prototype.Duration = function(v, i) {
      return i === void 0 && (i = 44100), this.algorithms.Duration(v, i);
    }, u.prototype.DynamicComplexity = function(v, i, o) {
      return i === void 0 && (i = 0.2), o === void 0 && (o = 44100), this.algorithms.DynamicComplexity(v, i, o);
    }, u.prototype.ERBBands = function(v, i, o, t, f, d, r, h) {
      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);
    }, u.prototype.EffectiveDuration = function(v, i, o) {
      return i === void 0 && (i = 44100), o === void 0 && (o = 0.4), this.algorithms.EffectiveDuration(v, i, o);
    }, u.prototype.Energy = function(v) {
      return this.algorithms.Energy(v);
    }, u.prototype.EnergyBand = function(v, i, o, t) {
      return i === void 0 && (i = 44100), o === void 0 && (o = 0), t === void 0 && (t = 100), this.algorithms.EnergyBand(v, i, o, t);
    }, u.prototype.EnergyBandRatio = function(v, i, o, t) {
      return i === void 0 && (i = 44100), o === void 0 && (o = 0), t === void 0 && (t = 100), this.algorithms.EnergyBandRatio(v, i, o, t);
    }, u.prototype.Entropy = function(v) {
      return this.algorithms.Entropy(v);
    }, u.prototype.Envelope = function(v, i, o, t, f) {
      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);
    }, u.prototype.EqualLoudness = function(v, i) {
      return i === void 0 && (i = 44100), this.algorithms.EqualLoudness(v, i);
    }, u.prototype.Flatness = function(v) {
      return this.algorithms.Flatness(v);
    }, u.prototype.FlatnessDB = function(v) {
      return this.algorithms.FlatnessDB(v);
    }, u.prototype.FlatnessSFX = function(v) {
      return this.algorithms.FlatnessSFX(v);
    }, u.prototype.Flux = function(v, i, o) {
      return i === void 0 && (i = !1), o === void 0 && (o = "L2"), this.algorithms.Flux(v, i, o);
    }, u.prototype.FrameCutter = function(v, i, o, t, f, d) {
      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);
    }, u.prototype.FrameToReal = function(v, i, o) {
      return i === void 0 && (i = 2048), o === void 0 && (o = 128), this.algorithms.FrameToReal(v, i, o);
    }, u.prototype.FrequencyBands = function(v, i, o) {
      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);
      for (var t = new this.module.VectorFloat(), f = 0; f < t.size(); f++)
        t.push_back(i[f]);
      return this.algorithms.FrequencyBands(v, t, o);
    }, u.prototype.GFCC = function(v, i, o, t, f, d, r, h, n, s, c) {
      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);
    }, u.prototype.GapsDetector = function(v, i, o, t, f, d, r, h, n, s, c, M, g) {
      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);
    }, u.prototype.GeometricMean = function(v) {
      return this.algorithms.GeometricMean(v);
    }, u.prototype.HFC = function(v, i, o) {
      return i === void 0 && (i = 44100), o === void 0 && (o = "Masri"), this.algorithms.HFC(v, i, o);
    }, u.prototype.HPCP = function(v, i, o, t, f, d, r, h, n, s, c, M, g, C, E) {
      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);
    }, u.prototype.HarmonicBpm = function(v, i, o, t) {
      return i === void 0 && (i = 60), o === void 0 && (o = 20), t === void 0 && (t = 5), this.algorithms.HarmonicBpm(v, i, o, t);
    }, u.prototype.HarmonicPeaks = function(v, i, o, t, f) {
      return t === void 0 && (t = 20), f === void 0 && (f = 0.2), this.algorithms.HarmonicPeaks(v, i, o, t, f);
    }, u.prototype.HighPass = function(v, i, o) {
      return i === void 0 && (i = 1500), o === void 0 && (o = 44100), this.algorithms.HighPass(v, i, o);
    }, u.prototype.HighResolutionFeatures = function(v, i) {
      return i === void 0 && (i = 24), this.algorithms.HighResolutionFeatures(v, i);
    }, u.prototype.Histogram = function(v, i, o, t, f) {
      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);
    }, u.prototype.HprModelAnal = function(v, i, o, t, f, d, r, h, n, s, c, M, g, C, E, L) {
      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);
    }, u.prototype.HpsModelAnal = function(v, i, o, t, f, d, r, h, n, s, c, M, g, C, E, L) {
      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);
    }, u.prototype.IDCT = function(v, i, o, t, f) {
      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);
    }, u.prototype.IIR = function(v, i, o) {
      i === void 0 && (i = [1]), o === void 0 && (o = [1]);
      for (var t = new this.module.VectorFloat(), f = 0; f < t.size(); f++)
        t.push_back(i[f]);
      for (var d = new this.module.VectorFloat(), f = 0; f < d.size(); f++)
        d.push_back(o[f]);
      return this.algorithms.IIR(v, t, d);
    }, u.prototype.Inharmonicity = function(v, i) {
      return this.algorithms.Inharmonicity(v, i);
    }, u.prototype.InstantPower = function(v) {
      return this.algorithms.InstantPower(v);
    }, u.prototype.Intensity = function(v, i) {
      return i === void 0 && (i = 44100), this.algorithms.Intensity(v, i);
    }, u.prototype.Key = function(v, i, o, t, f, d, r, h) {
      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);
    }, u.prototype.KeyExtractor = function(v, i, o, t, f, d, r, h, n, s, c, M, g, C, E) {
      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);
    }, u.prototype.LPC = function(v, i, o, t) {
      return i === void 0 && (i = 10), o === void 0 && (o = 44100), t === void 0 && (t = "regular"), this.algorithms.LPC(v, i, o, t);
    }, u.prototype.Larm = function(v, i, o, t, f) {
      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);
    }, u.prototype.Leq = function(v) {
      return this.algorithms.Leq(v);
    }, u.prototype.LevelExtractor = function(v, i, o) {
      return i === void 0 && (i = 88200), o === void 0 && (o = 44100), this.algorithms.LevelExtractor(v, i, o);
    }, u.prototype.LogAttackTime = function(v, i, o, t) {
      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);
    }, u.prototype.LogSpectrum = function(v, i, o, t, f) {
      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);
    }, u.prototype.LoopBpmConfidence = function(v, i, o) {
      return o === void 0 && (o = 44100), this.algorithms.LoopBpmConfidence(v, i, o);
    }, u.prototype.LoopBpmEstimator = function(v, i) {
      return i === void 0 && (i = 0.95), this.algorithms.LoopBpmEstimator(v, i);
    }, u.prototype.Loudness = function(v) {
      return this.algorithms.Loudness(v);
    }, u.prototype.LoudnessVickers = function(v, i) {
      return i === void 0 && (i = 44100), this.algorithms.LoudnessVickers(v, i);
    }, u.prototype.LowLevelSpectralEqloudExtractor = function(v, i, o, t) {
      return i === void 0 && (i = 2048), o === void 0 && (o = 1024), t === void 0 && (t = 44100), this.algorithms.LowLevelSpectralEqloudExtractor(v, i, o, t);
    }, u.prototype.LowLevelSpectralExtractor = function(v, i, o, t) {
      return i === void 0 && (i = 2048), o === void 0 && (o = 1024), t === void 0 && (t = 44100), this.algorithms.LowLevelSpectralExtractor(v, i, o, t);
    }, u.prototype.LowPass = function(v, i, o) {
      return i === void 0 && (i = 1500), o === void 0 && (o = 44100), this.algorithms.LowPass(v, i, o);
    }, u.prototype.MFCC = function(v, i, o, t, f, d, r, h, n, s, c, M, g, C, E) {
      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);
    }, u.prototype.MaxFilter = function(v, i, o) {
      return i === void 0 && (i = !0), o === void 0 && (o = 3), this.algorithms.MaxFilter(v, i, o);
    }, u.prototype.MaxMagFreq = function(v, i) {
      return i === void 0 && (i = 44100), this.algorithms.MaxMagFreq(v, i);
    }, u.prototype.MaxToTotal = function(v) {
      return this.algorithms.MaxToTotal(v);
    }, u.prototype.Mean = function(v) {
      return this.algorithms.Mean(v);
    }, u.prototype.Median = function(v) {
      return this.algorithms.Median(v);
    }, u.prototype.MedianFilter = function(v, i) {
      return i === void 0 && (i = 11), this.algorithms.MedianFilter(v, i);
    }, u.prototype.MelBands = function(v, i, o, t, f, d, r, h, n, s, c) {
      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);
    }, u.prototype.Meter = function(v) {
      return this.algorithms.Meter(v);
    }, u.prototype.MinMax = function(v, i) {
      return i === void 0 && (i = "min"), this.algorithms.MinMax(v, i);
    }, u.prototype.MinToTotal = function(v) {
      return this.algorithms.MinToTotal(v);
    }, u.prototype.MovingAverage = function(v, i) {
      return i === void 0 && (i = 6), this.algorithms.MovingAverage(v, i);
    }, u.prototype.MultiPitchKlapuri = function(v, i, o, t, f, d, r, h, n, s, c, M) {
      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);
    }, u.prototype.MultiPitchMelodia = function(v, i, o, t, f, d, r, h, n, s, c, M, g, C, E, L, _, P, y) {
      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);
    }, u.prototype.Multiplexer = function(v, i) {
      return v === void 0 && (v = 0), i === void 0 && (i = 0), this.algorithms.Multiplexer(v, i);
    }, u.prototype.NNLSChroma = function(v, i, o, t, f, d, r, h, n, s) {
      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);
    }, u.prototype.NoiseAdder = function(v, i, o) {
      return i === void 0 && (i = !1), o === void 0 && (o = -100), this.algorithms.NoiseAdder(v, i, o);
    }, u.prototype.NoiseBurstDetector = function(v, i, o, t) {
      return i === void 0 && (i = 0.9), o === void 0 && (o = -50), t === void 0 && (t = 8), this.algorithms.NoiseBurstDetector(v, i, o, t);
    }, u.prototype.NoveltyCurve = function(v, i, o, t, f) {
      i === void 0 && (i = 344.531), o === void 0 && (o = !1), t === void 0 && (t = []), f === void 0 && (f = "hybrid");
      for (var d = new this.module.VectorFloat(), r = 0; r < d.size(); r++)
        d.push_back(t[r]);
      return this.algorithms.NoveltyCurve(v, i, o, d, f);
    }, u.prototype.NoveltyCurveFixedBpmEstimator = function(v, i, o, t, f, d) {
      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);
    }, u.prototype.OddToEvenHarmonicEnergyRatio = function(v, i) {
      return this.algorithms.OddToEvenHarmonicEnergyRatio(v, i);
    }, u.prototype.OnsetDetection = function(v, i, o, t) {
      return o === void 0 && (o = "hfc"), t === void 0 && (t = 44100), this.algorithms.OnsetDetection(v, i, o, t);
    }, u.prototype.OnsetDetectionGlobal = function(v, i, o, t, f) {
      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);
    }, u.prototype.OnsetRate = function(v) {
      return this.algorithms.OnsetRate(v);
    }, u.prototype.OverlapAdd = function(v, i, o, t) {
      return i === void 0 && (i = 2048), o === void 0 && (o = 1), t === void 0 && (t = 128), this.algorithms.OverlapAdd(v, i, o, t);
    }, u.prototype.PeakDetection = function(v, i, o, t, f, d, r, h, n) {
      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);
    }, u.prototype.PercivalBpmEstimator = function(v, i, o, t, f, d, r, h) {
      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);
    }, u.prototype.PercivalEnhanceHarmonics = function(v) {
      return this.algorithms.PercivalEnhanceHarmonics(v);
    }, u.prototype.PercivalEvaluatePulseTrains = function(v, i) {
      return this.algorithms.PercivalEvaluatePulseTrains(v, i);
    }, u.prototype.PitchContourSegmentation = function(v, i, o, t, f, d, r, h) {
      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);
    }, u.prototype.PitchContours = function(v, i, o, t, f, d, r, h, n, s) {
      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);
    }, u.prototype.PitchContoursMelody = function(v, i, o, t, f, d, r, h, n, s, c, M, g, C) {
      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);
    }, u.prototype.PitchContoursMonoMelody = function(v, i, o, t, f, d, r, h, n, s, c, M) {
      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);
    }, u.prototype.PitchContoursMultiMelody = function(v, i, o, t, f, d, r, h, n, s, c, M) {
      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);
    }, u.prototype.PitchFilter = function(v, i, o, t, f) {
      return o === void 0 && (o = 36), t === void 0 && (t = 30), f === void 0 && (f = !1), this.algorithms.PitchFilter(v, i, o, t, f);
    }, u.prototype.PitchMelodia = function(v, i, o, t, f, d, r, h, n, s, c, M, g, C, E, L, _, P, y) {
      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);
    }, u.prototype.PitchSalience = function(v, i, o, t) {
      return i === void 0 && (i = 5e3), o === void 0 && (o = 100), t === void 0 && (t = 44100), this.algorithms.PitchSalience(v, i, o, t);
    }, u.prototype.PitchSalienceFunction = function(v, i, o, t, f, d, r, h) {
      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);
    }, u.prototype.PitchSalienceFunctionPeaks = function(v, i, o, t, f) {
      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);
    }, u.prototype.PitchYin = function(v, i, o, t, f, d, r) {
      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);
    }, u.prototype.PitchYinFFT = function(v, i, o, t, f, d, r) {
      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);
    }, u.prototype.PitchYinProbabilistic = function(v, i, o, t, f, d, r) {
      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);
    }, u.prototype.PitchYinProbabilities = function(v, i, o, t, f) {
      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);
    }, u.prototype.PitchYinProbabilitiesHMM = function(v, i, o, t, f, d) {
      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);
    }, u.prototype.PowerMean = function(v, i) {
      return i === void 0 && (i = 1), this.algorithms.PowerMean(v, i);
    }, u.prototype.PowerSpectrum = function(v, i) {
      return i === void 0 && (i = 2048), this.algorithms.PowerSpectrum(v, i);
    }, u.prototype.PredominantPitchMelodia = function(v, i, o, t, f, d, r, h, n, s, c, M, g, C, E, L, _, P, y, A, G) {
      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);
    }, u.prototype.RMS = function(v) {
      return this.algorithms.RMS(v);
    }, u.prototype.RawMoments = function(v, i) {
      return i === void 0 && (i = 22050), this.algorithms.RawMoments(v, i);
    }, u.prototype.ReplayGain = function(v, i) {
      return i === void 0 && (i = 44100), this.algorithms.ReplayGain(v, i);
    }, u.prototype.Resample = function(v, i, o, t) {
      return i === void 0 && (i = 44100), o === void 0 && (o = 44100), t === void 0 && (t = 1), this.algorithms.Resample(v, i, o, t);
    }, u.prototype.ResampleFFT = function(v, i, o) {
      return i === void 0 && (i = 128), o === void 0 && (o = 128), this.algorithms.ResampleFFT(v, i, o);
    }, u.prototype.RhythmDescriptors = function(v) {
      return this.algorithms.RhythmDescriptors(v);
    }, u.prototype.RhythmExtractor = function(v, i, o, t, f, d, r, h, n, s, c, M, g) {
      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);
      for (var C = new this.module.VectorFloat(), E = 0; E < C.size(); E++)
        C.push_back(s[E]);
      return this.algorithms.RhythmExtractor(v, i, o, t, f, d, r, h, n, C, c, M, g);
    }, u.prototype.RhythmExtractor2013 = function(v, i, o, t) {
      return i === void 0 && (i = 208), o === void 0 && (o = "multifeature"), t === void 0 && (t = 40), this.algorithms.RhythmExtractor2013(v, i, o, t);
    }, u.prototype.RhythmTransform = function(v, i, o) {
      return i === void 0 && (i = 256), o === void 0 && (o = 32), this.algorithms.RhythmTransform(v, i, o);
    }, u.prototype.RollOff = function(v, i, o) {
      return i === void 0 && (i = 0.85), o === void 0 && (o = 44100), this.algorithms.RollOff(v, i, o);
    }, u.prototype.SNR = function(v, i, o, t, f, d, r, h) {
      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);
    }, u.prototype.SaturationDetector = function(v, i, o, t, f, d, r) {
      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);
    }, u.prototype.Scale = function(v, i, o, t) {
      return i === void 0 && (i = !0), o === void 0 && (o = 10), t === void 0 && (t = 1), this.algorithms.Scale(v, i, o, t);
    }, u.prototype.SineSubtraction = function(v, i, o, t, f, d, r) {
      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);
    }, u.prototype.SingleBeatLoudness = function(v, i, o, t, f, d) {
      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);
      for (var r = new this.module.VectorFloat(), h = 0; h < r.size(); h++)
        r.push_back(t[h]);
      return this.algorithms.SingleBeatLoudness(v, i, o, r, f, d);
    }, u.prototype.Slicer = function(v, i, o, t, f) {
      i === void 0 && (i = []), o === void 0 && (o = 44100), t === void 0 && (t = []), f === void 0 && (f = "seconds");
      for (var d = new this.module.VectorFloat(), r = 0; r < d.size(); r++)
        d.push_back(i[r]);
      for (var h = new this.module.VectorFloat(), r = 0; r < h.size(); r++)
        h.push_back(t[r]);
      return this.algorithms.Slicer(v, d, o, h, f);
    }, u.prototype.SpectralCentroidTime = function(v, i) {
      return i === void 0 && (i = 44100), this.algorithms.SpectralCentroidTime(v, i);
    }, u.prototype.SpectralComplexity = function(v, i, o) {
      return i === void 0 && (i = 5e-3), o === void 0 && (o = 44100), this.algorithms.SpectralComplexity(v, i, o);
    }, u.prototype.SpectralContrast = function(v, i, o, t, f, d, r, h) {
      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);
    }, u.prototype.SpectralPeaks = function(v, i, o, t, f, d, r) {
      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);
    }, u.prototype.SpectralWhitening = function(v, i, o, t, f) {
      return t === void 0 && (t = 5e3), f === void 0 && (f = 44100), this.algorithms.SpectralWhitening(v, i, o, t, f);
    }, u.prototype.Spectrum = function(v, i) {
      return i === void 0 && (i = 2048), this.algorithms.Spectrum(v, i);
    }, u.prototype.SpectrumCQ = function(v, i, o, t, f, d, r, h, n, s) {
      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);
    }, u.prototype.SpectrumToCent = function(v, i, o, t, f, d, r, h, n) {
      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);
    }, u.prototype.Spline = function(v, i, o, t, f, d) {
      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]);
      for (var r = new this.module.VectorFloat(), h = 0; h < r.size(); h++)
        r.push_back(f[h]);
      for (var n = new this.module.VectorFloat(), h = 0; h < n.size(); h++)
        n.push_back(d[h]);
      return this.algorithms.Spline(v, i, o, t, r, n);
    }, u.prototype.SprModelAnal = function(v, i, o, t, f, d, r, h, n, s, c, M) {
      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);
    }, u.prototype.SprModelSynth = function(v, i, o, t, f, d, r) {
      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);
    }, u.prototype.SpsModelAnal = function(v, i, o, t, f, d, r, h, n, s, c, M, g) {
      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);
    }, u.prototype.SpsModelSynth = function(v, i, o, t, f, d, r, h) {
      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);
    }, u.prototype.StartStopCut = function(v, i, o, t, f, d, r) {
      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);
    }, u.prototype.StartStopSilence = function(v, i) {
      return i === void 0 && (i = -60), this.algorithms.StartStopSilence(v, i);
    }, u.prototype.StochasticModelAnal = function(v, i, o, t, f) {
      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);
    }, u.prototype.StochasticModelSynth = function(v, i, o, t, f) {
      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);
    }, u.prototype.StrongDecay = function(v, i) {
      return i === void 0 && (i = 44100), this.algorithms.StrongDecay(v, i);
    }, u.prototype.StrongPeak = function(v) {
      return this.algorithms.StrongPeak(v);
    }, u.prototype.SuperFluxExtractor = function(v, i, o, t, f, d, r) {
      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);
    }, u.prototype.SuperFluxNovelty = function(v, i, o) {
      return i === void 0 && (i = 3), o === void 0 && (o = 2), this.algorithms.SuperFluxNovelty(v, i, o);
    }, u.prototype.SuperFluxPeaks = function(v, i, o, t, f, d, r) {
      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);
    }, u.prototype.TCToTotal = function(v) {
      return this.algorithms.TCToTotal(v);
    }, u.prototype.TempoScaleBands = function(v, i, o) {
      i === void 0 && (i = [2, 3, 2, 1, 1.20000004768, 2, 3, 2.5]), o === void 0 && (o = 512);
      for (var t = new this.module.VectorFloat(), f = 0; f < t.size(); f++)
        t.push_back(i[f]);
      return this.algorithms.TempoScaleBands(v, t, o);
    }, u.prototype.TempoTap = function(v, i, o, t, f, d, r, h) {
      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 = []);
      for (var n = new this.module.VectorFloat(), s = 0; s < n.size(); s++)
        n.push_back(h[s]);
      return this.algorithms.TempoTap(v, i, o, t, f, d, r, n);
    }, u.prototype.TempoTapDegara = function(v, i, o, t, f) {
      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);
    }, u.prototype.TempoTapMaxAgreement = function(v) {
      return this.algorithms.TempoTapMaxAgreement(v);
    }, u.prototype.TempoTapTicks = function(v, i, o, t, f) {
      return o === void 0 && (o = 512), t === void 0 && (t = 256), f === void 0 && (f = 44100), this.algorithms.TempoTapTicks(v, i, o, t, f);
    }, u.prototype.TensorflowInputMusiCNN = function(v) {
      return this.algorithms.TensorflowInputMusiCNN(v);
    }, u.prototype.TensorflowInputVGGish = function(v) {
      return this.algorithms.TensorflowInputVGGish(v);
    }, u.prototype.TonalExtractor = function(v, i, o, t) {
      return i === void 0 && (i = 4096), o === void 0 && (o = 2048), t === void 0 && (t = 440), this.algorithms.TonalExtractor(v, i, o, t);
    }, u.prototype.TonicIndianArtMusic = function(v, i, o, t, f, d, r, h, n, s, c, M, g) {
      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);
    }, u.prototype.TriangularBands = function(v, i, o, t, f, d, r, h) {
      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");
      for (var n = new this.module.VectorFloat(), s = 0; s < n.size(); s++)
        n.push_back(i[s]);
      return this.algorithms.TriangularBands(v, n, o, t, f, d, r, h);
    }, u.prototype.TriangularBarkBands = function(v, i, o, t, f, d, r, h, n, s) {
      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);
    }, u.prototype.Trimmer = function(v, i, o, t, f) {
      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);
    }, u.prototype.Tristimulus = function(v, i) {
      return this.algorithms.Tristimulus(v, i);
    }, u.prototype.TruePeakDetector = function(v, i, o, t, f, d, r, h) {
      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);
    }, u.prototype.TuningFrequency = function(v, i, o) {
      return o === void 0 && (o = 1), this.algorithms.TuningFrequency(v, i, o);
    }, u.prototype.TuningFrequencyExtractor = function(v, i, o) {
      return i === void 0 && (i = 4096), o === void 0 && (o = 2048), this.algorithms.TuningFrequencyExtractor(v, i, o);
    }, u.prototype.UnaryOperator = function(v, i, o, t) {
      return i === void 0 && (i = 1), o === void 0 && (o = 0), t === void 0 && (t = "identity"), this.algorithms.UnaryOperator(v, i, o, t);
    }, u.prototype.UnaryOperatorStream = function(v, i, o, t) {
      return i === void 0 && (i = 1), o === void 0 && (o = 0), t === void 0 && (t = "identity"), this.algorithms.UnaryOperatorStream(v, i, o, t);
    }, u.prototype.Variance = function(v) {
      return this.algorithms.Variance(v);
    }, u.prototype.Vibrato = function(v, i, o, t, f, d) {
      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);
    }, u.prototype.WarpedAutoCorrelation = function(v, i, o) {
      return i === void 0 && (i = 1), o === void 0 && (o = 44100), this.algorithms.WarpedAutoCorrelation(v, i, o);
    }, u.prototype.Welch = function(v, i, o, t, f, d, r) {
      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);
    }, u.prototype.Windowing = function(v, i, o, t, f, d) {
      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);
    }, u.prototype.ZeroCrossingRate = function(v, i) {
      return i === void 0 && (i = 0), this.algorithms.ZeroCrossingRate(v, i);
    }, u;
  }()
);
export {
  Y as default
};
//# sourceMappingURL=essentia.js-core.es-CC_3Ap1i.js.map
