I finally had enough time and energy to adapt some code for the Fourier
transform and implement it in SDL.
Great fun with arrays as always ;)
I made a simple data set by adding together some sine waves with different
frequencies and then applying the transform to that data.
Here's a quick sketch of the input data (black line), the component sine waves
(red, orange, yellow, green, and blue), the known frquencies (dark yellow
cylinders), and the FFT output (dark magenta cylinders)
Post a reply to this message
Attachments:
Download 'fft_test_2.png' (145 KB)
Preview of image 'fft_test_2.png'
|