Text this: Cognitive foundations of musical pitch