Hi Mikael. I’m not sure I understand.
MIDI messages do not allow for anything greater than 127 or less than 0.
With this said, many relative encoders send 127 for -1, 126 for -2 etc down to 64 for left turn.
For less than 65 they generate 1, 2, 3 etc for positive amounts. (right turn).
Is this what you want.
Turn right on knob and it sends an increment, turn left and it sends a decrement MIDI message. On outgoing are you looking for MIDI message. Program Change, CC increment decrement, or note (higher or lower).
Also, I understand your rotary doesn’t go beyond 127 or less than 0 but if you keep turning left when already at 0, will it continue to send more 0’s? If turning right when it is at 127, will it continue sending 127. If it does, then the conversion will be easier. If not, there will need to be a mechanism to re-center the value.
Bome Customer Care
Also available for paid consulting services: firstname.lastname@example.org