I am trying to apply a map for pitchbend to change its response curve. I am receiving the cc from kb board via midi and forwarding to midi device. Normally it sends values in range - 8192:8191 but it is limited to - 5260:5300 due to lower pot range. I would like to extend this smaller range to the -8292:8191 as it should be and make it less responsive in the mid rage BTW - 150 and 150. At the receiver I am setting the range to - 16384:16383. I am trying to apply a map for sender but no idea. If I am making a map 0:0 16191:16191 it is forwarding the reserved values however do not know how to convert the signed to unsigned. I need the following curve:
first, -150 to 150 is not a regular range, better to use 2n value and use bit shifting to divide or multiply by 2
E.g: 16383 >> 7 = 127
signed <> unsigned conversion depends on what you want exactly, and I don’t understand exactly what you want to do
the 8192 value means the centerpoint than there is a dead zone around center (values 7950 and 8400) than the values 3000 and 13500 are doing the scaling to full range.