if i was you i'd have a look into fourier transformation, especially fft:
http://en.wikipedia.org/wiki/Fast_Fourier_transform

like that you can transform your data from time space to frequency space. there you can process the data and after that you transform it back into time space. that's how most digital filters work.

edit: also have a look at
http://en.wikipedia.org/wiki/FFTW

edit2: and here
http://www.captain.at/howto-fftw-spectrograph.php

Last edited by Joey; 02/09/10 19:39.