Sweeping filter technique for frequency analysis