Me Spectrumsta!

Again, a spectrum? Yes, why not?! This time it’s done (as to my knowledge, which just grew exponentially today) correct, using a DFT. The previous spectrum used a continous Fourier Transform which kept repeating frequencies! If you test it for frequencies around 16KHz it’d show two bars in two places. The worst thing was that I thought I could be fixed using the normal Fourier Transform(my knowledge of FT is entirely, ad-hoc!). Then I looked at DFT on Wikipedia, realizing that it couldn’t be easily fixed as I thought. And there I see the images illustrating the EXACT same thing! Yay. (Re)implementation time! I redid the spectrum using DFT, and it is still not FFT. Thus, why I didn’t use the word before, it’d be misleading if I use it to describe this project.

This new version has a good frequency response, for frequencies which can be heard 20Hz-20KHz.

So, “Ba Dum Tiss”, here’s the 20Hz to 20KHz “sweep” and some random parts of Paul Van Dyk feat. Michelle Leonard – Lost In Berlin.

And the source.

References,

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

http://stackoverflow.com/questions/9645983/fft-applying-window-on-pcm-data

http://stackoverflow.com/questions/7674877/how-to-get-frequency-from-fft-result

Advertisements

One thought on “Me Spectrumsta!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s