Yes. People automatically detect a difference of anomaly in a melody in the secondary auditory cortex of the human brain. There are sections of cells in the cortex that are responsive to certain frequencies, tempos, which range from very low to very high in pitches. For more information, please read