[PD] looping at the end of sample