If you really want music playing, I would suggest you favour an opt-in method instead of something automatic. If a website started playing music automatically, I would close it straight away. Not to mention the negative effects for mobile users.
Since your vague about what your situation or music is, its difficult to suggest alternative approaches. For example, one I have seen is an audio player thats fixed at the bottom of the viewport, where a user is able to play / stop music.