Summary: Here we introduce another way of viewing phenomenon in the world. Instead of seeing things in the time domain, we introduce the concept of the frequency domain and how to go from on to the other, as well as interesting applications.
Up to this point, we have mainly focussed on waves as a function of time. Now what do we mean by a function of time? Well, in Understanding Wave Jargon; Building Waves on Strings Intuition, wiggling the end of the string affected how the rest of the string responded in time. In other words, we are used to seeing everything as causal because our actions have consequences that we observe. If I eat too much, I get a stomache ache an hour later. If my ears are ringing, it wouldn't be surprising if I had just come out of a rock conert.
Well, another way of seeing events is in the frequency domain. Now what does this mean? As described in Talking about Sound and Music and Frequency, Wavelength, and Pitch, frequency is the number of times a wave occurs per second. However, the concept of frequency does not have to apply to just waves. It can apply to any event, observation, or even concept that occurs multiple times. For example, one can say that the sun rises at a frequency of once per day. One can also say that in each year, a season changes once every three months.
Now why should you care? What possible relevance does this have to your daily life? Well, as discussed in Talking about Sound and Music, pitches that our ear hears correspond to waves; and since waves have a regularity of repeating itself, all pitches that we hear have frequencies associated with them. Note that the pitches we hear do not necessarily correspond to one frequency. For example, when you strike a string on a guitar, you hear not waves of a single frequency, but the sum of many waves with differing frequencies. However, when striking the strings of an instrument or blowing into a wind instrument, the frequencies that the resulting sound/wave has, is not accidental or random. There is a theory/pattern behind it, but we will not delve into that at this point.
Since the pitches we hear in music typically have flavor to them, in musical terms, differing timbre, (ie. the different sound we hear when playing the same pitch on a guitar and clarinet), most of this phenomenon corresponds to differing spectrograms (graphs of the frequency domain). To solidify this concept, we will provide a few sound examples and their corresponding spectrograms. Don't worry, there'll be plenty of explanation.
Below, I have provided two recordings. One is a recording of me striking the 'A' string of my guitar. The other is a recording of striking the high 'E' string of my guitar.
| Plot of the sound signal versus time |
|---|
![]() |
| Zoomed in graph of the signal versus time |
|---|
![]() |
There are a few things to note. In Figure 2, we notice that the sound peaks as it is struck and decays to zero close to 8 seconds. This should resonate well with your intuition from hearing the sound file. Now in Figure 3, you'll notice that there are patterns to the signal heard. Furthermore, you'll also notice that there is not just one wave of a single frequency, but that you can eyeball several waves. For example, there is the large wave that has higher signal than other parts of the wave, as there also appears to be a cross of two waves with higher frequencies in the signal.
From this type of observation, a whole slew of theory and algorithms have been developed to characterize such behavior. By taking the Fourier Transform of our sound file, we can see what frequencies make up the signal. Another way of thinking about it, the sound file can be decomposed as the sum of waves of differing frequencies, and the Fourier Transform provides a way of seeing the sound file in the time domain, as in Figures 2 and 3, to the frequency domain shown below in Figure 4.
| Spectrogram of Figure 1's sound file |
|---|
![]() |
The spectrogram shows us how the signal can be broken down into an infinite sum of waves with different frequencies. As Figure 4 shows, the most dominant frequency occurs at about 220Hz. This corresponds to the second harmonic of the signal. The fundamental frequency being 110Hz, which is correct, since the 'A' string of the guitar should be tuned to 110Hz. Apparently the guitar was in tune when the recording was made. Furthermore, you will also notice other dominant waves with frequencies of about 330Hz and 440Hz. Of the musicians out there reading this, this makes sense since 330Hz corresponds to an 'E' which would be the fifth of the 'A' and the third harmonic to the 'A' at 110Hz. But the take away message from these figures is that there are two ways of seeing the same phenomenon of the recorded sound file. One is to simply plot the resulting signal versus time. Another is to view the same signal and its spectrogram, or rather, what frequency components make up the sound file.
Similar to plucking the guitar's 'A' string, here we provide the same graphs but for the sound file in Figure 5.
| Plot of the sound signal versus time |
|---|
![]() |
| Zoomed in graph of the signal versus time |
|---|
![]() |
Let's point out some differences between Figures 2 and 6. Notice that in Figure 2, the signal decays to 0 a couple of seconds after the signal in Figure 6. Also notice that in Figure 7, the spacing between the oscillations of the signal is smaller than those in Figure 3.
Also, again notice that in Figure 7, the zoomed-in graph of the signal versus time, there are recurring patterns in the signal. See if you can convince yourself that the signal can be described as the sum of waves with differing frequencies.
| Spectrogram of Figure 5's sound file |
|---|
![]() |
Figure 8 shows the spectrogram of the sound file in Figure 5. The dominant peak occurs at 330Hz, which from our previous discussion is not surprising. The high 'E' string of a guitar should be tuned to 330Hz.
However, there are some differences to note between Figures 4 and 8. The spectrogram in Figure 8 has less prominent peaks. Between 200 and 300Hz, there seems to be a lump of frequencies that our sound wave has. One of the reasons the spectrum is not as "clean" as the one in Figure 4, is because the high E string causes the lower strings on the guitar to vibrate. Thus one sees lumps in the spectrogram below the fundamental frequency of 330Hz as well as the harmonics of the frequencies of the lower strings.
For more information on the algorithm/procedure that takes you to/from the frequency domain, Derivation of the Fourier Transform and The Fast Fourier Transform (FFT) are good mathematical sources.