I agree with everything said above (BOTH, not either!) but still feel driven to answer your initial question.
The answer is here. However, it does require a TXI as written here (which I recommend getting anyway!), but you could substitute a 16n for the TXI, or just modify values with the keyboard (store them in a pattern and use [ and ] to increment them quickly).
The big omission in this script, IIRC, is the red mode, but if you look to my posts toward the end of the thread (and get real cozy using TT!), you’d be able to hack together something that emulates that functionality (in fact, it’s a much simpler thing to do than the above-linked script – basically just moving start points and active patterns around in the tracker).
That thread is a gold mine, generally. There are some issues with things requiring additional hardware OR being written in older syntax (which should, I think, still work, but is not always the most efficient // can cause weirdness like if you reference TR A but have the variable A assigned to a value). I’ve found most of my TT questions are answered there, and would advise thumbing through it once you’ve completed the studies // starting any quest that doesn’t seem covered in studies / manual there.
TT is probably the most underrated module in euro. I recall someone in my (quite large, globally recognized) electronic scene mentioning that I was the only person in our area using one, and have since seen quite a few gathering dust at friends’ houses because, frankly, it’s not an easy module to learn when you’re stoned. Stick with it and you will save SO MUCH time and money in the long run.
Shit, just today I learned you can control the Ansible LFO app without an Arc using TT, and I’m two years in… really just never stops unfolding (also: I still don’t get bitwise ops, and am sure it’ll blow my mind when I get to it in a few months).