I think you'd have to use time stretch, which kind of sucks if your sample isn't in beat long increments, say your sample was 2.5 beats long, or 1.25 bars long, rather than even 2 bars, 4 bars etc.
Though I suppose you could still automate the pitch and the time knob with it, although I'm sure it's gonna be a bit of a pain.