-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable MIDI input state resets after switching between processes #24850
Comments
BTW this is easily fixed by changing What I'd actually like to change it to is:
(requires injecting midiInPort and midiConfiguration into NotationConfiguration, but creates no additional dependencies). |
I think this should be solved in the following way:
Or, @bkunda, what is your opinion about the following?
|
"MuseScore instances should only react to MIDI input when they have focus; just like the computer keyboard" Yes, that would be my preference too, though on Windows that means explicitly having to release the MIDI in port on losing focus, and on gaining focus, attempting to repeated grab it until it succeeds. But then what's the purpose of that "Enable MIDI input" menu option at all? |
BTW some related issues: If it's agreed the behaviour should be "only enable MIDI input when window has the focus" and that for Windows, it should release the MIDI port when it doesn't (and try at least a couple of times when it does receive the focus, to allow time for it to be released by other processes), then I'm more than happy to implement that. |
Issue type
UX/Interaction bug (incorrect behaviour)
Description with steps to reproduce
Supporting files, videos and screenshots
N/A, can record video if really needed a bit involved to demonstrate.
What is the latest version of MuseScore Studio where this issue is present?
4.4
Regression
I was unable to check
Operating system
Windows 11
Additional context
I've noted before that Windows doesn't handle MIDI input devices well with multiple processes - the fact that you need special software for it work at all is obviously not ideal, but in this case it's really MuseScore that's not doing what seems reasonable to expect, which is to maintain a separate "Enable MIDI input" state between instances - it seems to be trying to sync them all to use the same setting, though the menu itself doesn't always reflect that.
Ultimately all I want to do is to have MIDI input only work for the instance with the focus (exactly the same way computer keyboard input works), but if I'm able to at least turn it off for one instance and on for another, that's fine too.
Checklist
The text was updated successfully, but these errors were encountered: