unction generateWaveShapingCurve() {
        const curve = new Float32Array(numberOfCurveFrames);
        const n = numberOfCurveFrames;
        const n2 = n / 2;

        for (let i = 0; i < n; ++i) {
          const x = (i - n2) / n2;
          curve[i] = Math.atan(5 * x) / (0.5 * Math.PI);
        }
        return curve;
      }
      // Following spec algorithm from
      // https://webaudio.github.io/web-audio-api/#WaveShaperNode-attributes
      function checkShapedCurve(buffer) {
        const inputD