# Akai APC 40 MK2 lights and faders and layers

**URL:** <https://forum.bome.com/t/akai-apc-40-mk2-lights-and-faders-and-layers/5961>\
**Category:** Bome Products\
**Tags:** voicemeeter, akai-apc-40\
**Created:** [February 12, 2024, 11:19am UTC](https://forum.bome.com/t/akai-apc-40-mk2-lights-and-faders-and-layers/5961 "2024-02-12T11:19:27Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![mfrisberg](https://forum.bome.com/letter_avatar_proxy/v4/letter/m/f19dbf/32.png) [@mfrisberg](https://forum.bome.com/u/mfrisberg)\
**Post date:** [February 12, 2024, 11:19am UTC](https://forum.bome.com/t/akai-apc-40-mk2-lights-and-faders-and-layers/5961/1 "2024-02-12T11:19:27Z")

</div>

Hi im having a issue  
Trying to send both on and off  
Midi raw to vm becouse vm needs the off signal to send a midi feed back  
And all the buttons for the mute funcktion have the same CC but diffrent channels  
So the first thing i tried was  
The original send is 90 32 7F for on and 80 32 7F for off  
So i tried tt 32 pp in then tt 32 pp out and it works  
But secon button got 91 32 7F and 81 32 7F  
So running tt 32 pp is not working any more becouse i need to pass true both the 8 and the 9 or vm wont do a feed back .  
The only thing i was able to think of is to run 2 translators for each button one that feeds the 9 and one that feeds the 8 .  
If u got some better system would like to hear it thx

---

<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:** [February 12, 2024, 6:40pm UTC](https://forum.bome.com/t/akai-apc-40-mk2-lights-and-faders-and-layers/5961/2 "2024-02-12T18:40:48Z")

</div>

Hi,

I don’t think this has to do with incorrect button feedback, but I suspect your APC-40 MK2 is in the default Mode where these buttons are toggle. If you send this MIDI message to your APC-40 when you start the project, then it should work with the standard MIDI learn and then setting Voicemeeter feedback to FF.

```auto
F0 47 7F 29 60 00 04 42 09 07 01 F7

```

Byte value 42 above is the Mode in which your APC40 will be set.

Suspecting that you are using this for ‘Select’ in the master section. I tested this and it works.

```
Modes	

```

0x40 Generic (Startup Default) Track select Radio- Channel Toggle

0x41 Ableton Live (LED Ring Remote Controlled) Momentary All

0x42 Alternate Ableton Live Momentary All

Steve Caldwell  
Bome Customer Care

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

---

<div class="post-metadata">

**Author:** ![mfrisberg](https://forum.bome.com/letter_avatar_proxy/v4/letter/m/f19dbf/32.png) [@mfrisberg](https://forum.bome.com/u/mfrisberg)\
**Post date:** [February 12, 2024, 7:42pm UTC](https://forum.bome.com/t/akai-apc-40-mk2-lights-and-faders-and-layers/5961/3 "2024-02-12T19:42:08Z")

</div>

Hi mate im running in mode 2 all momentary but ring leds remote  
But i think i set it up wrong in bome by setting strip by strip in seperate presets  
So i think if i put all mute buttons in same preset  
I might getting away with only 2 translators for all buttons  
By setting  
The apc in to tt 32 7F and out to vm the same  
Then from vm in tt 32 pp to apc the same  
Becouse on the return i do  
If pp==7f then pp=22  
If pp==0 then pp=5  
For the color green and red  
Need to wait a nother 1hr to test still at work  
So the apc is sending exsample on first button  
On press 90 32 7F on release 80 32 7F  
But send back from vm is on 90 32 7F off is think its 90 32 00 and reaction is only on the on note but fedback is sent on the release

---

<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:** [February 12, 2024, 10:42pm UTC](https://forum.bome.com/t/akai-apc-40-mk2-lights-and-faders-and-layers/5961/4 "2024-02-12T22:42:17Z")

</div>

Ah so you are sending it back to one of your RGB Leds

Here is an example of what you need to do on the return path to your controller.

Incoming : Raw oo pp qq

Rules:

```auto
//Check if note on or note off
rr=oo&224
if rr!=128 then exit rules, skip Outgoing Action
// MIDI CH in rr
rr=oo&15
// Make Note on MIDI CH 1
oo=144
// Default velocity off
tt=5
// On velocity
if qq==127 then tt=22
// desired outgoing note number using MIDI CH
pp=rr

```

Outgoing: Raw oo pp tt

Now you get green for on and red for off

Steve Caldwell  
Bome Customer Care

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

---

<div class="post-metadata">

**Author:** ![mfrisberg](https://forum.bome.com/letter_avatar_proxy/v4/letter/m/f19dbf/32.png) [@mfrisberg](https://forum.bome.com/u/mfrisberg)\
**Post date:** [February 12, 2024, 11:31pm UTC](https://forum.bome.com/t/akai-apc-40-mk2-lights-and-faders-and-layers/5961/5 "2024-02-12T23:31:34Z")

</div>

I got it working when i  
Deleted all the mute translators  
And i did 1 preset for all mute  
From vm in tt 32 pp  
If pp==127 then qq=1  
If pp==0 then qq=0  
out from bome tt 32 qq

From apc uu 32 qq out to vm uu 32 qq

And it works .

But im having small issue with getting all strip buttons on 2 translators would be easy  
If it wasent for the 0A 1A the others  
It start easy enough they are all 90 00 up to 09 then 0A to 0F then start at 10 to 19 then 1A to 1f Again  
If it weren’t for them i would just have done  
In 90 qq pp  
If qq\>40 then exit

---

<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:** [February 13, 2024, 3:19am UTC](https://forum.bome.com/t/akai-apc-40-mk2-lights-and-faders-and-layers/5961/6 "2024-02-13T03:19:37Z")

</div>

You would do a construct similar to this.

Incoming Note on Any Channel set to oo note set to pp value set to qq.

Rules:

```auto
if oo>7 then exit rules, skip Outgoing Action
if pp==66 then Goto "A/B"
if pp==49 then Goto "Solo"
if pp==48 then Goto "Rec Arm"
if pp==52 then Goto "Clip Stop"
exit rules, skip Outgoing Action
Label "A/B"
Log "Doing A/B Stuff"
Goto "Done"
Label "Solo"
Log "Doing Solo"
Goto "Done"
Label "Rec Arm"
Log "Doing Rec Arm"
Goto "Done"
Label "Clip Stop"
Log "Doing Clip Stop"
Goto "Done"

```

Outgoing: Whatever your did with processing above.

Steve Caldwell  
Bome Customer Care

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

---

<div class="post-metadata">

**Author:** ![mfrisberg](https://forum.bome.com/letter_avatar_proxy/v4/letter/m/f19dbf/32.png) [@mfrisberg](https://forum.bome.com/u/mfrisberg)\
**Post date:** [February 13, 2024, 12:25pm UTC](https://forum.bome.com/t/akai-apc-40-mk2-lights-and-faders-and-layers/5961/7 "2024-02-13T12:25:02Z")

</div>

That looks good will def implement this  
Im also working on the main rgb buttons  
They are all 90  
And its 40 of them but the normal numbers only go to 27  
And i was working so i could use this 90 tt pp  
As in  
And  
If tt\>40 then exit  
Its a bit strange  
When actually pressing the button whit the number 40 or 32  
The if tt\>40 Then exit  
Is activated  
Im so confused its like the button numbers are not realy linked  
If i set the limit to 27 then half the buttons dont work included the actual button 27 but still the 0A and 1A  
Works

---

<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:** [February 13, 2024, 1:22pm UTC](https://forum.bome.com/t/akai-apc-40-mk2-lights-and-faders-and-layers/5961/8 "2024-02-13T13:22:00Z")

</div>

> [@mfrisberg](#):
>
> If tt\>40 then exit

There are 40 of them but they go from 0 to 39.

Here is a project file you can play around with to see how I manipulate colors of buttons.  
The cross fader is a color chooser to for the main matrix. The color selection is shown on Scene Launch 1. If you then push Scene Launch 1, all LED in the matrix (instead of 2nd row) are changed to that color. The refresh logic makes sure the 2nd row is always red. If you push a button, that button will flash and the others will go solid.

This is just something I whipped up a while back playing around with my APC-40.  
[APC40MK2- Button-Lighting-a.bmtp](https://forum.bome.com/uploads/short-url/8D0Wc2tyc8gXuTEEh2XisKZWY5P.bmtp) (2.8 KB)  
Steve Caldwell  
Bome Customer Care

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

---

<div class="post-metadata">

**Author:** ![mfrisberg](https://forum.bome.com/letter_avatar_proxy/v4/letter/m/f19dbf/32.png) [@mfrisberg](https://forum.bome.com/u/mfrisberg)\
**Post date:** [February 13, 2024, 2:04pm UTC](https://forum.bome.com/t/akai-apc-40-mk2-lights-and-faders-and-layers/5961/9 "2024-02-13T14:04:18Z")

</div>

Thx i will have a look  
Do you know about the how  
90 00 00 to 90 27 00 are numbers but 12 buttons are  
Using 0A 0B 0C 0D 0E 0F  
1A 1B 1C 1D 1E 1F  
And not the last ones but between 09 to 10  
Then again betwen 19 to 20  
So if i put in 27\>tt then i should be able to use all the buttons from 0 to 27 and the 0A 1A should not count in but i can use all buttons up to the fysical nr 27 not the one that actually i dentifys as 27 thats what messing me up in the head specialy since if i put it to 40\>tt the all buttons work but i dont understand the button that identifies as 32 or 36 are trigering the 40\>tt rule its realy confusing

---

<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:** [February 13, 2024, 2:45pm UTC](https://forum.bome.com/t/akai-apc-40-mk2-lights-and-faders-and-layers/5961/10 "2024-02-13T14:45:34Z")

</div>

Make sure you are using the right number system. If entering rule and you want hex use 0x3F for example for decimal 63.

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

Steve Caldwell  
Bome Customer Care

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

---

<div class="post-metadata">

**Author:** ![mfrisberg](https://forum.bome.com/letter_avatar_proxy/v4/letter/m/f19dbf/32.png) [@mfrisberg](https://forum.bome.com/u/mfrisberg)\
**Post date:** [February 13, 2024, 3:15pm UTC](https://forum.bome.com/t/akai-apc-40-mk2-lights-and-faders-and-layers/5961/11 "2024-02-13T15:15:41Z")

</div>

Now i see i was not rapping my head around that it was all hex haha 😆 when i sav the diagram i understood what was happening and why the numbers where no aligned with what i was expecting

---

<div class="post-metadata">

**Author:** ![mfrisberg](https://forum.bome.com/letter_avatar_proxy/v4/letter/m/f19dbf/32.png) [@mfrisberg](https://forum.bome.com/u/mfrisberg)\
**Post date:** [February 14, 2024, 11:00am UTC](https://forum.bome.com/t/akai-apc-40-mk2-lights-and-faders-and-layers/5961/12 "2024-02-14T11:00:38Z")

</div>

Hi mate is there a simple non bit bashing way  
To switch leds on a big amount of them lika all  
From 90 00 to 90 39  
Like a led refresh

---

<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:** [February 14, 2024, 12:51pm UTC](https://forum.bome.com/t/akai-apc-40-mk2-lights-and-faders-and-layers/5961/13 "2024-02-14T12:51:53Z")

</div>

Yes, but you would need 40 global variables where with bit bashing all you need is 2 (for simple on/off state) since there are 32 bits per variable.

The sample I posted earlier is the ‘bit bashing’ method an although a bit of a pain to set up, is really the most efficient way of doing this.

If the LEDs can all be the same color, then you would not need bit bashing or global variables.

Steve Caldwell  
Bome Customer Care

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

---

<div class="post-metadata">

**Author:** ![mfrisberg](https://forum.bome.com/letter_avatar_proxy/v4/letter/m/f19dbf/32.png) [@mfrisberg](https://forum.bome.com/u/mfrisberg)\
**Post date:** [February 14, 2024, 1:20pm UTC](https://forum.bome.com/t/akai-apc-40-mk2-lights-and-faders-and-layers/5961/14 "2024-02-14T13:20:14Z")

</div>

Yeah i just want them to switch to a singel solid color i was going to use it for a couple of layers  
Of momentary switches and have the layer color as indicator what layer im on becouse when going back to default vm has a refresh controller button i maped to when presets open it refreshing .  
Same as when refreshing switching from A1 》A5  
To B1》B3 works great

---

<div class="post-metadata">

**Author:** ![mfrisberg](https://forum.bome.com/letter_avatar_proxy/v4/letter/m/f19dbf/32.png) [@mfrisberg](https://forum.bome.com/u/mfrisberg)\
**Post date:** [February 14, 2024, 1:27pm UTC](https://forum.bome.com/t/akai-apc-40-mk2-lights-and-faders-and-layers/5961/15 "2024-02-14T13:27:51Z")

</div>

I thought some thing like this  
Lets  
Activation button  
Input 91 00 7F or on preset start  
Rule  
tt=00  
tt=01  
tt=02  
And so on  
Out put  
90 tt 7F.

I know it wont work i was stupid.

Is it posible to send 40 out put  
Cc’s

---

<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:** [February 14, 2024, 1:55pm UTC](https://forum.bome.com/t/akai-apc-40-mk2-lights-and-faders-and-layers/5961/16 "2024-02-14T13:55:13Z")

</div>

Hi, see the below example

- The first translator starts the ball rolling
- The second translator is a recurring perform action and calls itself until the count reaches 40. It also passes the LED number (note number) delay between iterations, and color number to use. There is a rule that calls the third translator with the note number and value.
- The third translator handles sending the outgoing MIDI message.

By using the new ‘Perform’ action of Bome MIDI Translator 1.9.1, I didn’t need any global variables to handle this. It is all done with local variables and parameter passing.

[Perform-Refresh-APC40-Matrix-LEDs.bmtp](https://forum.bome.com/uploads/short-url/3BZdn6YGgZCWxojFE6t3wcYU737.bmtp) (1.8 KB)

Steve Caldwell  
Bome Customer Care

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

---

<div class="post-metadata">

**Author:** ![mfrisberg](https://forum.bome.com/letter_avatar_proxy/v4/letter/m/f19dbf/32.png) [@mfrisberg](https://forum.bome.com/u/mfrisberg)\
**Post date:** [February 14, 2024, 2:25pm UTC](https://forum.bome.com/t/akai-apc-40-mk2-lights-and-faders-and-layers/5961/17 "2024-02-14T14:25:56Z")

</div>

Thank you this definetly will be used when i get home from work

---

<div class="post-metadata">

**Author:** ![mfrisberg](https://forum.bome.com/letter_avatar_proxy/v4/letter/m/f19dbf/32.png) [@mfrisberg](https://forum.bome.com/u/mfrisberg)\
**Post date:** [February 15, 2024, 1:53pm UTC](https://forum.bome.com/t/akai-apc-40-mk2-lights-and-faders-and-layers/5961/18 "2024-02-15T13:53:26Z")

</div>

All is working great excacly what i needed
