Sending MIDI from Max to MIDI controller crashes Max
Hello Max community! This is the first time I'm having such issues in Max.
I use this patch to control the LEDs of a Launch Control XL MK2 but Max crashes when I'm changing the color of all 16 pads. Launch Control also doesn't always receive all the data, hence the LEDs aren't always controlled properly.
I suppose the issue perhaps is that I'm sending too much information instantaneously? Any ideas how to fix it or at least figure out exactly what's causing this? Thanks in advance.
1 you copied stuff in presentaton mode
2 after uploading working patch post also infos
needed to help you
My bad about the code.
There's no other information I can provide. I send different colors to launch control, it doesn't receive the information properly and Max crashes. I need a solution to that or at least understand what the problem is.
sure there would be more infos to provide
including what OS, which midi interface and so on.
but I think your main problem are pak objects.

they trigger this when you loadbang your patch:
132 41 15
0 42 15
0 43 15
0 44 15
0 57 15
0 58 15
0 59 15
0 60 15
132 73 15
0 74 15
0 75 15
0 76 15
0 89 15
0 90 15
132 91 15
132 92 15
0 0 15
0 0 15
0 0 15
0 0 15
0 0 15
0 0 15
0 0 15
0 0 15
0 0 15
0 0 15
0 0 15
0 0 15
0 0 15
0 0 15
0 0 15
0 0 15
132 92 15
0 92 15
132 91 15
0 91 15
0 90 15
0 90 15
0 89 15
0 89 15
0 76 15
0 76 15
0 75 15
0 75 15
0 74 15
0 74 15
132 73 15
0 73 15
0 60 15
0 60 15
0 59 15
0 59 15
0 58 15
0 58 15
0 57 15
0 57 15
0 44 15
0 44 15
0 43 15
0 43 15
0 42 15
0 42 15
132 41 15
0 41 15
.........
this when you change buttonColor:
132 41 63
0 42 63
0 43 63
0 44 63
0 57 63
0 58 63
0 59 63
0 60 63
132 73 63
0 74 63
0 75 63
0 76 63
0 89 63
0 90 63
132 91 63
132 92 63
0 41 63
0 42 63
0 43 63
0 44 63
0 57 63
0 58 63
0 59 63
0 60 63
0 73 63
0 74 63
0 75 63
0 76 63
0 89 63
0 90 63
0 91 63
0 92 63
.......
you use automation...
Can you imagine how many repetitions of same midi messages are sent out ?
next question, why do you send colorChange 16 times ?

at the end you have static note numbers, static On/Off note values,
and common button color.
all you need is to get that 16 button states into premade list.
The problem was caused by colorChange data overload as you said. Fixing that made it work. Thank you!
you are welcme !
while looking at your patch,
I reduced few things to test it,
maybe it could serve you as a bit different hookup
That is awesome! Seems more organized and way more efficient. Thanks again!