How does music affect human emotions?

Music can change a persons mood completely. When a persons sad or nervous they can listen to their favourite song and all of a sudden your in a much better mood. Music can even make you sad. If its a very beautiful song it can make you cry too.