Does distance affect frequency?
Explanation:
The wavelength is distance divided by cycles and frequency is cycles divided by time. Since wavelength is divided by frequency then the cycles cancel out and we get distance divided by time or velocity.
Suppose the distance between wavefronts depends on whether the source and observer are getting closer together or further apart as the source and observer are moving relative to each other. If the observer and source shift towards each other, the frequency will increase and the wavelength will decrease.
Hence, the distance affects the frequency.