ata = inputBuffer.getChannelData(0);
        const outputData = buffer.getChannelData(0);
        const c = waveShapingCurve;
        const N = numberOfCurveFrames;
        const tolerance = 1e-6;

        let firstMismatchIndex = -1;
        let actual = 0;
        let expected = 0;

        // Go through every sample and make sure it has been shaped exactly
        // according to the shaping curve we gave it.
        for (let i = 0; i < buffer.length; ++i) {
          const x = inputData[i];

          c