Physics · Simulator 010
A siren sends out circular wavefronts. Move the source and the listener and watch the wavefronts bunch up ahead of the source and spread out behind it. Compare the frequency the listener hears with the frequency the source emits.
Each wavefront spreads at the speed of sound c from the point where the source was when it emitted it. If the source moves, successive wavefronts are centred at different points, so they crowd together in front and spread out behind.
For motion along the line joining them, the received frequency is
f' = f · (c + v_L) / (c − v_S)
where v_L is positive when the listener moves towards the source and v_S is positive when the source moves towards the listener. The simulator uses the components of velocity along that line, so it handles passing motion too: the pitch drops as the source goes by.
When v_S ≥ c, the wavefronts pile up into a cone, the Mach cone or sonic boom. The formula breaks down there.
Model: still air, uniform sound speed, point source, motion in a plane. Audio is not played; the frequencies are calculated.
An ambulance's siren is 700 Hz. You hear 750 Hz as it approaches. How fast is it going (c = 343 m/s)? What will you hear after it passes?
750 = 700 × 343/(343 − v) gives v = 343(1 − 700/750) ≈ 22.9 m/s (82 km/h). Receding: 700 × 343/(343 + 22.9) ≈ 656 Hz. The drop of almost 100 Hz as it passes is the familiar “neee-owww”.