Power spectra of sub-periodic functions