This sounds a little like the Folia ground bass, and it’s little like a Chaconne, and it’s a canon. Five sections, played in canon. You can play this solo as a theme with variations, or a two-voice canon, or an ensemble piece, or…
Soundfile: https://soundcloud.com/vicdiesel/chacanonandon
Sheet music is available to my supporters on https://www.patreon.com/FluteCore