For me it's always contingent on getting a sound-the sound always suggests what kind of melody it should be. So it's always sound first and then the line afterwards.
or simply: