Why Isn’t My Custom Renoise Tool Recognizing MIDI Input Properly?

Hello

I am building a simple Renoise tool using the Lua scripting API that should trigger pattern sequences based on MIDI input events. Everything works fine in terms of UI & logic but for some reason, the tool fails to consistently detect MIDI note on messages especially; when the input comes from external devices like a Launchpad / a MIDI keyboard. :innocent:I am using renoise.Midi.create_input_device() & subscribing to :incoming_midi_callback, but the callback seems to fire inconsistently or not at all. :upside_down_face:

I have confirmed that Renoise itself recognizes the MIDI input (e.g., for triggering instruments) but my tool seems blind to it. Has anyone run into timing or device prioritization issues with custom tools & MIDI handling? :thinking:Could it be something about device IDs / how Renoise manages exclusive access? Any help / debugging strategies would be appreciated!

I have checked Chapter: Introduction guide related to this for reference. While exploring data display ideas for this project; I came across what Is Power BI Dashboard and wondered how its data visualization principles could inspire cleaner feedback UIs in Renoise tools. :innocent:

Also ; if anyone has tips on parsing / logging MIDI in Lua more effectively, or a good example tool to study, I am open to recommendations. :thinking: I’m trying to keep this project clean & educational, as I’m also learning what is Lua scripting through Renoise development.

Thank you !! :slightly_smiling_face:

Pls post tool so we can troubleshoot