to play music by remembering how it sounds rather than by reading it
play (sth) by ear
Definitions from the Oxford Advanced Learner's Dictionary, 9th edition