as you progress in the game the NPC will teach you the songs. The first one scares them away from you, the second attracts them to you, and the third stuns them in place