# CC converted to Pitch Bend

**URL:** <https://forum.bome.com/t/cc-converted-to-pitch-bend/2725>\
**Category:** Bome Products\
**Created:** [February 13, 2021, 9:17pm UTC](https://forum.bome.com/t/cc-converted-to-pitch-bend/2725 "2021-02-13T21:17:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![david-hartl](https://forum.bome.com/letter_avatar_proxy/v4/letter/d/b5e925/32.png) [@david-hartl](https://forum.bome.com/u/david-hartl)\
**Post date:** [February 13, 2021, 9:17pm UTC](https://forum.bome.com/t/cc-converted-to-pitch-bend/2725/1 "2021-02-13T21:17:32Z")

</div>

Hi Steve, I tried to convert from a MIDI CC (0-127) Signal to a Pitch Bend (-8192 to +8128).  
However, I like to simulate the pitch wheel which is normaly on the keyboard.  
I could not figure out how to do it. I ask for help please. Thanks!

---

<div class="post-metadata">

**Author:** ![SteveC](https://forum.bome.com/user_avatar/forum.bome.com/stevec/32/8250_2.png) [@SteveC](https://forum.bome.com/u/SteveC)\
**Post date:** [February 13, 2021, 9:29pm UTC](https://forum.bome.com/t/cc-converted-to-pitch-bend/2725/2 "2021-02-13T21:29:16Z")

</div>

Hi David,

Please find the attached. Please realize that since a CC is only 128 values and a pitch bend is 16384, that the control will not be as precise.

In the rules, I basically duplicate the least significant 7 bits into the upper 7 bits so that I still get full range of motion (although as I said, less precision).

// Shift into upper  
tt=qq\<\<7  
// OR with lower  
tt=tt||qq

// then use tt for output to get a 14 bit value

[CC-to-Pitch-Bend-2021-02-13.bmtp](https://forum.bome.com/uploads/short-url/415nDmO3wwY6cwLmO8HiQNAnp4C.bmtp) (1.0 KB)

Steve Caldwell  
Bome Customer Care

* * *
_Also available for paid consulting services: bome@sniz.biz_

---

<div class="post-metadata">

**Author:** ![david-hartl](https://forum.bome.com/letter_avatar_proxy/v4/letter/d/b5e925/32.png) [@david-hartl](https://forum.bome.com/u/david-hartl)\
**Post date:** [February 13, 2021, 9:43pm UTC](https://forum.bome.com/t/cc-converted-to-pitch-bend/2725/3 "2021-02-13T21:43:08Z")

</div>

Thank for the help and for the file.  
I was completly on the wrong way.
