Understanding MIT's applet on sound with Fourier coefficients

In summary, the document explores MIT's applet that demonstrates sound representation through Fourier coefficients. It explains how sound waves can be decomposed into simpler sine and cosine functions, allowing users to visualize and manipulate the components of sound. The applet serves as an educational tool to illustrate the principles of Fourier analysis, enabling a deeper understanding of sound synthesis and signal processing.
  • #1
zenterix
708
84
Homework Statement
Below are links to an applet that allows one to tinker with sounds and their mathematical representation, and a document explaining how to use the applet.
Relevant Equations
My question will be about a specific snippet in the document that relates "higher harmonic" amplitude (which I think means a higher angular frequency pure tone with some amplitude) with fundamental frequency.
Here is an applet for playing around with Fourier coefficients and sounds.

Here is a document explaining a bit about the applet.

I did not quite understand everything.

Let me go through it.

Sound as perceived by humans is the physical phenomenon of variations in air pressure near the ear.

Audible sounds have variations starting at around ##0.2\cdot 10^4\text{Pa}## and go up to tens of thousands of ##\text{Pa}## of variation.

The size of the oscillations is related to the loudness of the sound.

The frequency of the oscillations is related to the pitch of the sound. Humans only perceive sounds within a certain frequency range.

Sound can be modeled by mathematical functions, in particular trigonometric functions.

A periodic function such as ##\sin{(2\pi\mathcal{v}t)}## represents a pure tone with frequency ##\mathcal{v}##.

The applet constructs a function

$$f(t)=\sum\limits_{n=0}^9 c_ne^{i(n\omega t+\phi)}\tag{1}$$

where the coefficients ##c_n## are complex.

There is a button that allows us to "toggle the restriction on the values of the coefficients making ##f(t)## real valued for ##n>0##" and when we select this option then "##c_{-n}## is reset to equal the complex conjugate of ##c_n##". This is because actually, (1) is

$$f(t)=\sum\limits_{n=-9}^9 c_ne^{i(n\omega t+\phi)}\tag{1b}$$

I'm not sure about what the negative subscript coefficients are at this point.

The document says the sound played corresponds to the function

$$\text{Re}(e^{i\phi}f(t))\tag{2}$$

But the help in the applet itself says the function is

$$\text{Re}(e^{-i\phi}f(t))\tag{3}$$

The applet allows us to change each of the first nine ##c_n## by selecting a magnitude and an argument.

We can also change ##\phi##.

We can also change the base frequency ##\mathcal{v}## (the selector is in ##kHz##. The resulting angular frequency is ##\omega = 2\pi\mathcal{v}\cdot 10^3##.

The aforementioned document contains the following snippet

If the higher harmonics have much lower amplitudes than the fundamental frequency, then the fundamental pitch will stay the same but the quality of the sound will change. If the amplitude of a higher harmonic approaches that of the fundamental you may begin to hear it as a separate note.

I don't quite understand this.

For example, suppose we choose ##\mathcal{v}=0.44\text{kHz}## and we are only taking the real part of (1) so that our sound becomes

$$2\cos{(440\pi t)}+\cos{(2\pi\cdot 440\cdot 8t)}$$

That is, we have a pure tone of 440Hz with coefficient ##c_1=2## and then we have coefficient ##c_8=1## which multiplies ##\cos{(16\cdot 440\pi t)}##.

If I understand correctly, both cosines have the same base frequency ##\mathcal{v}=440Hz##, but the cosine for ##c_8## has a much higher angular frequency. It is thus a "higher harmonic". The amplitude of the latter is ##c_8=1##.

How do we make it so that this higher harmonic has "much lower amplitude than the fundamental frequency"?

Here is the setup I have in the applet

1709779780679.png
 
Last edited:
  • Like
Likes WWGD
Physics news on Phys.org
  • #2
zenterix said:
How do we make it so that this higher harmonic has "much lower amplitude than the fundamental frequency"?
By choosing a smaller value for ##c_8##, surely?
 
  • #3
haruspex said:
By choosing a smaller value for ##c_8##, surely?
But what does it even mean to compare an amplitude to a frequency?

The smallest base frequency possible in the applet is 0.01kHz = 10 Hz.

The amplitude in the applet can go from 0 to 4.

Thus, in the applet the amplitude of any of the terms will always be smaller than the frequency. Yet, in the example I gave (where the frequency used is 440Hz and the amplitude is 1) we always hear two separate notes (something the notes say happens when the amplitude approaches the frequency).
 
  • #4
zenterix said:
what does it even mean to compare an amplitude to a frequency?
It doesn’t. Where do you see that happening?
The ##c_n## values are the amplitudes of the pure tone constituent frequencies.
zenterix said:
The amplitude in the applet can go from 0 to 4.
As integer values only?
zenterix said:
something the notes say happens when the amplitude approaches the frequency
Are you perhaps misinterpreting "If the higher harmonics have much lower amplitudes than the fundamental frequency"? It means "If the higher harmonics have much lower amplitudes than the fundamental frequency (has)". I.e. If the higher harmonics have much lower amplitudes than (the amplitude of) the fundamental frequency.
 

FAQ: Understanding MIT's applet on sound with Fourier coefficients

What is the purpose of MIT's applet on sound with Fourier coefficients?

The purpose of MIT's applet on sound with Fourier coefficients is to help users visualize and understand how complex sound waves can be decomposed into simpler sine and cosine waves using Fourier analysis. This tool provides an interactive way to explore the relationship between time-domain signals and their frequency components.

How do Fourier coefficients relate to sound waves?

Fourier coefficients are numerical values that represent the amplitudes of the sine and cosine waves that make up a complex sound wave. By adjusting these coefficients, one can reconstruct the original sound wave from its individual frequency components. This decomposition is fundamental in understanding how different frequencies contribute to the overall sound.

Can I use the applet to analyze any sound wave?

Yes, the applet is designed to allow users to input various sound waves and see their corresponding Fourier coefficients. Users can either use predefined examples provided by the applet or input their own sound wave data to see how it can be broken down into its frequency components.

What educational benefits does the applet provide?

The applet provides several educational benefits, including a deeper understanding of the Fourier transform, insight into how complex sounds are constructed from simpler waves, and practical experience with manipulating and analyzing sound waves. It is a valuable tool for students and educators in fields such as physics, engineering, and music technology.

Are there any prerequisites for using the applet effectively?

While the applet is designed to be user-friendly, having a basic understanding of concepts such as sine and cosine waves, frequency, amplitude, and the Fourier transform will enhance the user's experience. Familiarity with these concepts will allow users to fully appreciate the applet's capabilities and the significance of the Fourier coefficients in sound analysis.

Back
Top