maxoepen
2020-02-15 01:57:55
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:
Steve-Bome Forum Moderator
2020-02-15 05:40:05
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
maxoepen
2020-02-16 02:09:16
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
Steve-Bome Forum Moderator
2020-02-16 04:43:20
comment
Glad it worked!