A Neural Network Model for Pitch Perception