Hi Steve! Thank you again for helping me solve this challenge. I was able to solve it going a different route.
I found out that the knob (encoder) I was working with could be set to three different modes: Absolute, Relative, and Relative (Offset) from Maschine Studio Controler Editor software. I\'m sure you already know the benefits and drawbacks of each of those modes. However, I\'m going to type out my learning to help someone else looking at this in the future.
The encoder knob is endless. That means they can be turned left or right endlessly. There is no physical hard stop. The knob was set to mode Absolute by default. In my case, it was sending out MIDI CC value of 0 to 127. In this mode, even though the knob can keep turning when it bottomed out at 0 or topped out at 127, it no longer sent messages. The color wheels (Lift, Gamma, Gain, and Offset) in Davinci Resolve had much finner intervals which exceeded the short range of 0-127.
After trying different solutions (including the two you shared), I ended up testing the mode Relative. In Relative mode, the values sent are either 1 or 127. Those values can be used to increment (+1) or decrement (-1). I added two simple translators to emulate the mouse wheel up and down movements. For mouse wheel up translator, Incoming had: control change on ch. 1 with CC#22 and value of 1. Outgoing was set to Mouse / Mouse Wheel / Mouse Wheel 1 / Wheel Delta = 10. For the mouse wheel down translator, Incoming had: control change on ch. 1 with CC#22 and value of 127. Outgoing was set to Mouse / Mouse Wheel / Mouse Wheel 1 / Wheel Delta = -10. This gave control of a color wheel at intervals of 1/100th. It acted just like the mouse wheel.
This knob is also touch-sensitive. When I touch it, it would send out a MIDI message. This allowed me to use that touch message to move the mouse to the corresponding area on the screen which allowed the mouse wheel to work for that particular wheel.
The next step is to combine both translators into one and use the variable pp to track the incoming CC value (1 or 127) and dynamically change the variable rr for mouse wheel delta. I am taking this approach to see if I can get the mouse wheel to accelerate or decelerate based on how fast the knob is turned.
I am hoping you can help me figure out the remaining challenge with this approach. Because of the fine-grain control for the color wheel (-1.00 to 1.00), it takes many turns of the little knob (at +/- 0.01 increments) to reach either end. What would you recommend?
Also, perhaps I\'m doing something incorrectly. When I tested values from 1 to 1000 or -1 to -10000 for Wheel Delta, the speed of the \"movement\" remained the same for the Color Wheel. However, when tested by scrolling a Chrome browser window, it scrolled faster with larger numbers.