Research has found that participants who listened to music before and during a programming task experienced less anxiety and performed better than those who didn’t listen to music. In another study, surgeons’ accuracy and efficiency were rated best when they listened to their chosen music.