M4L MIDI Mix LED Control Problem

matteo angelici's icon

Hi Everyone,

I'm trying to "hard-map" some buttons from the MIDI Mix to control a M4L patch. The buttons function normally and I managed to get the LED to turn on when I press, however I can't seem to get the LED to turn off on the second time I press (or any other circumstance for that matter).

I usually work in MSP rather than M4L, but this time around I need this device to work inside ableton.

Funnily enough, if I try en recreate the patch in MSP everything works fine, it's only inside M4L that the problem persists.

To control the LED I'm using noteout and send the note number in the first inlet and and integer grater than 0 on the second. For values == 0 the LED should turn off (and indeed it does in MSP) but alas, it's not working in M4L.

Does any one have any Idea why this is happening? I can't seem to figure out a solution.


PS. This is not my patch, but a modified version of Tom Cosm's Dual Toggle which I adapted for my needs.

Tom Cosm Dual Toggle - Matteo Custom Mapping (MidiMix).amxd
amxd 990.23 KB

Source Audio's icon

if note 3 for example toggles the LED when it's value is 127
then you can't feed midi input to output directly, and add your toggle to it etc.

do simple - if note 3 = 127, then bang that toggle.
only that togle feeds message 3 $1 to note out.



matteo angelici's icon

Thanks for the response.

The midi input to output connection was a leftover from previous experimentations. I tried your configuration but it's still not working. I think the main issue is that the velocity is what controls the LED brightness (for velocity values > 0, LED = on).

If i simplify the patch to the bare minimum (Just noteout, 1 number box for the note, and 1 number box for velocity) I can get all the LED to light up bun not light off. But if I do the same in a standalone patch outside ableton everything works as it should.

Source Audio's icon

what is LED supposed to receive for explicit On and OFF state ?

is live sending note off as 128 nn nn ?
can you try this in live


Source Audio's icon

P.S. just asked someone, Live sends note off messages as note off with release velocity.
probably your controller can't cope with that ...
If that is so, you can try imp.midi externs which can send raw midi out

or maybe send to midiout :
144 3 1 to turn led on
and 128 3 0 for off