When re/sampling it would be great if the sample length/duration could be set automatically, something like this maybe?