A model for periodicity coding in the auditory system