Drive a recording past the listener. The source travels a straight line at a constant speed, comes within a set distance, and carries on; the pitch, level, tone and position of what is heard are all computed from the distance between the two.
The pitch drop
Sound emitted while the source approaches has less far to travel with every wavefront, so the fronts arrive bunched up and the pitch is higher. After the pass they arrive spread out and the pitch is lower. The ratios are c / (c - v) and c / (c + v), with c = 343 m/s.
| Speed | Approach | Departure | Total drop |
|---|---|---|---|
30 km/h |
+0.43 semitones |
-0.42 |
0.84 |
90 km/h |
+1.31 |
-1.22 |
2.53 |
160 km/h |
+2.40 |
-2.11 |
4.51 |
300 km/h |
+4.82 |
-3.77 |
8.58 |
The shift is not symmetric. The approach raises the pitch by more than the departure lowers it, and the gap widens with speed.
Closest distance
The full shift is only heard while the source is far away and moving almost straight at the listener. Near the pass the speed towards the listener falls through zero, and the pitch glides from high to low. Closest distance sets how long that glide takes: at 1 m and 90 km/h it is over in a fraction of a second, at 50 m it takes several seconds.
Where it passes
Passes at places the moment of closest approach as a share of the file: 50% is the middle. For a siren or an engine loop, the middle gives equal time arriving and leaving. For a single word or hit, put the pass on it.
Level, air and panning
Distance fade at 100 is the physical law, 6 dB quieter for each doubling of distance. That is a large range: a car 5 m away at the pass is 34 dB down ten seconds earlier. Lower values compress the range without touching the pitch, and 0 keeps the level constant.
The fade also dulls the sound with distance, the way air absorbs high frequencies first. Direction pans the source from one side to the other by its real bearing, so it sits hard left or right when far and sweeps through the centre quickly as it passes. A stereo file is folded to one point for this, since a passing source is one point. A mono file opens as two channels.
Limits
The path is a straight line and the speed is constant, so there is no braking, turning or orbiting. The source keeps its speed for 300 m either side of the pass and is slowed to a stop by 400 m, which keeps memory bounded on long files and is inaudible at that distance. At the highest speeds the approach raises frequencies above 16 kHz past what the file’s sample rate can hold, and a little of that folds back.
Pairing
For a pass in a street or a tunnel, add reverb after this stage so the space stays still while the source moves. The binaural panner places a source that stays put, and the another-room effect puts the whole thing behind a wall.