    // Create mono input buffer.
        const buffer = new AudioBuffer({
          length: numberOfRenderFrames,
          numberOfChannels: 1,
          sampleRate: context.sampleRate
        });
        const data = buffer.getChannelData(0);

        // Generate an input vector with values from -1 -> +1 over a duration of
        // lengthInSeconds. This exercises the full nominal input range and will
        // touch every point of the shaping curve.
        for (let i = 0; i < numberOfRenderFrames; ++i