Problem looping with the "Repeat" effect

Moderator note: split from https://forum.audacityteam.org/t/problem-with-the-repeat-effect/24737/1

Hi I’m brand new to audacity so apologies if I ask really basic questions. I have just imported a drum loop and used the repeat section but it does not sync perfectly at all, there is a very obvious gap between the loops. I’ve tried tweaking the loop start times but to no joy. Is there a way to get a nice seamless transition?

Any help gratefully appreciated!

Only by carefully adjusting the length so that it is an exact number of beats.
Note that MP3 format is unsuitable for loops because the start and end positions of MP3s are imprecise (there is always a little bit of silence added to the start of an MP3).