However far fiction writers stray from their own lives and experiences - and I stray pretty far from mine - I think, ultimately, that we may be writing what we need to write in some way, albeit unconsciously.
Sometimes I get a lyric, and the lyric, you know, comes off the page, and goes into my brain and comes out with a melody. Other times, I may create a melody first.