First...you take it back to the record store and *politely* ask to return it for a refund or an exchange. State in understandable lay terms why you what to do this, and be patient when you get the initial deadpan expressions. Be articulate and intelligent about this, don't make it sound like you are downing the store.
Next...send a note on to the record label explaining that you returned the record to the store you purchased it from, and why. Again, do not make scathing attacks, just state your case in a mature professional manner. Be sure to mention that you are unlikely to purchase other records under their label if this is what they deem as an acceptable listening experience.
Thirdly...send a note on to the mastering house, to the attention of the engineer specifically credited with the record's mastering. Again, calmly explain your circumstance and make a specific point to note that you will be unlikely to purchase *any* record crediting their particular mastering house and/or the mastering engineer.
Finally...if the band has a web forum, or any contact address at all...use it to *politely* and intelligently bring your dissatisfaction to their attention. Again, be *very* clear that you have no interest in purchasing any future records they make should they be treated in a similar fashion.
I would also suggest the same approach as the above whenever you buy a record that you believe to be exceptionally well done. Praise where praise is due...otherwise, let the rotten tomatoes fly thick and fast.
Feedback folks...feedback. If you go to a fine restaurant and get a lousy meal how do you respond? The only difference here, is that instead of putting bad food into your mouth, you are putting bad sounds into your ears.

