A cognitive psych professor of mine couldn't work without music playing to 'occupy a certain part of his brain', almost always prog rock. Didn't seem to be holding him back - sometimes a mask is a workable solution. :)
Some things (code, writing docs) I can only do them with music in the background, usually music that is either downtempo, instrumental or both (for the most part Pink Floyd, Sting, Mogwai, Morcheeba or several jazz/fusion artists).
Without music it 10x harder for me to get those activities going.
Before I needed some background music - electronic or hip-hop in any language but English (to avoid my brain focusing on the lyrics).
Now with meds I sit in silence all day.
I found this to work really well in many different situations: https://youtu.be/P48QELwruQs