Hi welcome....
Check out Rbrts looper objects and help patches help/library/community/rbrt/looper and Lpr they have the bones of what you are looking for.
There is also sss/delay/loop4 which as a basic 4 track looper with great with bouncing capability, but no pitch, and not asynchronous, his Factotum object too which is amazingly flexible ....those are the best places to look, and slightly different approaches....once you've had a look at those come back and we can discuss it further...have fun
or go basic with table record/read objects and build from there, I think Mytas also has a looper based on delays in his community Sebti folder, his video fun with delays is also quite helpful for that approach here all his patching videos are quite nice for orientating yourself initiallly
Best of Luck