Music and Computers
Play with an FFT
This Applet lets you edit real or imaginary values in the Time Domain or
the Frequency Domain. As you edit the values one domain, the other domain
is automatically recalculated using an FFT. The magnitude and phase of
the Frequency Domain is also shown.
(We would like to thank Dave
Hale for posting FFTLab to the web. It was the starting point for developing
this Applet.)
To Do:
-
Click the "Clear" button to zero out all the data.
-
Drag the mouse straight across the top-left box labelled "Time Domain",
"Real". Notice that a peak appears in the first bin of the Frequency Domain.
This is because a constant value has a frequency of zero*fundamental.
-
Draw a single cycle of a sine wave in the same box. Notice that the peak
now appears in the second bin representing the 1*fundamental frequency
of the FFT.
-
Draw two sine waves within the same box and notice the Frequency Domain
peak moves to the third bin representing 2*fundamental.
-
Hit Clear and then click once in the box so that you get a single peak.
Notice that the Frequency Domain now shows a constant Magnitude. This is
because an "impulse" peak has a spectrum that contains all frequencies
equally.
-
Hit Clear and then click on the first bin. You should see a sine wave in
the Frequency Domain. This shows that the Time Domain and the Frequency
Domain are complementary.
-
Poke around in the Frequency Domain boxes, drawing various signals and
watching the results, until everything suddenly becomes clear and your
head begins to glow.