Music plays when enemy ai see's the player

So I have made some AI they move around randomly and when they spot the player they will start chasing the player, what i want is when the player gets chased the chase music will start to play and will stop playing once the chase has ended, extra marks if you can also tell me how i can make the chase music fade once the chase has ended.

Thanks