seperate half-wave rectify from first-difference filter