Led Change on Novation LaunchControl XL

Quanta Alesis's icon

Hi all trusting all is well.

I have encountered a wall in which I now have spent 2 days now trying to get past without any success.

The program out come I wish to achieve.
I wish to create a looper feedback to the led on the novation launch control with Max for Live. The built in ableton live looper has a few functions that can be controlled by on Midi Map. Record being a sing press (large button), over dub being a secondary press and a double click being a stop signal at the end of the bar. I have a Nektar Pacer foot controller and its brilliant, but for easy start and stop I have Mapped the trigger "Track focus buttons on the Novation Launch control. I am able to start and stop the Looper very easy and on the fly.

I am literally after the simplest bit of code that seems to be ridiculously hard to achieve.

The end result would be

One Press on the trigger switch would send a Mapped signal to both the Max Plugin and the looper. The max Plugin would respond to the signal it has received by from the trigger button the plugin code would send the change the LED to Red code to show that recording a loop is in progress.

The Second press of the Trigger button would change the Led state to Green for Play and/or (plus auto count for auto change led based on bars selected) .

When Pressed a second/third time the overdub function starts, Led response is Yellow to represent overdub. If the button is pressed before Play State has been set (selected bar count) then yellow led shows overdub is now active for another (cycle selected bar count)

Basically The same function that Looper has. The color to indicate the state of the devices.
This bit is quite simple to set and create this function would only take a few minutes


The issues that I can not yet figure out.
So far I have not been able see the code in which the LED receives its color, I have read the "Programmers manual" from novation but unable to make sense of it all.
When I run the Midi Data into the MidiParse I can see all the data from CC messages and channels ect. But as soon as the item is mapped in ableton live

Eg if I map a toggle switch in Ableton all of Midi the data disappears in MAX. Why is this?
How can I see it again?
I'm assuming its going into System Message Data?

I have put the switch is in toggle mode to pull the data so I can do this (Led communications) the data becomes unreadable when mapped with Midi devices in Max for live.

I have played with the Sysex but to no Avail at all. I have no ideas left to see this data so that I can work with it, to create a working very simple led light changer.

Any Ideas on how to get these Leds to change color or how to find the code would be deeply appreciated.
Thanks,
Quanta