Please check out [url=http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=1073.0]EJS version of Fourier Synthesis (You can hear the sound,too!)[/url] if you need to do Fourier analysis!