Generate specific sound following a pattern

I am looking for a way, probably with Nyquist code, to generate an audio track using a wav file pattern that I would repeat in this new track a number of time. For instance, I have a drum pattern of a few seconds and I would like to generate a track concatenating a series of instances of this pattern. Is there a way to do it fast and easy in Audacity?

Use the “Repeat” effect.

Excellent. Thanks, Steve.