High-resolution Fourier spectra of stars and planets