Typically, in my case, one line/melody serves as a seed--usually some spur-of-the-moment thing on my phone. Then I'll bring music to it after and iterate from there. But I write every which way. Different approaches produce different results. Creativity, for me, aught to be largely experimental.