Hi All,
I don’t find the solution to map my midi encoder to act like dec when scrolling left and inc when scrolling right.
I want to use my encoder in my daw to set pitch slider which has a default value Pitch +/- 0.
Additionally the encoder has button, so setting up to send a 64 value to reset my pitch would be also nice.
The following should do the trick. I use the global variable ga to track the current pitch bend amount.
// incoming value is qq
// first subtract 64 to get to relative position of 0
qq=qq-64
// multiplier for faster response (optional(
qq=qq*100
// add to last known value of ga to come up with new amount
ga=ga+qq