Open CsRic opened 4 months ago
Thank you so much for this extension. I am also trying to build it and see how to fix this problem. Would it be possible to build from the SCons?
Hi, I'm glad you found a solution that works for you. I'm currently searching the right way of resolving this issue. If I can't find anything better than yours I will merge your PR.
I've investigated and found that the issue only occurs when the MidiIn node is added directly to the scene tree. Instantiating it from another node avoids the problem. Connecting the signal using deferred doesn't resolve it either. This suggests a potential bug in Godot, possibly related to threading or we need measures to ensure thread safety. I've decided to wait for a few Godot version updates before revisiting this issue.
I connected midi_message() to my callee function _on_midi_message():
For any port index I chose for open_port(), no midi message would print whenever I hit a midi key. Instead, the Debugger showed an error per hit (note_ons and note_offs):
I am using windows 11. The extension is Release Version 0.0.2