**The Analysis of Sound – Doppler Shift**

Introduction

The sounds in our environment carry a great deal of information. The sense of hearing in most mammals is highly developed to allow them to extract useful information from sound and humans are no exception. We are constantly monitoring the noisy environment we live in, extracting information we need or want from it and discarding the rest.

We can also analyze sounds mathematically to extract very detailed information about the sources of sound. In the following example we will analyze the sound of a large truck passing by a stationary microphone to extract its speed and to think about other information that is contained in the sound recording.

Discussion of theoretical model

The Doppler Effect describes the apparent change in the frequency of a wave caused by the relative motion between the sound source and the observer. While the relative motion can be due to the motion of the source, the motion of the observer, or both we will be studying the effect of a source in motion relative to a stationary observer. We will exploit the change in frequency that we can measure to determine the speed of the source.

It can be shown (I had to start somewhere) that

Where is the propagation speed, the speed of sound

is the wavelength of the sound

is the frequency of the sound

For a stationary sound, radiating at a frequency the time between peaks is the period of the wave

This is also true of a moving source, as measured by someone riding along with the source. If the source is moving at a speed of toward a stationary observer then the source moves a distance in one period. This makes the wavelength appear to be shorter by that amount to the stationary observer. So the apparent (to a stationary observer) wavelength is but because , so the stationary observer sees a wavelength of

The speed of sound is a function of the temperature only so the stationary observer sees

Solving for

for a source moving toward the observer

A similar argument will show that the wavelength appears longer, and the frequency lower, to the stationary observer when the source is moving a way.

for a source moving away from the observer

The two equations just derived are commonly shown in introductory textbooks in the discussion of Doppler shifts in sound. They are two special cases of a more general description which accounts for sounds moving past an observer at some distance. In the development of the special cases the angle between the path of the source and the observer was always either 0 or pi. In observing the Doppler shift of a source on a truck, this situation always would result in the observer never seeing the lower frequency shift as the truck moves away. To remedy that situation, we place the observer at some distance off the path and use the radial component of the source velocity in our calculations.

so following the same arguments as in the special cases the source moves a distance of

in one period so

And as before so

or

in the general case of the source moving past the observer

This evaluates to the special cases at and .

Obviously, changes as the source goes past the observer. The Observer Geometry shows the relationship between the distance to the source along the path, x, the distance the observer is from the path, h, and .

One can also see that x is a function of the speed of the source and the time, . By the Pythagorean theorem the radial distance between the source and the observer is

so

The negative sign is needed to ensure that goes from to as t goes from -3 to 3, for example. This expression can be substituted into the expression for the frequency seen by the observer to give the observed frequency as a function of time.

The resulting expression can be entered into a spreadsheet program to plot the relationship.

Acquiring the Spectrogram

We wish to record diesel trucks operating at highway speeds. Find a location about 100 feet or so from a highway with truck traffic. A level or slight grade is preferred as we do not want speed changes or gear shifts to be recorded. Set Raven Lite to record to memory, starting it when a truck approaches and stopping the recording after it passes by. Look for the shallow s-shaped signature in the spectrogram similar to that shown in the graph above. It may take several attempts to get a good recording that can be saved to disk.

Interpreting the Spectrogram

The spectrogram of a truck I recorded is shown:

Using the mouse pointer as shown in the illustration, I picked off a frequency as the truck approached from far away of 12000 Hz and at a distance after it went by of 10552 Hz. Far away (), the frequency is very near to the special cases of the source moving directly toward and away from the observer. The frequency of the source is assumed to be midway between the two, 11276 Hz. This high frequency is presumed to be blade passing frequency associated with the turbocharger. Turbochargers, as a general rule, turn at high speeds and have large blade numbers.

We can exploit the expressions for the two special cases to estimate the speed of the source, .

But is the same value for both so

Multiplying out, collecting terms, and solving for

On the day I made my recording it was 64° F. Plugging in the values that I picked off the spectrogram I estimate that the truck I recorded was going about 49 mph.

After all the trouble we went through to derive an analytical function, though , we can get much better estimates for all of the variables by curve fitting the function to our data. I picked seven time-frequency pairs of data off the spectrogram and used a modified version of the function because the actual time of closest approach was not known:

I used the curve fitter in a technical software called IGOR Pro but others are available. The results are shown in the figure:

The curve fitter gave the following Coefficient values ± 95% Confidence Interval

f =11229 ± 60.9 Hz

v =81.334 ± 13.8 ft/sec = 55.455 ± 9.4 miles per hour

h =99.621 ± 46.7 ft

t0 =6.0333 ± 0.137 seconds

This is a very practical and useful article.

Rohan