I think anytime there is physical discomfort, there is a reluctance, and a resistance. The result is muscle tension which leads to more physical discomfort, and more anxiety. Music can be applied to manage the situation. I have had some experience working in surgery, and have had graduate students under my supervision working in other areas such as burn treatment. It is very difficult for the patient, and for the patient's family to feel helpless in a situation beyond control.
Music can put some of the personal control and life quality back into the situation.
If one is physically relaxed, one cannot be stressed. This music is predictable in its rhythmic beats, and in its form and melody. Then, I would encourage deep breathing, which functions to oxygenate the muscles, and may even have some influence of neurological function. Whichever way it begins, the objective is to use the music to calm and quiet the tension and to expand the breathing. If one begins with the music that matches the agitation, it is important to gradually decrease the activity level of the music until it it sedative.