         = new OscillatorNode(context, { frequency: baseFrequency });
        oscillator.detune.linearRampToValueAtTime(detuneEnd, rampEndTime);
        oscillator.connect(context.destination);
        oscillator.start();
        const renderedBuffer = await context.startRendering();
        const audio = renderedBuffer.getChannelData(0);
        // At some point, the computed oscillator frequency will go
        // above Nyquist.  Determine at what time this occurrs.  The
        // computed frequency is f