Spectrum is back!

The spectrum code that I wrote a few months ago was updated with a fourier transform of the audio signal that makes plotting a proper spectrum(frequency vs. amplitude) possible. The code is here. The integration uses Simpson’s 1/3 rule. Below are a few references that I found useful, plus some trigonometry knowledge from school days came in handy!

http://www.stewartcalculus.com/data/CALCULUS%20Early%20Transcendentals/upfiles/FourierSeries5ET.pdf

http://en.wikipedia.org/wiki/Fourier_series

 

Advertisements