<< Chapter < Page Chapter >> Page >

With N = 2 16 , specgong.m analyzes approximately 1.5 seconds ( Ts*N seconds, to be precise). It is reasonable to suppose that the gong might undergo important transients duringthe first few milliseconds. This can be investigated by decreasing N and applying the DFT to different segments of the data record.

Determine the spectrum of the gong sound during the first 0.1 seconds. What value of N is needed? Compare this to the spectrum of a 0.1 second segmentchosen from the middle of the sound. How do they differ?

Time and frequency plots of the gong waveform. The top figure shows the decay of the signal over 1.5 seconds. The middle figure shows the magnitude spectrum, and the bottom figure zooms in on the low frequency portion so that the frequencies are more legible.
Time and frequency plots of the gong waveform. The top figure shows the decay of the signal over 1.5 seconds.The middle figure shows the magnitude spectrum, and the bottom figure zooms in on the low frequency portionso that the frequencies are more legible.

A common practice when taking FFTs is to plot the magnitude on a log scale. This can be done in M atlab by replacing the plot command with semilogy . Try it in specgong.m . What extra details can you see?

The waveform of another, much larger gong is given in gong2.wav on the website. Conduct a thorough analysis of this sound,looking at the spectrum for a variety of analysis windows (values of N ) and at a variety of times within the waveform.

Choose a .wav file from the website (in the Sounds folder) or download a .wav file of a song from the Internet. Conduct a FFT analysis of the first fewseconds of sound, and then another analysis in the middle of the song. How do the two compare?Can you correlate the FFT analysis with the pitch of the material?With the rhythm? With the sound quality?

The key factors in a DFT or FFT based frequency analysis are as follows:

  • The sampling interval T s is the time resolution, the shortest time over which any event can be observed.The sampling rate f s = 1 T s is inversely proportional.
  • The total time is T = N T s where N is the number of samples in the analysis.
  • The frequency resolution is 1 T = 1 N T s = f s N . Sinusoids closer together (in frequency) than this value areindistinguishable.

For instance, in the analysis of the gong conducted in specgong.m , the sampling interval T s = 1 44100 is defined by the recording. With N = 2 16 , the total time is N T s = 1 . 48 seconds, and the frequency resolution is 1 N T s = 0 . 67 Hz.

Sometimes the total absolute time T is fixed. Sampling faster decreases T s and increases N , but cannot give better resolution in frequency.Sometimes it is possible to increase the total time. Assuming a fixed T s , this implies an increase in N and better frequency resolution. Assuming a fixed N , this implies an increase in T s and worse resolution in time. Thus, better resolution in frequency means worse resolution intime. Conversely, better resolution in time means worse resolution in frequency.

The DFT is a key tool in analyzing and understanding the behavior of communications systems. Whenever data flows through a system,it is a good idea to plot it as a function of time, and also to plot it as a function of frequency; that is, to look atit in the time domain and in the frequency domain. Often, aspects of the data that are clearer in time are hardto see in frequency, and aspects that are obvious in frequency are obscure in time. Using both points of view is common sense.

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Software receiver design. OpenStax CNX. Aug 13, 2013 Download for free at http://cnx.org/content/col11510/1.3
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Software receiver design' conversation and receive update notifications?

Ask