matron does indeed have a main loop which is consuming events that come in via timers and other low level glue for monome devices, midi, hid devices, etc. The C level event handlers in turn execute callbacks defined in Lua.
Main loop:
…and an example of one of the many functions which handles a C-level event by calling a function in Lua: