So I listen to specific music to get my mind in a particular zone before I write, but when I actually write it, has to be silent with slight ambient sound in the background. If it's too quiet my ears will focus on stuff too much, but if there's actual music or lyrics going I won't be able to think of words because I'll be mentally singing along.
So when I write a book I have to listen to either the same album or the same song before I write each chapter. But I might listen to a different album or set of songs when working on a different book.
Pretty much each of my books has a unique sound track because of this.
The vibe and tone of the music helps me to consistently write in the same style. I don't know if anyone else is like this but it works for me.