Pianists use their muscle memory to remember all the notes while playing. When a pianist plays a piece their muscle memory helps them to play the notes without necessarily having to remember every single note.