# Input value 63 to -CC, 65 to +CC

**URL:** <https://forum.bome.com/t/input-value-63-to-cc-65-to-cc/3326>\
**Category:** Bome Products\
**Created:** [July 12, 2021, 9:39pm UTC](https://forum.bome.com/t/input-value-63-to-cc-65-to-cc/3326 "2021-07-12T21:39:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![J.Boss](https://forum.bome.com/user_avatar/forum.bome.com/j.boss/32/1220_2.png) [@J.Boss](https://forum.bome.com/u/J.Boss)\
**Post date:** [July 12, 2021, 9:39pm UTC](https://forum.bome.com/t/input-value-63-to-cc-65-to-cc/3326/1 "2021-07-12T21:39:56Z")

</div>

I’m really lost with the formula. I watched the YouTube videos on changing this, but I’m doing something wrong.  
Going clockwise on a platter outputs cc value 65. Counterclockwise outputs 63.  
So I’m trying to change that so it can be a range of 0-127 knob.  
Clock wise would increase the value up to 127 and stop,  
Counterclockwise decrease it to 0 and stop.

![Don't Know](https://forum.bome.com/uploads/default/original/2X/e/e7ede8b123ec4e733bbc0bb411476f0fd0ff0089.png)

---

<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:** [July 12, 2021, 10:01pm UTC](https://forum.bome.com/t/input-value-63-to-cc-65-to-cc/3326/2 "2021-07-12T22:01:05Z")

</div>

The example shows above is using values of 127 for negative and 1 for positive. You want 63 (0x3f) and 65 (0x41)

The following rules should work. Each knob will need it’s own global variable. In this case I’m using ga.

if qq\>0x40 then ga=ga+1  
if qq\<0x40 then ga=ga-1  
if ga\<0 then ga=0  
if ga\>127 then ga=127

Steve Caldwell  
Bome Customer Care

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

---

<div class="post-metadata">

**Author:** ![J.Boss](https://forum.bome.com/user_avatar/forum.bome.com/j.boss/32/1220_2.png) [@J.Boss](https://forum.bome.com/u/J.Boss)\
**Post date:** [July 12, 2021, 10:20pm UTC](https://forum.bome.com/t/input-value-63-to-cc-65-to-cc/3326/3 "2021-07-12T22:20:05Z")

</div>

Works beautifully. I’m able to link the platter to Fruity Scratch now.  
And I can use that formula for any other of the endless encoders now.  
Thank you.

![Fruity Scratch](https://forum.bome.com/uploads/default/original/2X/0/0894a521207b1b8e9842452f4c36782d4a966804.png)

---

<div class="post-metadata">

**Author:** ![J.Boss](https://forum.bome.com/user_avatar/forum.bome.com/j.boss/32/1220_2.png) [@J.Boss](https://forum.bome.com/u/J.Boss)\
**Post date:** [July 15, 2021, 9:24pm UTC](https://forum.bome.com/t/input-value-63-to-cc-65-to-cc/3326/4 "2021-07-15T21:24:57Z")

</div>

It actually doesn’t work beautifully. Fruity Scratch links with knobs no problem, but the platters just struggle. It works fine for a few seconds, but then always shoots the play header to one side or kind of stutters itself randomly. I dunno, just giving up.

---

<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:** [July 15, 2021, 11:33pm UTC](https://forum.bome.com/t/input-value-63-to-cc-65-to-cc/3326/5 "2021-07-15T23:33:35Z")

</div>

Maybe if you showed the log text with MIDI IN and MIDI OUT set, we could figure out what is going on?

---

<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:** [July 18, 2021, 5:13am UTC](https://forum.bome.com/t/input-value-63-to-cc-65-to-cc/3326/7 "2021-07-18T05:13:37Z")

</div>

Sound great,

---

<div class="post-metadata">

**Author:** ![J.Boss](https://forum.bome.com/user_avatar/forum.bome.com/j.boss/32/1220_2.png) [@J.Boss](https://forum.bome.com/u/J.Boss)\
**Post date:** [July 18, 2021, 7:33am UTC](https://forum.bome.com/t/input-value-63-to-cc-65-to-cc/3326/8 "2021-07-18T07:33:19Z")

</div>

I wasn’t even thinking, but that’s potentially a beta leak. I shouldn’t have said that.  
Wow I’m stupid. I deleted the post.
