Have you looked at looping pedals? There are at least a dozen. MXR Clone Looper, Boss Loop Station, TC Electronics Ditto, up to the Boss RC500, For a live performer on a stage, they are more practical that hooking up a computer.
If you're recording, just record the segment, and you can copy and paste as many instances as you want. There's no need for special looping software.