This is called the Doppler effect. The Doppler effect causes the received frequency of a source (how it is perceived when it gets to its destination) to differ from the sent frequency if there is motion that is increasing or decreasing the distance between the source and the receiver.