starting resampling in pd externaly