Good musician's earplugs will make everything quieter so as not to damage your ears, but you can still hear and enjoy the music. Industrial type ones are more powerful and block out as much as possible
I'll second this one, and I mostly only use mine for sleep. You can get some that you mold yourself, so there's less fear of losing them. I use Radians brand.