Does anybody know the math functions involved in making a spectrum analyzer like in winamp. Any code/links would be appreciated.