I wouldn't say that it was Only because of the music, but I'd think it had a lot to do with it.

I think that having something playing while you sleep helps keep your mind from completely drifting off into deep sleep. If you leaving something on, like a good movie, or songs that you like, I think you're more likely to hear them while you're sleeping, keeping your mind just a little more active than not.

However, this can be counterproductive. While sleeping in silence, you have no noise to interfere with whatever you're aiming to do while dreaming. It would be kind of hard to enjoy a nice, peaceful lucid dream on the beach, if you're hearing Rage Against the Machine playing through your stereo at night. Lol.

So my answer? I think the music helped you in that particular situation..but it may not Always be helpful.