musescore / musescore/MuseScore
MIDI input does not go to active window when second document is open
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 15.1k
- Forks
- 3.3k
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 91
Description
Describe the bug
When I use a MIDI keyboard to play or input notes, only the first window that opened is able to act on MIDI events when I press keys on my USB MIDI keyboard. This is particularly a problem when I'm trying to work with two documents at once. It would be helpful if Musescore could automatically switch so that the last active window receives the MIDI events.
To Reproduce
Steps to reproduce the behavior:
Open one score in MuseScore.
Select a measure, enter edit mode and use a MIDI keyboard to enter notes.
Open a second score.
Select a measure, enter edit mode and use a MIDI keyboard to enter notes.
Notice that the notes are still being received/process by the first score.
Expected behavior
When the second score has the focus, it should receive the events.
Screenshots
N/A
Platform information
Windows 10
Additional context
N/A
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue on Windows 10 using two open scores and a USB MIDI keyboard, then trace how MIDI events are associated with the first and second score windows. The work is done when the focused, last-active score receives MIDI note-entry events while multiple documents are open.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100