# Change constant cc amount to act as switch

**URL:** <https://forum.bome.com/t/change-constant-cc-amount-to-act-as-switch/7579>\
**Category:** Translation Projects\
**Created:** [September 19, 2025, 11:45am UTC](https://forum.bome.com/t/change-constant-cc-amount-to-act-as-switch/7579 "2025-09-19T11:45:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![peterskilgour](https://forum.bome.com/letter_avatar_proxy/v4/letter/p/848f3c/32.png) [@peterskilgour](https://forum.bome.com/u/peterskilgour)\
**Post date:** [September 19, 2025, 11:45am UTC](https://forum.bome.com/t/change-constant-cc-amount-to-act-as-switch/7579/1 "2025-09-19T11:45:01Z")

</div>

I have a controller that sends a constant cc of 127 and I want it to switch between 127 and 0 (on/off) with each press. I’ sure MTP can do this but I can’t figure out how?

---

<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:** [September 19, 2025, 2:19pm UTC](https://forum.bome.com/t/change-constant-cc-amount-to-act-as-switch/7579/2 "2025-09-19T14:19:46Z")

</div>

Hi,

Please find the attached. In rules, we toggle the value of global variable “ga” and then send the value on each press. In this example, I’m using CC21 on MIDI CH 1 for both input and output

Here are the rules:

```auto
// toggle value
ga=ga^1
//defalult value =0
qq=0
// otherwise send 127
if ga==1 then qq=127

```

My aliases are set up as follows:

 ![image](https://forum.bome.com/uploads/default/original/2X/7/7ae3cf81d6e51ae5ae5f5f2a7621a68fb639fcb7.png)

You can learn more about aliases from [this tutorial](https://youtu.be/CrE391VJL0s).

[toggle-cc-2025-09-19.bmtp](https://forum.bome.com/uploads/short-url/vdfRjKm7FoCFpTd2tZaaYPeDXk8.bmtp) (1.1 KB)

Steve Caldwell  
Bome Customer Care

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

---

<div class="post-metadata">

**Author:** ![peterskilgour](https://forum.bome.com/letter_avatar_proxy/v4/letter/p/848f3c/32.png) [@peterskilgour](https://forum.bome.com/u/peterskilgour)\
**Post date:** [September 20, 2025, 5:00pm UTC](https://forum.bome.com/t/change-constant-cc-amount-to-act-as-switch/7579/3 "2025-09-20T17:00:18Z")

</div>

Brilliant! Thanks so much Steve, I’ve been using Midi Translator pro for at least ten years and it’s a major part of my studio!
