Assuming this works with the latest version I think it should do what you want. Well not from your initial title and description but from this comment:
Jam long and record you nice, groovy piece. Change the length of the pattern so that it loops sounding decent. Resize to desired length using tool. Obviously recording with a fast BPM and/or high LPB will aid in accuracy of length for looping.