I used to use music this way, until I started noticing that when I really got into flow I wouldn't even notice if the music stopped for hours. Then I started using white noise, and eventually just stopped relying on any kind of audio aid at all. Unless you work in a noisy environment you can train your focus.