I can not listen to music when I write. When I listen to music, my brain converts it into color and images (sort of like Fantasia) which makes it very difficult to form words (yet it makes it very easy to do math apparently). I can also sometimes "hear" movement, it makes watching animated gifs weird.
Though, I do sometimes use music to brainstorm.