Desired behavior:
I am using a MIDI foot controller to increase a parameter's value by 1 every time I press it.
-It starts at 1 (or 0).
-Each foot press increase value by 1, and it eventually reaches 10.
-After 10, I'd then like the next foot press to result in a value of 1.
In other words, I'd like to repeat 1 to 10 on a loop ad infinitum. (1 2 3 4 5 6 7 8 9 10, 1 2 3 4 5 6 7 8 9 10, etc)
Current behavior:
https://youtu.be/9Z2zboW4wI8
As seen in my video recording above, this is almost working as desired with my current configuration. The value successfully resets back to 1 after reaching 10 the first time. However, after reaching 10 the second time, it then continues on to 11, 12, 13 etc.
This is the expression I'm using:
Code: Select all
if (x > 10, x - 10, x)
I was hoping that this would mean every time x goes to 11, it subtracts 10, thereby restarting back at 1. But like mentioned above, this only works the first time.
What do I need to change to have the value always go from 10 back to 1?