set (something) to music
To arrange for a piece of music to accompany something. Often used in passive constructions. I actually think that scene in the film would have worked much better had it not been set to music. The way I create songs is to first write a poem and then set it to music.
set something for something
to adjust something for a particular setting. I set the thermostat for a lower temperature. Please set the air conditioning for about 75 degrees.
set something to music
to write a piece of music to accompany a set of words. The musician set my lyrics to music. The rock band set the poem to music.