aper.curve = waveShapingCurve;

        source.start();

        const renderedBuffer = await context.startRendering();
        checkShapedCurve(renderedBuffer);
      }, 'WaveShaperNode applies non-linear distortion correctly');
    </script>
  </body>
</html>
