# LED Feedback for Launch Control XL

**URL:** <https://forum.bome.com/t/led-feedback-for-launch-control-xl/6543>\
**Category:** Bome Products\
**Created:** [September 30, 2024, 11:47pm UTC](https://forum.bome.com/t/led-feedback-for-launch-control-xl/6543 "2024-09-30T23:47:55Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![pramodbhoye3](https://forum.bome.com/letter_avatar_proxy/v4/letter/p/34f0e0/32.png) [@pramodbhoye3](https://forum.bome.com/u/pramodbhoye3)\
**Post date:** [September 30, 2024, 11:47pm UTC](https://forum.bome.com/t/led-feedback-for-launch-control-xl/6543/1 "2024-09-30T23:47:55Z")

</div>

Hi Steve  
Here is part of my project, in that I switch in Model Layer and for that model layer LED feedback work properly. So while working with pad button I firstly use qq values to set min and max limit to choose between the type of VCO and it worked okay. But just want to give a feedback for each pad I use like when the certain parameter is selected is should be give a LED feedback, earlier I use toggle option like below, if I click particular it should give me response in Red LED colour. It work independently with preset.  
// toggle global variable  
ga=ga^1  
qq=0  
if ga==1 then qq=15

I want to know how would I achieve min and max limit set to button with LED feedback to pad button.

[Bome.bmtp](https://forum.bome.com/uploads/short-url/njQx0879T11hulFHH11u6QkcTEV.bmtp) (3.8 KB)

 ![1499294C-47E7-4387-873E-750EA0CC3F2A](https://forum.bome.com/uploads/default/original/2X/3/3ede882906ad7696c5f64752fd8a56eda54d7a07.jpeg)

---

<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:** [October 1, 2024, 1:19am UTC](https://forum.bome.com/t/led-feedback-for-launch-control-xl/6543/2 "2024-10-01T01:19:06Z")

</div>

Hi, since this is an entirely different question, I moved it to another topic.

First of all I recommend you always use aliases instead of the HW port name. I changed your input and output of preset 2 to ‘My Controller’ which is aliased to ‘Launch Control XL’. Hard coding it to a certain physical port name will make it more difficult later when updating your project, especially if the operating system gives it a different physical port name.

Then for each control that you want to toggle you need to use a separate global variable. I used ‘ga’ for the first example but each button should have it’s own global variable.

Both local and global variables are discussed on page 88 of the [Bome MIDI Translator Pro Manual](https://www.bome.com/bome/downloads/manuals/miditranslator_manual.pdf). You can also pull up a PDF version by pressing F1 within Bome MIDI Translator Pro.

I set these up on translators 2.0-2.4 and added in rules a perform action passing the first variable as the incoming CC number and the second variable as the velocity. I got the CC number from the incoming button by capturing into pp.

I hope this helps!  
[Bome-2024-09-30.bmtp](https://forum.bome.com/uploads/short-url/8StFzNHXIeIxakfHuzmhnYc4MvG.bmtp) (4.8 KB)

Steve Caldwell  
Bome Customer Care

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

---

<div class="post-metadata">

**Author:** ![pramodbhoye3](https://forum.bome.com/letter_avatar_proxy/v4/letter/p/34f0e0/32.png) [@pramodbhoye3](https://forum.bome.com/u/pramodbhoye3)\
**Post date:** [October 2, 2024, 9:25pm UTC](https://forum.bome.com/t/led-feedback-for-launch-control-xl/6543/3 "2024-10-02T21:25:02Z")

</div>

Hi steve  
Thanks for help.  
I’m making progress toward my project thanks a lot for every replied you did it help me a lot.

I have set separately global parameters for global and local variable and I got I wanted to achieve at first place.

I need your help, I use toggle variable rule for LED feedback  
// toggle global variable  
gb=gb^1  
rr=0  
if gb==1 then rr=15  
but wan to also toggle LED feedback between Row buttons like if my first button on top row say CC#33 is active and then I press CC#32 very next buttom from same row then CC#33 LED should turn of and CC#32 LED feedback should have active and if I press now CC#37 from top row it shoul be behave like CC#32 LED feedback should be turn off and activate CC#37.

---

<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:** [October 2, 2024, 9:31pm UTC](https://forum.bome.com/t/led-feedback-for-launch-control-xl/6543/4 "2024-10-02T21:31:53Z")

</div>

So you want the buttons to toggle off and on if you hit the same button, but if you hit a different button on that row, all of the other buttons in that row go to an off state?

Steve Caldwell  
Bome Customer Care

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

---

<div class="post-metadata">

**Author:** ![pramodbhoye3](https://forum.bome.com/letter_avatar_proxy/v4/letter/p/34f0e0/32.png) [@pramodbhoye3](https://forum.bome.com/u/pramodbhoye3)\
**Post date:** [October 3, 2024, 6:58am UTC](https://forum.bome.com/t/led-feedback-for-launch-control-xl/6543/5 "2024-10-03T06:58:03Z")

</div>

Yes, in terms of LED feedback only so that it will easy for me which parameter is active or so.

---

<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:** [October 3, 2024, 8:23pm UTC](https://forum.bome.com/t/led-feedback-for-launch-control-xl/6543/6 "2024-10-03T20:23:00Z")

</div>

OK, so I employed a different strategy here.

Instead of different global variables for each button, I now us a single global variable (g0) as a bitmap. Bit 0 represents the first button and so forth.  
Now the rules do a bit shift on the global variable and toggle that bit if off then I do a perform ‘Clear Top’ to clear all of the LEDs prior to sending the feedback. If the state of the button was on then I turn it off.

The disadvantage is that with bit shifting, rules are more complex however a single variable is 32 bits so you can control up to 32 on/of states with a single variable.

Bitwise operations are explained in [this post](https://forum.bome.com/t/bitwise-operations-and-reference/1862).

Here is the updated project file.

[Bome-2024-10-03.bmtp](https://forum.bome.com/uploads/short-url/l93rpEapYebsJBmPiufBLz0Q56v.bmtp) (6.4 KB)

Steve Caldwell  
Bome Customer Care

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

---

<div class="post-metadata">

**Author:** ![pramodbhoye3](https://forum.bome.com/letter_avatar_proxy/v4/letter/p/34f0e0/32.png) [@pramodbhoye3](https://forum.bome.com/u/pramodbhoye3)\
**Post date:** [October 7, 2024, 12:24pm UTC](https://forum.bome.com/t/led-feedback-for-launch-control-xl/6543/7 "2024-10-07T12:24:25Z")

</div>

Hi steve  
Is it possible to change LED feedback of knob according to selected model?

Example -  
CC#33 select model in my synth then with particular know have certain LED feedback only that knob which are assigned for that model. And when I press CC#34 which id different model then LED feedback should have change according the knob which I map with that model.

---

<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:** [October 7, 2024, 1:04pm UTC](https://forum.bome.com/t/led-feedback-for-launch-control-xl/6543/8 "2024-10-07T13:04:08Z")

</div>

Yes, look at the below example.

Translator 2.5 is the top left knob on my Launch Control XL. It sends CC 13.

I have a rule that looks at bit 0.

If bit 0 = 0 the outgoing CC will be 100.  
If bit 0 =1 the outgoing CC will be 101.

Note that the current value of the CC might jump from it’s original value when you change CCs as these are absolute knobs.

Here are the rules:

```auto
// get bit 0 from global variable
pp=g0>>0
//mask other bits
pp=pp&1
// set default outgoing CC number to 100
uu=100
// if the bit is 1 make outgoing CC number 101
if pp==1 then uu=101

```

And the project file.  
[Bome-2024-10-07.bmtp](https://forum.bome.com/uploads/short-url/5UuO5xlMVlod3TK7brw1gYNtwjN.bmtp) (7.0 KB)

Steve Caldwell  
Bome Customer Care

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

---

<div class="post-metadata">

**Author:** ![pramodbhoye3](https://forum.bome.com/letter_avatar_proxy/v4/letter/p/34f0e0/32.png) [@pramodbhoye3](https://forum.bome.com/u/pramodbhoye3)\
**Post date:** [October 18, 2024, 6:50am UTC](https://forum.bome.com/t/led-feedback-for-launch-control-xl/6543/9 "2024-10-18T06:50:45Z")

</div>

Hi Steve  
I have to to alter the LED feedback of knob but could get there please  
[LED Feedback.bmtp](https://forum.bome.com/uploads/short-url/vWO6cLk1P93T4bTZXSSbVoAhUgK.bmtp) (5.1 KB)  
help me.

---

<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:** [October 18, 2024, 3:20pm UTC](https://forum.bome.com/t/led-feedback-for-launch-control-xl/6543/10 "2024-10-18T15:20:03Z")

</div>

Hi,

Can you point me to the translator you are referring to and which knob LED you want to update with which color?

Steve Caldwell  
Bome Customer Care

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

---

<div class="post-metadata">

**Author:** ![pramodbhoye3](https://forum.bome.com/letter_avatar_proxy/v4/letter/p/34f0e0/32.png) [@pramodbhoye3](https://forum.bome.com/u/pramodbhoye3)\
**Post date:** [October 18, 2024, 4:29pm UTC](https://forum.bome.com/t/led-feedback-for-launch-control-xl/6543/11 "2024-10-18T16:29:45Z")

</div>

I’m referring first and second knob from launch control XL  
Second and fourth translator from model preset

---

<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:** [October 18, 2024, 5:24pm UTC](https://forum.bome.com/t/led-feedback-for-launch-control-xl/6543/12 "2024-10-18T17:24:20Z")

</div>

I don’t see a model preset. Maybe you posted the wrong project file.

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

Steve Caldwell  
Bome Customer Care

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

---

<div class="post-metadata">

**Author:** ![pramodbhoye3](https://forum.bome.com/letter_avatar_proxy/v4/letter/p/34f0e0/32.png) [@pramodbhoye3](https://forum.bome.com/u/pramodbhoye3)\
**Post date:** [October 18, 2024, 8:08pm UTC](https://forum.bome.com/t/led-feedback-for-launch-control-xl/6543/13 "2024-10-18T20:08:05Z")

</div>

Sorry insted of model I have change it to shift.  
Please check preset shift layer switch and shift where I have added sysex message for LED feedback for knob 1 and Knob 1.

---

<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:** [October 18, 2024, 8:51pm UTC](https://forum.bome.com/t/led-feedback-for-launch-control-xl/6543/14 "2024-10-18T20:51:46Z")

</div>

Well first of all you had your output devices set wrong at the preset and the translator level.

For more information about device selection, see [this tutorial](https://youtu.be/KunN2A1rKMY).

Secondly, it looks you may have been sending the LED value to the wrong template and an invalid value. For me I changed it to user template 0 instead of user template 1 and set the colors based on the CC value.

```auto
// Which template
oo=0
// Select a color
if qq<30 then tt=15
if qq>=30 then tt=63
if qq>=40 then tt=62
if qq>50 then tt=60

```

I then used the local variables to send a valid color to the defined template.

```auto
F0 00 20 29 02 11 78 oo 01 tt F7

```

Thirdly, you should be using aliases instead of your physical device. You should also set you MIDI thru routes to the aliases.

I have my aliases set as follows:

![image](https://forum.bome.com/uploads/default/original/2X/4/49a4a6324913b897e8fdcc5e4f49a126368fa7ef.png)

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

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

I’ve attached the updated project file. I also turned on the CC to the Applications which will default to the preset level and then for feedback change the output to go to “My Controller”  
[LED Feedback-2024-10-18.bmtp](https://forum.bome.com/uploads/short-url/wbkh66OziUFDUZJJQcKIF7aH6nb.bmtp) (5.8 KB)

Steve Caldwell  
Bome Customer Care

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