I think you are right. I can give my own example. I used to listen music using my headphone while reading or solving mathematical problems. It is a great way to make your mind calm and to concentrate on your work. Music is also pain killer. You will feel better after hearing some melodious music.