We are about to switch to a new forum software. Until then we have removed the registration on this forum.
If I have several variables, all changing on continuous cycles based on frameCount, how do I adjust their periods so that the same combination doesn't repeat itself too soon?
In a simple example, if translateX moves an object back and forth across the screen every 100 frames, rotateY turns it all the way around every 200 frames, and its hue cycles through the spectrum every 400 frames, I'm going to get the exact same position/angle/colour combination every 400 frames.
If I change to numbers that seem like they "don't go", like 177 frames for rotateY and 419 frames for the hue, my intuition says I'm going to get a much longer animation before it repeats itself, but I'm not sure what the mathematical principle is here or how I'd go about working out good numbers for, say, 6 variables, or what the total time before repeat would be.
Ideally, I'd be able to pick a repeat time and work backwards from there.
Relevant link: https://longplayer.org/, a musical composition which apparently repeats itself every 1000 years by using multiple overlapping tracks. I'm only looking to do 45 minutes or so, so it should be easy!