Rotating gaps in a periodic curve, including through seam?

I’m having a terrible time trying to create gaps in a curve that rotate their position over several stacked curves, including smoothly going over the curve seam.

My goal is to allow the graph mapper in the attached to rotate the origins of the gap pattern through multiple rotations ( > 2pi).

I’m suffering two problems:

1: A tree-related problem where I can’t seem to get the rotations mapped properly for shatter, so I end up with no rotations at all:

…when I want the gaps to rotate according to graph mapper:

2: Once I do wrangle the data tree, I expect it to break when a gap spans past the curve seam, since the shatter parameters will be something like 0.9 and 1.1. The graph mapper multiplier should be able to get to an arbitrary number of rotations with the gaps smoothly

Source file:
gap-rotations.gh (17.4 KB)

maybe with a Seam component you can simplify the whole thing?


gap-rotations_Re.gh (17.7 KB)

Thank you! Usually my downfall is tree structure so I spent many hours working on that… and it’s a seam alignment issue!