Replace impulse with triangle