Loudness depends on the amount of energy in a sound and the distance from the source, with louder sounds having more energy and greater distances resulting in less intense sounds due to the energy spreading out over a larger area. The pitch of a sound depends on the frequency of the sound wave, and as a sound source moves, its frequency changes due to the motion adding to or subtracting from the waves.