If the music has no words, I might be OK. But if there are lyrics, I find it super distracting.
The best way to describe why is that when I listen to music, visuals play in my head sort of like Disney's Fantasia. It's hard to visualize other things when that happens.
On a side note, this doesn't effect math tho. I used to do my math homework with the radio or tv running.