A sound card may have problems with aliasing at high frequencies. To avoid these problems in the harmonic distortion calculation, the upper frequency can be limited by setting a smaller percentage than 100. This will also limit the frequency range of the result.