Since this only happens when the AC adaptor is connected, you need to keep that noise source removed as much as possible from the rest of your setup. The audio input to your rig may be picking up the magnetic field around the power transformer in the adaptor. This could be anything from the pickups of your guitar, to a poorly-shielded audio cable. Try putting as much distance as possible between the adaptor and everything else.