# Combining two global var toget a new CC on converted rotated knob

**URL:** <https://forum.bome.com/t/combining-two-global-var-toget-a-new-cc-on-converted-rotated-knob/2527>\
**Category:** Bome Products\
**Created:** [January 18, 2021, 5:54pm UTC](https://forum.bome.com/t/combining-two-global-var-toget-a-new-cc-on-converted-rotated-knob/2527 "2021-01-18T17:54:30Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![topsudio1979](https://forum.bome.com/letter_avatar_proxy/v4/letter/t/da6949/32.png) [@topsudio1979](https://forum.bome.com/u/topsudio1979)\
**Post date:** [January 18, 2021, 5:54pm UTC](https://forum.bome.com/t/combining-two-global-var-toget-a-new-cc-on-converted-rotated-knob/2527/1 "2021-01-18T17:54:30Z")

</div>

carry on earlier. i had 6 rotated knob thst had converted to CC n assigned. can i use them again by manipulsting the sysex so i can convrted as new CCs again n assign them again? im planning to use 2 switch as global var to lock them n use AND operator… can i do such of thing? thanks u r very helpfull n hands 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:** [January 18, 2021, 7:06pm UTC](https://forum.bome.com/t/combining-two-global-var-toget-a-new-cc-on-converted-rotated-knob/2527/2 "2021-01-18T19:06:25Z")

</div>

I’m not sure exactly what you are asking but if you want to use a few bytes of incoming SysEX as global variables to adjust the output (IE CC number and value) or visa versa, then yes.

Steve Caldwell  
Bome Customer Care

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

---

<div class="post-metadata">

**Author:** ![topsudio1979](https://forum.bome.com/letter_avatar_proxy/v4/letter/t/da6949/32.png) [@topsudio1979](https://forum.bome.com/u/topsudio1979)\
**Post date:** [January 19, 2021, 12:19pm UTC](https://forum.bome.com/t/combining-two-global-var-toget-a-new-cc-on-converted-rotated-knob/2527/3 "2021-01-19T12:19:49Z")

</div>

ok…  
here they are i got 2 rotated knob with midi number0-1 (var pp)  
-if i push a switch make it as ga=0 thenpp=pp

- push switch again then ga=1 thenpp=pp+10 (different midi number in same knob)  
problem is if i want to add another global var (push another switch). how to get another different midi number on that knob.  
im running out knobs, buy got a lot of switches. thanks in advance

---

<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:** [January 19, 2021, 1:42pm UTC](https://forum.bome.com/t/combining-two-global-var-toget-a-new-cc-on-converted-rotated-knob/2527/4 "2021-01-19T13:42:39Z")

</div>

I’m not sure if this is what you are asking.

This example has 2 knobs and 8 buttons.  
The first knob input is CC21 and output is CC 0-3 depending on which switch you push. We use the value of the buttons (note 0-3) to determine the CC  
The second knob input is CC21 and output is CC10-13. We use the value of buttons (note 4-7) to select the output.  
The global variable ga controls the CC number of the first knob and gb controls the CC number of the second knob.

[Knob-Assignment-2021-01-19.bmtp](https://forum.bome.com/uploads/short-url/xJyd1hVolQiBd9NwJMTe4OcNUy7.bmtp) (2.3 KB)

Steve Caldwell  
Bome Customer Care

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

---

<div class="post-metadata">

**Author:** ![topsudio1979](https://forum.bome.com/letter_avatar_proxy/v4/letter/t/da6949/32.png) [@topsudio1979](https://forum.bome.com/u/topsudio1979)\
**Post date:** [January 19, 2021, 1:45pm UTC](https://forum.bome.com/t/combining-two-global-var-toget-a-new-cc-on-converted-rotated-knob/2527/5 "2021-01-19T13:45:47Z")

</div>

ok let me try it now

---

<div class="post-metadata">

**Author:** ![topsudio1979](https://forum.bome.com/letter_avatar_proxy/v4/letter/t/da6949/32.png) [@topsudio1979](https://forum.bome.com/u/topsudio1979)\
**Post date:** [January 19, 2021, 2:02pm UTC](https://forum.bome.com/t/combining-two-global-var-toget-a-new-cc-on-converted-rotated-knob/2527/6 "2021-01-19T14:02:49Z")

</div>

there are no translator for midi in???

---

<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:** [January 19, 2021, 2:03pm UTC](https://forum.bome.com/t/combining-two-global-var-toget-a-new-cc-on-converted-rotated-knob/2527/7 "2021-01-19T14:03:56Z")

</div>

Yes there are but you might need to set up your Alias "My Controller’ to point to the device that you are using. You can do this in the MIDI menu of MT Pro

---

<div class="post-metadata">

**Author:** ![topsudio1979](https://forum.bome.com/letter_avatar_proxy/v4/letter/t/da6949/32.png) [@topsudio1979](https://forum.bome.com/u/topsudio1979)\
**Post date:** [January 19, 2021, 2:07pm UTC](https://forum.bome.com/t/combining-two-global-var-toget-a-new-cc-on-converted-rotated-knob/2527/8 "2021-01-19T14:07:28Z")

</div>

ive setup all incoming n outgoing ports in each translator but nothibg happen??

---

<div class="post-metadata">

**Author:** ![topsudio1979](https://forum.bome.com/letter_avatar_proxy/v4/letter/t/da6949/32.png) [@topsudio1979](https://forum.bome.com/u/topsudio1979)\
**Post date:** [January 19, 2021, 2:09pm UTC](https://forum.bome.com/t/combining-two-global-var-toget-a-new-cc-on-converted-rotated-knob/2527/9 "2021-01-19T14:09:00Z")

</div>

theres only three translator here… and all of them are init translator???

---

<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:** [January 19, 2021, 2:12pm UTC](https://forum.bome.com/t/combining-two-global-var-toget-a-new-cc-on-converted-rotated-knob/2527/10 "2021-01-19T14:12:25Z")

</div>

Click on the second preset called “Knob Assignment”. You will find 4 more translators there.

---

<div class="post-metadata">

**Author:** ![topsudio1979](https://forum.bome.com/letter_avatar_proxy/v4/letter/t/da6949/32.png) [@topsudio1979](https://forum.bome.com/u/topsudio1979)\
**Post date:** [January 19, 2021, 2:17pm UTC](https://forum.bome.com/t/combining-two-global-var-toget-a-new-cc-on-converted-rotated-knob/2527/11 "2021-01-19T14:17:08Z")

</div>

ups thats quite embarrassing… lol  
my midi source is sysex… so i modify the CC n note dource to sysex then?

---

<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:** [January 19, 2021, 2:21pm UTC](https://forum.bome.com/t/combining-two-global-var-toget-a-new-cc-on-converted-rotated-knob/2527/12 "2021-01-19T14:21:07Z")

</div>

Yes, modify as needed for your situtation.

---

<div class="post-metadata">

**Author:** ![topsudio1979](https://forum.bome.com/letter_avatar_proxy/v4/letter/t/da6949/32.png) [@topsudio1979](https://forum.bome.com/u/topsudio1979)\
**Post date:** [January 19, 2021, 2:30pm UTC](https://forum.bome.com/t/combining-two-global-var-toget-a-new-cc-on-converted-rotated-knob/2527/13 "2021-01-19T14:30:56Z")

</div>

hehe i still got no midi out

---

<div class="post-metadata">

**Author:** ![topsudio1979](https://forum.bome.com/letter_avatar_proxy/v4/letter/t/da6949/32.png) [@topsudio1979](https://forum.bome.com/u/topsudio1979)\
**Post date:** [January 19, 2021, 2:34pm UTC](https://forum.bome.com/t/combining-two-global-var-toget-a-new-cc-on-converted-rotated-knob/2527/14 "2021-01-19T14:34:20Z")

</div>

but i assumed this knob are controlling with gkobal variabel grom each switch right?  
my needed is to control knob with 2 global variable from 2 switch. so every time switch pressed the knob will produce different midi CC even tho its same knob that rotated

---

<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:** [January 19, 2021, 2:37pm UTC](https://forum.bome.com/t/combining-two-global-var-toget-a-new-cc-on-converted-rotated-knob/2527/15 "2021-01-19T14:37:33Z")

</div>

The way I set it up is to use different switch to set different CC for each knob but you can use a single switch to cycle through values if you want

Rules would look like

ga=ga+1  
if ga==5 then ga=0

This would cycle from 0-4 as you push the same button.

Steve Caldwell  
Bome Customer Care

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

---

<div class="post-metadata">

**Author:** ![topsudio1979](https://forum.bome.com/letter_avatar_proxy/v4/letter/t/da6949/32.png) [@topsudio1979](https://forum.bome.com/u/topsudio1979)\
**Post date:** [January 19, 2021, 10:33pm UTC](https://forum.bome.com/t/combining-two-global-var-toget-a-new-cc-on-converted-rotated-knob/2527/16 "2021-01-19T22:33:37Z")

</div>

hmmm… im not succeed yet steve…but i got it always in my head…  
…i think it judt miss communivstion between us…let say there are 3  
switches(switchA, switch 1n switch2) n 2 knobs and they were only send sysex . what i need is:  
1)unpress switch A (ga==0) & press switch 1(pp=00)… it will choose amp preset 1 , then knob 1 should translate from sysex to CC to control vol of amp preset 1, meanwhile knob 2 should translate from sysex to CC to control pan of amp preset 1  
2)unpress switch A (ga==0) & press switch 2(pp=01)… it will choose amp preset 2, then knob 1 should translate from sysex to CC to control vol of amp preset 2, knob2 is for panning it  
3)press switchA (ga==01)&press switch 1(pp==00).it will choose stompbox 1 in preset 1,then knob1 should control vol & pan of stompbox in preset 1.  
4)press switchA (ga==01)&press switch 2(pp==01).it will choose stompbox2 in preset 1,then knob should control vol & pan of stompbox2 in preset 1.  
and so on.  
can i do that? how?  
i spent half an hour just to type this… lol

---

<div class="post-metadata">

**Author:** ![topsudio1979](https://forum.bome.com/letter_avatar_proxy/v4/letter/t/da6949/32.png) [@topsudio1979](https://forum.bome.com/u/topsudio1979)\
**Post date:** [January 19, 2021, 10:41pm UTC](https://forum.bome.com/t/combining-two-global-var-toget-a-new-cc-on-converted-rotated-knob/2527/17 "2021-01-19T22:41:15Z")

</div>

PS:  
switch A is to determine wether is on preset mode or stompbox mode  
Switch 1-2 is choosing which preset n which stompbox  
knobs will follow it.

---

<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:** [January 20, 2021, 2:19am UTC](https://forum.bome.com/t/combining-two-global-var-toget-a-new-cc-on-converted-rotated-knob/2527/18 "2021-01-20T02:19:57Z")

</div>

OK, maybe I get it now. Is this what you are looking for?

Switch A Pressed = Stompbox  
Switch A Released = Amp

Switch 1 Pressed - Preset 1 of Stompbox or Amp depending on Switch A  
Switch 2 Pressed - Preset 2 of Stompbox or Amp depending on Switch A

Only Switch 1 or Switch 2 can be used at a given time Pressing one deselects the other

This requirement is really beyond the scope of free support so if you want me to build it, please contact me via email.

In general, however you need to have 4 presets:

- Amp Preset 1
- Amp Preset 2
- Stomp Preset 1
- Stomp Preset 2

Your buttons need to disable and enable 1 of the 4 presets created in MT Pro  
Stomp Preset 1 should be enabled by default (set at project start)  
All other presets should be disabled by default (again set at project start)

In your design you want only 1 preset at a time so set up your presets to automatically disable other presets when set.

Then it is a matter of looking at the state of Of the 3 buttons to determine which  
preset is selected

A and 1 Selected - Enable Stomp Preset 1  
A and 2 Selected - Enable Stomp Preset 2  
A released and 1 selected - Enable Amp Preset 1  
A release and 2 selected - Enable Amp Preset 1  
Then put your encoder SysEX assignments as translators within each preset.

You can use the value of ga for Switch A (0 when release and 1 when pressed)  
You can have switch 1 set gb to value of 0 when pressed  
You can have switch 2 set gb to value of 1 when pressed

So your rules would look at value of ga and gb to determine the preset you need.

ga=0 gb=0 - Stomp 1  
ga=0 gb=1 - Stomp 2  
ga=1 gb=0 - Amp 1  
ga=1 gb=1 - Amp 2

Again, if you want me to write this for you, reach out to me via email and I can provide an estimate. Hopefully though you have the logic now to be able to handle yourself but I’m happy to help with paid services.

Steve Caldwell  
Bome Customer Care

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

---

<div class="post-metadata">

**Author:** ![topsudio1979](https://forum.bome.com/letter_avatar_proxy/v4/letter/t/da6949/32.png) [@topsudio1979](https://forum.bome.com/u/topsudio1979)\
**Post date:** [January 20, 2021, 3:00am UTC](https://forum.bome.com/t/combining-two-global-var-toget-a-new-cc-on-converted-rotated-knob/2527/20 "2021-01-20T03:00:28Z")

</div>

okay… if u dont mind ill make it as my last option… this is fun doin midi logic btw, il ltry it first by my self steve, 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:** [January 20, 2021, 3:18am UTC](https://forum.bome.com/t/combining-two-global-var-toget-a-new-cc-on-converted-rotated-knob/2527/21 "2021-01-20T03:18:57Z")

</div>

Sounds good. Yes, I agree this is the best way to learn and especially if you are on a tight budget but have the time.

Steve

[Next page](https://forum.bome.com/t/combining-two-global-var-toget-a-new-cc-on-converted-rotated-knob/2527.md?page=2)
