macsaif Posted October 6, 2018 Report Share Posted October 6, 2018 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: -5260:-8192 - 150:0 150;0 5300:8191 (it has to be converted). Any idea? Quote Link to comment Share on other sites More sharing options...
Antichambre Posted October 6, 2018 Report Share Posted October 6, 2018 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 Just now, macsaif said: -5260:-8192 - 150:0 150;0 5300:8191 ??? Quote Link to comment Share on other sites More sharing options...
Antichambre Posted October 6, 2018 Report Share Posted October 6, 2018 (edited) You can maybe find here some idea to get a non-linear response and signed/unsigned conversion. Edited October 6, 2018 by Antichambre Quote Link to comment Share on other sites More sharing options...
macsaif Posted October 19, 2018 Author Report Share Posted October 19, 2018 I have figured out the following map and it works: MAP10/HWORDI 0:0 3000:0 7950:8191 8192:8192 8400:8192 13500:16383 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. The task is solved! Frank Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.