My truck was backed in to the tent, head of the bed, about 5 foot away. The canopy was on the front of the tent. We could hear the neighbors generator over ours. It was bigger, on wheels for ac in their camper.
You could make some T post with 2x4s and staple cardboard to it. Place it between you and the generator, I don't think you would hear it then.