For me it's always the sound first in my head, then I will jot them down as note form. I seldom write the initial ideas as note form earlier than the sound in my head. It's only when I will have to work on the passages I will use pen and write them as note, otherwise I will let my subconscious to do the job and provide the product for me, given how lazy I am haha.
Henry