Sound Waves: Calculating Wavelength and Frequency

One of my physics students is working on a project to demonstrate interference in sound waves, so I generated a few sound files with different wavelengths for her to experiment with.

A sound wave with a frequency of 347 cycles per second (347 Hz), which has a wavelength of approximately 1 meter. Waveform captured using the WaveWindow program.

Using SoX, you can generate waves by inputing the frequency you want (using the synth command). The frequency (f) depends on the wavelength (\lambda) and speed (v) of the sound waves through air.

f = \frac{v}{\lambda}

The speed of sound through the air depends on the temperature (it’s a linear relationship). Hyperphysics has a nice Speed of Sound in Air calculator, which tells me that at room temperature (about 25 ÂșC):

Speed of Sound in Air:
v = 347 m/s

Using the formula above (or sengpielaudio’s wave calculator) we can calculate the frequency we need for any wavelength.

For example, if we wanted a 2 meter wavelength:

f = \frac{v}{\lambda}

f = \frac{347 \; \textrm{m/s}}{2 \;\textrm{m}}

f = 173.5 \; s^{-1}

Which sounds like this: 2m.mp3. (Note that 1 cycle per second equals 1 hertz, so 173.5 s-1 = 173.5 Hz).

The tone files I’ve created are below (the ones greater than 1 m may work best, but I’ve included the others for completeness):

Wavelength Frequency Sound File (mp3)
0.1 m 3470 Hz 10cm.mp3
0.25 m 1388 Hz 25cm.mp3
0.5 m 694 Hz 50cm.mp3
1 m 347 Hz 1m.mpg
2 m 173.5 Hz 2m.mp3
3 m 116 Hz 3m.mp3

Notes

SoX

The SoX command to create the 2 m sound file (that lasts for 60 seconds) is:

 > sox -n 2m.mp3 synth 60 sin 173.5

On the SoX manual page, look up the synth command.

WaveWindow

WaveWindow is a nice, shareware ($12) oscilloscope for the Mac, though it does not show the longer wavelengths very nicely.

Leave a Reply