MIDI RX initialisation

Hi,

I’ve made a patch that receive external midi information to change color and cc value on several PO16.

I’ve changed the process so it can fit with the new RX protocol on the latest update.

But now, I should reload the preset when I plug it on my laptop. Otherwise the midi RX part is not active. Did I miss something ? Should I init something on the code to make it work ?

Thanks !

If you can share the configuration file then we can take a look at it. Most likely it will be an easy fix since this use case is supported!

here’s the code block in the midi rx section :

function self.midirx_cb(_, e)
local ch, p1, p2 = e[1], e[3], e[4]
if ch == 13 then
b1, b2 = p1, p2
led_value(b1 - 1, 1, b2 * 2)
elseif ch == 15 then
a1, a2 = p1, p2
local c =
({
[17] = {{150, 255, 100}, {150, 255, 130}, 7},
[49] = {{160, 255, 0}, {0, 255, 0}, 8},
[81] = {{0, 255, 255}, {50, 150, 255}, 11},
[97] = {{255, 255, 0}, {0, 0, 255}, 7}
})[p1]
if c then
for i = 0, 15 do
led_color(i, 1, table.unpack(i <= c[3] and c[1] or c[2]))
end
end
end
end

and each potmeter setup is set as this :

Sorry, thanks by the way :slight_smile: