Get lights code easily

  • Forum
  • Get lights code easily

Hi guys!

I’m currently using Bome MIDI translator Pro to control a launchpad MK2. Specifically, I want to control the lights to make some cool patterns.

At the moment, every time I want to light a single pad I need to get the code of that pad and manually insert the code in the outgoing section. E.g. to make that specific pad green, I need to figure out its code (14) the code for making the light steady (90) and the code of the color (15).

This can be ok if I need to ligh a single pad… But if I want to make some specific pattern (e.g. an “X”) it will take forever.

Does anyone have an idea on how to speed up the process? Maybe using ableton live or anything similar.


Marked as spam
Posted by (Forum: 1, Answers: 0)
September 10, 2019 8:46 am
Private answer

Hi Dino,

The question here and answer can be quite complex, but I can give you some ideas.

The Novation Launchpad MKII has 64 pads so you could, for example control a single color on-off state with 2 32 bit global variables (all MT Pro variables are 32 it signed int).

With bitmapping techniques you could set the bits you want to display and clear the bits that you don’t. to create the pattern you want. within these two variables. Manipulation of the bits would all be handled separately than sending the led colors to the display which I will discuss in a minute. If the two variables are 0, then all LED’s are off, if the two variables are -1 (since they are signed intergers, -1 is . FFFFFFFF hexadecimal).

So the trick is to figure the bit order you want to represent in your global variables for each LED.

The next step and a separate process is to iterate through the its with a timer to turn each LED on or off. This could be done at specific intervals depending on how often you want to update the display. The routine would look at each bit, and figure it’s value (on or off) and then determine which note number to send to your LaunchPad for the bit position you want, You would also set the color here. If you want more than 1 color (on or off), then you would need to control color via additional bitmapped global variables and look at the bit position of each map to determine the color you want. For instance, to control 8 colors (7 + off) you would need 3 sets of bit maps or 6 global variables to calculate the colors you want for a given LED and of course your routine to set these colors would need to manipulate all of them. You routine to display would need to iterate through all 3 bitmaps to do the bit evaluation and color comparison.

If you search this forum, on “Bit map” I think you will find some examples of how I’ve done something similar with an Akai APC-Mini. No general patterns to generate the bit maps though, however good examples of bit manipulation by button and refreshing the display through iteration.  APC-Mini was fairly easy to iterate because the button (note numbers) were in sequence 0-63 bottom left to top right which is not the case with the Launchpad Pro.

I think also that someone wrote a game of “pong” using a Novation Launchpad MINI which might help in your endeavors. Maybe you can search the forum for that and evaluate how they did it by looking at the project file.


Steve Caldwell
Bome Q and A Moderator and
Independent Bome Consultant/Specialist




Marked as spam
Posted by (Forum: 50, Answers: 5299)
September 10, 2019 3:02 pm
  • Forum
  • Get lights code easily