Buccaneer:but where i am not getting the connection is that the air inside obviously compresses at depth, because it becomes more dense in porportion to your depth.
The air inside the tank does not compress further. It is already much more highly compressed. The regulator takes out that compressed air and makes it 'less compressed' so that you can breath it. So when you breath one breath at the surface, you are breathing in X amount of air. When you are at 40m, 5ata, you are breathing in 5*X amount of air because the air you breath in has to be at 5 ata for you to be able to breath in. But both of that amount of air comes out of the tank that is compressed to much higher pressure (unless you are almost out of air), and it is the regulator that brings down that high pressure to the pressure you are breathing.
So the pressure in the tank remains the same regardless of depth, it's the pressure of what you actually breath in, that has already been 'processed' to a lower pressure by your regulator, that changes depending on your depth.
Hope I'm not just confusing you further with my long-winded explanation..