# Sending LED colors to APC-MINI MK2 using System Exclusive (SysEx)

**URL:** <https://forum.bome.com/t/sending-led-colors-to-apc-mini-mk2-using-system-exclusive-sysex/5635>\
**Category:** Bome Products\
**Created:** [November 7, 2023, 3:47am UTC](https://forum.bome.com/t/sending-led-colors-to-apc-mini-mk2-using-system-exclusive-sysex/5635 "2023-11-07T03:47:22Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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:** [November 7, 2023, 3:31pm UTC](https://forum.bome.com/t/sending-led-colors-to-apc-mini-mk2-using-system-exclusive-sysex/5635/5 "2023-11-07T15:31:42Z")

</div>

Hi, please show the below example.

I use the first 6 faders to designate MSB and LSB values for red, green and blue.

Faders 1 and 2 hold red MSB and LSB  
Faders 3 and 4 hold green MSB and LSB  
Faders 5 and 6 hold blue MSB and LSB  
I use global variable gb to hold the value of red, gc to hold the value of green and gd holds the value of blue.

In Preset 0 (Init) translator 2 (0.2). I set the initial values. I also set the target note (LED) number.

Translator 1.1 handles all of the fader manipulation and note values. I determine by fader which color to manipulate within the rules. Warning… they are likely too  
complex for most users to understand at first but essentially I have to only update a portion of gb, gc, or gd since faders handle only 128 values and as I said earlier using MSB and LSB values together you get 16384.

As it turns out, it appears that only bit 0 of the MSB is used by the APC-MINI MK2 so essentially it recognizes only values of 0-255 with the MSB only being a 0 or 1. I didn’t find this out until after I completed and tested the project.

Translator 1.0 output is ‘Perform’ with the parameters of:

- Note Number
- Red Value
- Green Value
- Blue Value

Translator 1.1 takes these values and the splits them of to send a raw MIDI message using System Exclusive (SysEx)

I use aliases as in my case I’m using named virtual ports instead of the actual device but I did test it with the actual device. You will need to point them to your actual controller.

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

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

Also I set up my device management at the preset level.

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

If you open the MT Pro log window, you can see more information on what is happening.

[apc-mini-mk2-color-control.bmtp](https://forum.bome.com/uploads/short-url/kVTU4I9GbDKNwryfBMRmys48Skc.bmtp) (4.0 KB)

Happy learning!

Steve Caldwell  
Bome Customer Care

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

---

_[View the full topic](https://forum.bome.com/t/sending-led-colors-to-apc-mini-mk2-using-system-exclusive-sysex/5635)._
