Pitch Bend input to send CC?

I haven't been able to figure this out. And I don't understand the option to "set variable to bend amount", when I can already set a variable under "bend amount:"

What would the rules look like for a conversion to CC, where incoming bipolar pitch bend would translate into +pitch = 64 to 127, -pitch = 62 to 0, with no pb = 63?

Thanks,
Max


Attachments:
![](upload://yCsmTohPRju2CVN3SvZJDszem8z.png)

Hi,

Set the incoming to any amount variable to pp

Then add the following rules:

// This shifts the upper byte into the lower value since pitch CC is only 7 bit precision

// We discard the 7 least significant byte

pp=pp>>7

// Now we need to offset the result (old MSB now new LSB) by 64 so that it is 0-127 instead of -64 to +63

pp=pp+64

 

Then output is control change, CC (whatever) on MIDI CH (whatever) value pp

 

Steve Caldwell
Bome Q and A Moderator and
Independent Bome Consultant/Specialist
bome@sniz.biz

1 Like

Thank you! That worked.

I always thought that the first pair was the MSB and the last the LSB. Guess I had it backwards.

Also figured I could simply discard the first pair with an unused variable. Worked as well.

-Max

Glad it worked!

this is working in my situation but i would like to increase the resolution and use only positive pitch bend values.

i’ve tried a couple of things, but the software i’m using (midi guitar 3) is responding as if i’m sending pc messages instead of cc. probably i’m generating invalid cc values.

what i’d like is to use just a portion of the positive range and spread that over cc values 0-127.

in pitch terms, just the first 50 cents of a half step bend (assuming pitchbend range is set to one half step).

or in pitchbend value terms, i’d like to discard minus 8192 to 0 and map 1 - 4096 to cc 0 - 127.

help!

Hi and welcome to the Bome community!

The same principles apply for what you are trying to do in this tutorial on scaling. You the input range, output, range and offset are just adjusted to your desired output. You discard any input with pitchbend in the negative range. Of course your resolution for a 7 bit CC with an absolute value will only be 0-127.

Steve Caldwell
Bome Customer Care


Also available for paid consulting services: bome@sniz.biz