Cognitive Foundations of Musical Pitch