The numerical computation of spectral properties (Green functions, densities of states…) of periodic crystals relies on singular integrals in Fourier space. I will describe new algorithms to compute these integrals, with applications to solid state physics and connections to spectral and scattering theory.