Swing a sounding tuning fork toward and away from a listener, and the pitch rises and falls rhythmically. This is the Doppler effect—a change in observed frequency due to relative motion between source and observer.
The shift is greatest when motion is directly along the line connecting source and listener. At an angle, the radial velocity component is smaller, so the pitch change is less pronounced but still detectable.
Ambulance sirens, passing trains, and even stars (redshift/blueshift) exhibit the same physics. The swinging fork makes it tangible and audible.