Designing an adaptive filter (example : LMS filter http://en.wikipedia.org/wiki/Least_mean_squares_filter) is highly technical and would need high skills in signal processing in order to code such a filter.
Do you think there is somewhere a ready-to-use sourcecode implementation of such a filter?
Example : a simple notch (band reject) filter with a certain fixed frequency ?
I follow here the pilosophy mentionned here (http://www.mathworks.com/matlabcentral/newsreader/view_thread/14202) :
An alternate way of doing this is to use an adaptive LMS approach. The narrowest notch will be achieved by adding a sine wave of the same amplitude and opposite phase (same frequency) to the original waveform.