I know I've heard music in dreams. Good music. But when I awake I don't remember a thing about it. I'd say its more likely that my subconscious is just imagining I'm hearing music rather than actually bothering to make up a song.