How to communicate with external code

• Sep 30, 2020 - 07:14

I'm not finding any clear guidelines on how to make a plugin that can communicate with an external app. I'd like to be able to both send and receive messages to python code, probably using osc. Is this possible? And if so, how would I do it? Simple example code would be greatly appreciated.


Comments

MuseScore has a bult-in osc client, which you can enable in the preferences window. So this would likely require no changes at all on that side. Your python app would then have to implement OSC as a master/server; it looks like https://pypi.org/project/python-osc/ is what you need for that.

There has been a fairly recent (not yet merged) attempt to allow custom plugin functions to be invoked via OSC, so you might be able to build your own copy of the PR at #305502: Add a way to control plugin via OSC and work from that.

Do you still have an unanswered question? Please log in first to post your question.