Try looking up Fast Fourier Transforms. That will convert your signal to an array of frequency magnitudes, you can attenuate the lower frequencies, and then reverse-FFT back to the filter signal.