The Doppler effect is illustrated by the sound of a passing train.