Track playback reset

I’m trying to recreate the sequencing effect when a track is forcibly reset.

On my Elektron MIDI sequencing I have a master pattern length set to 64.

Track 1 is a 32 step pattern that plays twice per master pattern

Track 2 is a 15 step pattern that will play twice fully then 2 steps from the start before forcibly resetting back to its first step.

I suspect that songs would cover this but would love to see a way to do it when just freely playing patterns on the fly.

Thanks in advance