Yes, the frequency and wavelength of sound waves can change if you move towards the source. This phenomenon is known as the Doppler effect.
When an observer moves towards a sound source, they encounter more compressions of the sound waves per unit of time. This results in an increased frequency of the perceived sound. Similarly, the wavelength appears shorter to the observer.
The formula for the observed frequency (f') due to the Doppler effect when moving towards a source is given by:
f' = (v + v₀) / (v + vs) * f₀
Where: f' is the observed frequency, f₀ is the emitted frequency by the source, v is the velocity of sound in the medium, v₀ is the velocity of the observer, and vs is the velocity of the source.
Similarly, the observed wavelength (λ') can be calculated using the formula:
λ' = (v + vs) / (v + v₀) * λ₀
Where: λ' is the observed wavelength, λ₀ is the wavelength emitted by the source.
When an observer moves towards the source, the observed frequency increases, and the observed wavelength decreases. This change in frequency and wavelength is directly related to the relative velocities of the observer, source, and the speed of sound in the medium.
It's important to note that the Doppler effect applies to any type of wave, including sound waves, light waves, or any other type of wave that exhibits wave-like behavior.