ueAtTime(1.0, 0.0);
        ramp.playbackRate.setValueAtTime(0.0, renderDuration / 2);

        context.startRendering()
            .then(function(renderedBuffer) {
              let data = renderedBuffer.getChannelData(0);
              let rampData = rampBuffer.getChannelData(0);
              let half = rampData.length / 2;
              let passed = true;
              let i;

              for (i = 1; i < rampData.length; i++) {
                if (i < half) {
                  // Before the half posi