T0)
        //
        // Thus,
        //
        //   t = ((T1-T0)*v(t) + T0*V1 - T1*V0)/(V1-V0)
        //
        // In this test, T0 = 0, V0 = 0, T1 = rampEnd, V1 =
        // detuneEnd, and v(t) = criticalDetune
        const criticalTime = (rampEndTime * criticalDetune) / detuneEnd;
        const criticalFrame = Math.ceil(criticalTime * sampleRate);
        assert_less_than_equal(
            criticalFrame,
            audio.length,
            'Critical frame should lie within audio buffer length'
 