cutws function

Cut wave by samples