# Make switch button as toggle button

**URL:** <https://forum.bome.com/t/make-switch-button-as-toggle-button/2342>\
**Category:** Bome Products\
**Created:** [January 4, 2021, 1:40am UTC](https://forum.bome.com/t/make-switch-button-as-toggle-button/2342 "2021-01-04T01:40:10Z")\
**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 4, 2021, 1:40am UTC](https://forum.bome.com/t/make-switch-button-as-toggle-button/2342/1 "2021-01-04T01:40:10Z")

</div>

hi…  
i need to assign a midi CC to a vst control that only had a bypass function (switch to OFF), in other forum they told it is possible to assign for switch ON function with same midi CC as long as it set min and max value to it. this the link btw : [IK Multimedia • Foot controller takes 2 presses to toggle](https://cgi.ikmultimedia.com/ikforum/viewtopic.php?f=5&t=13655)

how can i do it in MT? plz ur enlighment needed, 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 4, 2021, 2:32am UTC](https://forum.bome.com/t/make-switch-button-as-toggle-button/2342/2 "2021-01-04T02:32:12Z")

</div>

The attached will take CC of any value in and toggle note 64 out for each CC received. It doesn’t matter the value of the incoming CC.

[CC-Any-Value-In-Note-Toggle-Out.bmtp](https://forum.bome.com/uploads/short-url/aYTBNVe1epw4vaiRlrYIPbY6fDB.bmtp) (1.0 KB)

I hope this is what you were looking for.

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 4, 2021, 3:41am UTC](https://forum.bome.com/t/make-switch-button-as-toggle-button/2342/3 "2021-01-04T03:41:40Z")

</div>

ok, thanks steve… ill try it tonight.  
but is it set Midi CC as incoming? my controller only send midi sysex and PC btw…is it matter?? 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 4, 2021, 3:42am UTC](https://forum.bome.com/t/make-switch-button-as-toggle-button/2342/4 "2021-01-04T03:42:57Z")

</div>

Just set you incoming message to match the SysEX and it should work fine.

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 4, 2021, 9:34am UTC](https://forum.bome.com/t/make-switch-button-as-toggle-button/2342/5 "2021-01-04T09:34:53Z")

</div>

ok… ill try it so… do my understandingbouy this correct steve? ithe point is i need to produce outgoing midi CC, same CC but has two value (0 and 127) for turn ON n OFF? Correct Me If Im Wrong (CMIIW) plz, thanks

---

<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 4, 2021, 2:39pm UTC](https://forum.bome.com/t/make-switch-button-as-toggle-button/2342/6 "2021-01-04T14:39:40Z")

</div>

hi steve… ill try modifying ur attachment, but it wont work. i set my incoming as sysex : F0 42 30 60 08 4E 00 F7  
in rules i set the 13-14th digit(10) as var pp for outgoing 3-4th digi tCC value and15-16th (F7) digit as qq for 5-6th digit CC… but itd just wont wotk as i expected… this MIDI thing are driving me nuts… but seems i cant stop thinking bout it. 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 4, 2021, 2:45pm UTC](https://forum.bome.com/t/make-switch-button-as-toggle-button/2342/7 "2021-01-04T14:45:02Z")

</div>

abd what is ga anyway?

---

<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 4, 2021, 3:51pm UTC](https://forum.bome.com/t/make-switch-button-as-toggle-button/2342/8 "2021-01-04T15:51:33Z")

</div>

Hi, can you show me a log of what SysEx messages are being sent upon

- Pedal Press
- Pedal Release

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 4, 2021, 4:38pm UTC](https://forum.bome.com/t/make-switch-button-as-toggle-button/2342/9 "2021-01-04T16:38:48Z")

</div>

ok…sonehow i think i got it right now… thsnks for ur project above i can have min max for one CC by pressing same knob.  
but nw heres another chalenge… i want this only execute when pp is\>=10, but if pp\<10, i just want the incoming nidi (PC n Sysex) be as outgoing als, no chsnge needed. [Switch2toogle 4AT5.bmtp](https://forum.bome.com/uploads/short-url/5q4qVM8Im82Cj4gS87T50uYF7Rl.bmtp) (1.1 KB)

---

<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 4, 2021, 4:46pm UTC](https://forum.bome.com/t/make-switch-button-as-toggle-button/2342/10 "2021-01-04T16:46:09Z")

</div>

sorry… hetrs the logs :

11: MIDI IN [Focusrite USB MIDI]: C0 14  
12: MIDI IN [Focusrite USB MIDI]: F0 42 30 6D 08 4E 00 14 F7  
13: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: B0 14 00  
14: MIDI IN [Focusrite USB MIDI]: C0 14  
15: MIDI IN [Focusrite USB MIDI]: F0 42 30 6D 08 4E 00 14 F7  
16: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: B0 14 7F  
17: MIDI IN [Focusrite USB MIDI]: C0 14  
18: MIDI IN [Focusrite USB MIDI]: F0 42 30 6D 08 4E 00 14 F7  
19: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: B0 14 00  
20: MIDI IN [Focusrite USB MIDI]: C0 14  
21: MIDI IN [Focusrite USB MIDI]: F0 42 30 6D 08 4E 00 14 F7  
22: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: B0 14 7F  
23: MIDI IN [Focusrite USB MIDI]: C0 14  
24: MIDI IN [Focusrite USB MIDI]: F0 42 30 6D 08 4E 00 14 F7  
25: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: B0 14 00  
26: MIDI IN [Focusrite USB MIDI]: C0 14  
27: MIDI IN [Focusrite USB MIDI]: F0 42 30 6D 08 4E 00 14 F7  
28: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: B0 14 7F  
29: MIDI IN [Focusrite USB MIDI]: C0 14  
30: MIDI IN [Focusrite USB MIDI]: F0 42 30 6D 08 4E 00 14 F7  
31: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: B0 14 00  
32: MIDI IN [Focusrite USB MIDI]: C0 18  
33: MIDI IN [Focusrite USB MIDI]: F0 42 30 6D 08 4E 00 18 F7  
34: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: B0 18 7F  
35: MIDI IN [Focusrite USB MIDI]: C0 18  
36: MIDI IN [Focusrite USB MIDI]: F0 42 30 6D 08 4E 00 18 F7  
37: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: B0 18 00  
38: MIDI IN [Focusrite USB MIDI]: C0 18  
39: MIDI IN [Focusrite USB MIDI]: F0 42 30 6D 08 4E 00 18 F7  
40: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: B0 18 7F  
41: MIDI IN [Focusrite USB MIDI]: C0 18  
42: MIDI IN [Focusrite USB MIDI]: F0 42 30 6D 08 4E 00 18 F7  
43: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: B0 18 00  
44: MIDI IN [Focusrite USB MIDI]: C0 18  
45: MIDI IN [Focusrite USB MIDI]: F0 42 30 6D 08 4E 00 18 F7  
46: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: B0 18 7F  
47: MIDI IN [Focusrite USB MIDI]: C0 18  
48: MIDI IN [Focusrite USB MIDI]: F0 42 30 6D 08 4E 00 18 F7  
49: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: B0 18 00  
50: MIDI IN [Focusrite USB MIDI]: C0 1C  
51: MIDI IN [Focusrite USB MIDI]: F0 42 30 6D 08 4E 00 1C F7  
52: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: B0 1C 7F  
53: MIDI IN [Focusrite USB MIDI]: C0 1C  
54: MIDI IN [Focusrite USB MIDI]: F0 42 30 6D 08 4E 00 1C F7  
55: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: B0 1C 00  
56: MIDI IN [Focusrite USB MIDI]: C0 1C  
57: MIDI IN [Focusrite USB MIDI]: F0 42 30 6D 08 4E 00 1C F7  
58: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: B0 1C 7F  
59: MIDI IN [Focusrite USB MIDI]: C0 1C  
60: MIDI IN [Focusrite USB MIDI]: F0 42 30 6D 08 4E 00 1C F7  
61: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: B0 1C 00  
62: MIDI IN [Focusrite USB MIDI]: C0 1C  
63: MIDI IN [Focusrite USB MIDI]: F0 42 30 6D 08 4E 00 1C F7  
64: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: B0 1C 7F  
65: MIDI IN [Focusrite USB MIDI]: C0 1C  
66: MIDI IN [Focusrite USB MIDI]: F0 42 30 6D 08 4E 00 1C F7  
67: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: B0 1C 00  
68: MIDI IN [Focusrite USB MIDI]: C0 1C  
69: MIDI IN [Focusrite USB MIDI]: F0 42 30 6D 08 4E 00 1C F7  
70: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: B0 1C 7F  
71: MIDI IN [Focusrite USB MIDI]: C0 1C  
72: MIDI IN [Focusrite USB MIDI]: F0 42 30 6D 08 4E 00 1C F7  
73: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: B0 1C 00  
74: MIDI IN [Focusrite USB MIDI]: C0 1C  
75: MIDI IN [Focusrite USB MIDI]: F0 42 30 6D 08 4E 00 1C F7  
76: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: B0 1C 7F  
77: MIDI IN [Focusrite USB MIDI]: C0 1C  
78: MIDI IN [Focusrite USB MIDI]: F0 42 30 6D 08 4E 00 1C F7  
79: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: B0 1C 00  
80: MIDI IN [Focusrite USB MIDI]: C0 1C  
81: MIDI IN [Focusrite USB MIDI]: F0 42 30 6D 08 4E 00 1C F7  
82: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: B0 1C 7F  
83: MIDI IN [Focusrite USB MIDI]: C0 1C  
84: MIDI IN [Focusrite USB MIDI]: F0 42 30 6D 08 4E 00 1C F7  
85: MIDI OUT [Bome MIDI Translator 1 Virtual Out]: B0 1C 00

---

<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 4, 2021, 5:08pm UTC](https://forum.bome.com/t/make-switch-button-as-toggle-button/2342/11 "2021-01-04T17:08:03Z")

</div>

Here you go.

The first translator handles SysEX where incoming value is 0x14 (decimal 20) and toggles CC1  
I use gb as the global variable to toggle.  
The second translator toggles CC2 with the incoming value of 0x18 (decimal 24)  
I use gc as the global variable to toggle.  
The third one passes through anything else untouched. We make sure it is not 20 or 24 first.

[SysEX to CC-Toggle.bmtp](https://forum.bome.com/uploads/short-url/dTJQnXNrEDwDvrxnynUeX6ecxjs.bmtp) (1.4 KB)

Steve Caldwell  
Bome Customer Care

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

---

<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 4, 2021, 6:10pm UTC](https://forum.bome.com/t/make-switch-button-as-toggle-button/2342/12 "2021-01-04T18:10:59Z")

</div>

That should do it.

---

<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 4, 2021, 10:40pm UTC](https://forum.bome.com/t/make-switch-button-as-toggle-button/2342/13 "2021-01-04T22:40:19Z")

</div>

dorry… just woke up. ill try it yonight 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 4, 2021, 11:46pm UTC](https://forum.bome.com/t/make-switch-button-as-toggle-button/2342/14 "2021-01-04T23:46:05Z")

</div>

OK, let us know.

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 5, 2021, 10:50am UTC](https://forum.bome.com/t/make-switch-button-as-toggle-button/2342/15 "2021-01-05T10:50:12Z")

</div>

finally… after a few adjustment in third translator… once again on of my problem solved, thanks to u steve n of course this mighty MT  
tho to b honnest i still cant get the pricipal knowledge of global variable since there were very less information bout it… such as whats fhe rule of gb==1? where it written? how? all i can just assumed that its for something had. done. :smiley

---

<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 5, 2021, 11:13pm UTC](https://forum.bome.com/t/make-switch-button-as-toggle-button/2342/16 "2021-01-05T23:13:07Z")

</div>

Hi the operators (== != etc) and rules are all in the [manual,](https://www.bome.com/products/miditranslator/support/manual) however if you don’t speak English it might be difficult for you.

You can also get to your manual by F1 or through the help menu of MT Pro.

I’m glad you got it working!

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 6, 2021, 2:37am UTC](https://forum.bome.com/t/make-switch-button-as-toggle-button/2342/17 "2021-01-06T02:37:07Z")

</div>

well ok, true itsnot my native language… but with all technolgy these day english shouldnt be major problem for me. all i knew from manual its just theres global n local parameter… but thr global one is less information then local one, such as what it stand for? whats affect for or related with?  
anyway heres bad news nou this topic, i did manage producing CC from Sysex, but when i try to limit it whit rules its only affect if rr\>16. its just keep producing CC even if rr=00, so i have to make adjustment on my vst (thats means have to limiting the scope of my vst) only for this script work.  
FYI i just set one translator with this so if controller send sysex that not in threshold, i expect incoming==outgoing( nochange at all) .  
i more prefer to set treshold with range/between operator tho, but i cant find it in manual how to do iy so i just use operator \> or \< .  
in oyher case steve, i try to convert sysex from rotated knob but syill cant get scale right  
Can u help me with this? thanks 4 ur enlighment

---

<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 6, 2021, 3:15am UTC](https://forum.bome.com/t/make-switch-button-as-toggle-button/2342/18 "2021-01-06T03:15:46Z")

</div>

So your SysEX messages have a different value depending on knob or fader rotation?

Just take the value of the knob into a local variablefrom the SysEX like this.

Take this message  
F0 42 30 6D 08 4E 00 1C F7

Lets say 1C is the variable from above. Change the incoming to:

F0 42 30 6D 08 4E 00 pp F7

Now you have the local variable pp to work with.

// Discard ranges you don’t care abount

if pp\<0x01 then exit rules skip outgoing action  
if pp\>0x1c then exit rules skip outgoing action  
// If you get here you know the variable is \>=1 and \<0x1c

// Then use the global variable in pp to determine what you want to do with it.

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 6, 2021, 5:51am UTC](https://forum.bome.com/t/make-switch-button-as-toggle-button/2342/20 "2021-01-06T05:51:54Z")

</div>

ok thanks… ill try iy tonight.  
just to b confirmed:

1.this is the suggestion for scalling sysex rotated knob to CC:  
F0 42 30 6D 08 4E 00 pp F7

Now you have the local variable pp to work with.

2.this is the suggestion for limitating sysex to CC toogle :  
/ Discard ranges you don’t care about

am i right??? thanks again

---

<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 6, 2021, 6:24am UTC](https://forum.bome.com/t/make-switch-button-as-toggle-button/2342/21 "2021-01-06T06:24:31Z")

</div>

Maybe but it might be that you only want one value so that when it crosses over that value the toggle happens.

[Next page](https://forum.bome.com/t/make-switch-button-as-toggle-button/2342.md?page=2)
