Looping, stretching, and pitch shifting