The Doppler effect is an observed frequency of light or sound waves affected by the relative motion of the source and the detector.