Ahhh, Right up my alley (some will know what I mean

). First , if that's a double hung window (opens up and down), make sure the sash lock is locked. Also, weatherstripping around a window may help stop the vibrations. A heavy curtain over the window should cut down on vibrations too. It's the bass notes that cause your rattle....lower the bass, if possible. If all else fails....got a hammer ?
