Abstract The Five-hundred-meter Aperture Spherical radio Telescope (FAST) is the most sensitive ground-based, single-dish telescope on Earth. However, original H i spectra produced by FAST are affected standing waves. To maximize power of for high-sensitivity observations, we proposed an algorithm that combines fast Fourier transforms and extreme envelope curves to automatically correct baselin...