# How to initialise receiving midi messages (to trigger animation or anything really) in grid editor 1.7.3 and EN16 with midirx\_cb

**URL:** <https://forum.intech.studio/t/how-to-initialise-receiving-midi-messages-to-trigger-animation-or-anything-really-in-grid-editor-1-7-3-and-en16-with-midirx-cb/931>\
**Category:** Grid\
**Created:** [October 14, 2026, 8:30am UTC](https://forum.intech.studio/t/how-to-initialise-receiving-midi-messages-to-trigger-animation-or-anything-really-in-grid-editor-1-7-3-and-en16-with-midirx-cb/931 "2026-10-14T08:30:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![coti\_k](https://forum.intech.studio/letter_avatar_proxy/v4/letter/c/3da27b/32.png) [@coti\_k](https://forum.intech.studio/u/coti_k)\
**Post date:** [October 14, 2026, 8:30am UTC](https://forum.intech.studio/t/how-to-initialise-receiving-midi-messages-to-trigger-animation-or-anything-really-in-grid-editor-1-7-3-and-en16-with-midirx-cb/931/1 "2026-10-14T08:30:55Z")

</div>

hello all,  
but I have a question to anyone that could help..  
I am trying to send midi cc to EN16 (so that I can animate the led)  
I an using midirx\_cb() and, to simplify things, lets say I use this debuggging code:

self.midirx\_cb = function(self, header, event)  
print(“midi received !”)

but I have this problem:

as soon as I commit the code it works just fine,  
but as soon as I store it to the EN16, it stops working.  
if the code is placed in the button or encoder tab it starts working again as soon as i press/turn the appropriate button/encoder. (if I place it in the system tab, it only re-funcions if I re-commit the code).  
so it is some kind of initialisation issue?  
is there some kind of message to make start listening to midi right away without having to move a control???  
please advise!!

---

<div class="post-metadata">

**Author:** ![narayb](https://forum.intech.studio/letter_avatar_proxy/v4/letter/n/b2d939/32.png) [@narayb](https://forum.intech.studio/u/narayb)\
**Post date:** [October 14, 2026, 11:51am UTC](https://forum.intech.studio/t/how-to-initialise-receiving-midi-messages-to-trigger-animation-or-anything-really-in-grid-editor-1-7-3-and-en16-with-midirx-cb/931/2 "2026-10-14T11:51:10Z")

</div>

Hi there!

The easiest way to create a generic midirx callback and have it work immediately is to init these on the Setup Event like this:

![midirx_on_setup](https://forum.intech.studio/uploads/default/original/1X/265657c788996b28df749bf56d91529d969560fd.gif)

---

<div class="post-metadata">

**Author:** ![coti\_k](https://forum.intech.studio/letter_avatar_proxy/v4/letter/c/3da27b/32.png) [@coti\_k](https://forum.intech.studio/u/coti_k)\
**Post date:** [October 14, 2026, 1:21pm UTC](https://forum.intech.studio/t/how-to-initialise-receiving-midi-messages-to-trigger-animation-or-anything-really-in-grid-editor-1-7-3-and-en16-with-midirx-cb/931/3 "2026-10-14T13:21:48Z")

</div>

Thank you narayb,

but unfortunately the callback does not work on my en16  
it works as soon as I make it print something,  
but as soon as I store it does not respond to midi messages anymore..  
any ideas? maybe sonething funny with my  
I just noticed,  
as soon as I store to the EN16, if I look into a codeblock, the console says something like:

[0,0] LUA not OK! MSG:  
#stdoFull#stdoFull#stdoFull#stdoFull#stdoFull#stdoFull#stdoFull#stdoFull#stdoFull

is it something uninportant?

---

<div class="post-metadata">

**Author:** ![narayb](https://forum.intech.studio/letter_avatar_proxy/v4/letter/n/b2d939/32.png) [@narayb](https://forum.intech.studio/u/narayb)\
**Post date:** [October 14, 2026, 1:45pm UTC](https://forum.intech.studio/t/how-to-initialise-receiving-midi-messages-to-trigger-animation-or-anything-really-in-grid-editor-1-7-3-and-en16-with-midirx-cb/931/4 "2026-10-14T13:45:22Z")

</div>

Ah, I do see that error message as well. Not sure why it happens, will create an issue for it.

However after testing, the callback does work for me, just testing it with Bitwig quickly. Messages are received properly on the Grid side and it sets values properly as well. I just tested it quickly with the `Universal MIDIRX` code snippet you can find here: grid-editor://?config-link=EvREHVYwDTDrl0aaVF1N , altho I wouldn’t use it as a final solution, it works okay for just testing.

---

<div class="post-metadata">

**Author:** ![coti\_k](https://forum.intech.studio/letter_avatar_proxy/v4/letter/c/3da27b/32.png) [@coti\_k](https://forum.intech.studio/u/coti_k)\
**Post date:** [October 14, 2026, 1:57pm UTC](https://forum.intech.studio/t/how-to-initialise-receiving-midi-messages-to-trigger-animation-or-anything-really-in-grid-editor-1-7-3-and-en16-with-midirx-cb/931/5 "2026-10-14T13:57:43Z")

</div>

thanks narayb..  
so:  
it seems the midirx\_cb in the setup stops functioning if I have checked [Sync LED Intensity] in the encoder’s midi codebox…!  
as soon as its unchecked the midirx\_cb receives midi again..  
is this the expected behaviour? can there be only one block receiving midi?  
and if yes, how do I sync led intensity to MIDI again? with some code in the setup inside the midirx\_cb?

tried to load the snippet, will not let me drag it anywhere.. what am i doing wrong? there is no system setup as it says in the text of the snippet, right? ( sorry never tried to load a snippet before..! )

please help!

---

<div class="post-metadata">

**Author:** ![narayb](https://forum.intech.studio/letter_avatar_proxy/v4/letter/n/b2d939/32.png) [@narayb](https://forum.intech.studio/u/narayb)\
**Post date:** [October 14, 2026, 2:15pm UTC](https://forum.intech.studio/t/how-to-initialise-receiving-midi-messages-to-trigger-animation-or-anything-really-in-grid-editor-1-7-3-and-en16-with-midirx-cb/931/6 "2026-10-14T14:15:46Z")

</div>

Depends on where your callback is registered to.

So if you’re already using the buttons within the MIDI Block, that’s basically a midirx\_cb in itself. So what you did is essentially creating a midirx\_cb on Setup, then you overwrite it on the encoder itself by using the Sync LED option.

The snippet you will have to drag into the blocks window like this (ignore the later parts of this GIF):

![midirx_v2](https://forum.intech.studio/uploads/default/original/1X/3b23fdf8ca1e4f5ac73a86755d9e4b1a7ee6e12f.gif)

---

<div class="post-metadata">

**Author:** ![coti\_k](https://forum.intech.studio/letter_avatar_proxy/v4/letter/c/3da27b/32.png) [@coti\_k](https://forum.intech.studio/u/coti_k)\
**Post date:** [October 14, 2026, 3:05pm UTC](https://forum.intech.studio/t/how-to-initialise-receiving-midi-messages-to-trigger-animation-or-anything-really-in-grid-editor-1-7-3-and-en16-with-midirx-cb/931/7 "2026-10-14T15:05:54Z")

</div>

hey narayb!  
i got the snippet loaded (!), and it’s receiving midi and updating the led on incoming cc.  
I will study the code to understand how it works. will get back if i get stuck.  
thanks
