Memory for playing a musical piece... involves a process very much like that for music listening... through establishing standard schemas and expectation. In addition, musicians use chunking... tying information together into groups, and remembering the group as a whole rather than individual pieces.
This is Your Brain on Music (2006)