You can make software and debug tool that parse Midi into action.
You may find a tool in Godot but for me it is always better to trust python on that because some platform don t have midi support.
Example: https://github.com/EloiStree/2024_05_17_MidiToIIDPython