The secret of a great melody is a secret.
I don't think you can separate a person's "style" and his persona. If you're writing or improvising honestly, you will inevitably reflect who you are.
I knew I wanted to write on religious themes when I was a GI in World War II. I saw and experienced so much violence that I thought I could express my outrage best with music.
Over the years I've had strong friendships with many priests. As a matter of fact, a group of Christian leaders from the National Council of Churches came to my house in the 1950s to ask me to write music for a Mass. I didn't think I was ready at that time. So, in a sense, I guess joining the church and writing the Mass was a culmination of a long journey that is still going on.