Codes, transforms and the spectrum of the symmetric group