        expected,
            0,
            `Test oscillator output (freq: ${oscFrequency}, ` +
                `detune: ${detuneValue}) must match reference output`
        );
      }, 'Oscillator with large detune produces 0 output at Nyquist or above');
      promise_test(async t => {
        const context = new OfflineAudioContext(1, totalFrames, sampleRate);
        const baseFrequency = 1;
        const rampEndTime = renderLengthSeconds / 2;
        const detuneEnd = 1e7;
        const oscillator
   