Sound is a pushing and pulling wave. Walls are heavy, so you have to push for a long time to get them to move. High pitch sounds push and pull much faster, so the wall doesn’t shake as much. This means that walls shake much more with lower frequencies, and so they pass on the sound to the air on the other side. Edit: To add to this, higher pitched noises bounce around instead of going through things for this reason.
Latest Answers