(2) Pressure of air Explanation: The speed of sound in an ideal gas is independent of frequency, but it weakly depends on frequency for all real physical situations. It is a function of the square root of the absolute temperature, but is independent of pressure or density for a given ideal gas. Sound speed is slightly dependent on pressure only because air is not quite an ideal gas.