Function resonanceFor