While programming some patches that make use of the wraparound option on CC Scroll while moving in increments/decrements greater than 1, I discovered that the software doesn’t do the math properly across the wraparound point. Any decrement that results in a value less than 0 produces a value of 127, and any increment that results in a value greater than 128 produces a value of 0. In my particular application, this produces some aberrant behavior when crossing 0. It would be preferable if the software would convert scroll values above 127 to (value - 128), and values below 0 to (128 + value).
An additional issue with CC Scroll: I have a number of presets set up to scroll through counters using a specific system, where Release sends a single increment message, Long Press Scroll sends repeated messages, and Double-Tap toggles between increment and decrement. The idea is that one should be able to scroll quickly through values by holding the switch down, and then select with more precision using single presses. What I’m finding is that the single increment message only get sent on every other button press, even if I wait a rather long time between presses. This is consistent on all of my presets that use this setup, and has persisted through the change from 3.8 to 3.9 (I’m currently on 3.9.1A). Anyone else seeing anything like this?
off the top of my head (dont have the devices with me now), when the upper limit is reached, it restarts back from the lower limit, and vice versa. So if you have a lower and upper limit of 0 and 127 respectively, and you have a step value of 10, and the current value is at 120, the next increment will result in the value starting at 0. same for decrement, if the value is currently at 4, the next decrement will result in the value being at 127.
If I understood you correctly, you are expecting the next increment to be value 3 (120 + 10 - 127), and decrement to be value 122 (4 - 10 + 127)?
Can you share a screenshot of your editor settings so I can have a better understanding of the issue?
Yes, precisely. I can describe why this is important for my use case if you like, but I can’t do it in only a few words, so I’ll spare you unless you’re really interested. ![]()
Here’s a sample of a preset showing the behavior I mentioned in my second message:
(Msg 5 is just like Msg 3, but increasing rather than decreasing.) I’ve tried putting the double-tap message at the end of the preset instead of the beginning, but the behavior remains. The name of the preset includes the % shorthand for the counter, which is how I observed that this was happening.
OK, I figured out the scrolling problem from my screenshot - I also had Message Scroll ON for some reason. Turning it off eliminated the problem.
Would be good to know! because I thought about this problem when I wrote the code and decided on the approach we are using now. and then changing it would be tricky now because we don’t want to break any workflow (hopefully there isn’t), and adding yet another parameter will
make things confusing
OK, you asked! Strap in - this will take a while. 
I’m programming presets for the looper algorithm in an Eventide TimeFactor, which has controls to set the Start and Length of the loop once it’s recorded. These controls are nondestructive, so you can always recover the full length of the loop, and they operate relative to the total loop length: mapped to a CC value, 0 is always the start of the loop, 63 is the middle, and 127 is the end, regardless of how long the loop is. After a loop is recorded, the controls default to Start 0 and Length 127. If I leave Start at 0 and change Length to 63, the looper is now only playing the first half of the loop. If I then leave Length at 63 and set Start to 64, the looper is playing the second half of the loop.
These controls have an important limitation: the Eventide doesn’t wrap a loop around the original loop point, but instead truncates playback at the end of the loop. So, for example, if I leave Length at 63 and change Start to 96, I don’t get a loop that consists of the last quarter + the first quarter of my loop - I just get the last quarter of the loop. (Formally, Start + Length must always be <= 127, and the Eventide reduces Length dynamically as needed to fulfill this requirement.) This will become important in a minute.
I have a bank of presets that send specific CC values for Start and Length to allow instant access to any of the 1/2, 1/4, and 1/8 subdivisions of a loop. After upgrading to the 3.9 firmware, I’m using the variable-increment counter function to set up a bank of presets that will manipulate a “window” of playback; I can change the Length parameter to define a 1/4, 1/8, or 1/16-sized window, and I can use the increment feature to move that window around in distances equal to 1/4, 1/8, or 1/16 of the loop at a time. This is where I run into problems with the math. Let’s say, for example, that I’m playing a window that’s the last 1/8 of my loop (Start 112, Length 15). I use the “+ 1/4” preset to move that window ahead by 1/4 of the loop (Start +32), which wraps around the Start 0 point. Logically, I should end up with Start 16 (112 + 32 - 128), which would be the beginning of the second 1/8 of the loop. Instead, the MC8 rounds any counter value >127 to 0, and I end up playing the first 1/8 of the loop instead (Start 0, Length 15).
Moving in reverse across zero has a more serious complication. If I’m playing the first 1/4 of the loop (Start 0, Length 31), and press the “- 1/4” preset, I should end up with Start 96 (0 - 32 + 128) and Length 31, playing the last 1/4 of the loop. Instead the MC8 sets the Start counter to 127. As mentioned above, the Eventide then truncates the Length parameter to fit within the loop length, so what I get is a loop with Start 127 and Length 0, which is basically a granular sample in the milliseconds range. If I then immediately try to recover by hitting the “- 1/4” preset again, I end up with a Start value of 95, which is slightly off the exact-divisions value (and which may be more or less noticeable depending on the total loop length), and my subsequent movements will stay slightly off the desired values unless I go to a different page and use the “shift by 1” preset for the Start value, or I move forward across the zero point again and reset the counter to 0.
Hopefully this made sense: it’s a long and rather technical explanation for a very specific use case, but it’s the thing I was most excited to do with the new scroll-counter setup, and it’s frustrating that I can’t get it to work quite right.
thanks for the info! ok i’ve added in my backlog to check it out in the next update - maybe we can add an additional option for wraparound type.
In the meantime, can you drop us an email regarding this? I’ll compile a version for you with the altered wraparound logic for now.
Will do - thanks for the consideration!
