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
Piano keyboard does not work when MuseScore is newly opened #17421
Comments
You don't need to enter a note but you do need to select something so MuseScore knows which staff to use for the sound. That's kind of by design, but one with room for improvement - a reasonable default should exist. |
When you are not in note input mode, pressing keys on the piano keyboard previews the sound – nothing is entered on the stave. And @MarcSabatella I'll need you to clarify what you mean by "a reasonable default should exist". |
What's missing, is that sound preview does not work when you have just opened MuseScore. It only starts working after clicking on a note or entering a note. |
Exactly. Although, using the top staff when nothing is selected is what MU3 did and we did get complaints about that. People would resort to adding an invisible staff above all others to force a specific sound to be used. It is a piano keyboard, so another reasonable possibility - and one that some users had requested - is to use piano sound unless something explicit is selected. Another possibility is to give the piano keyboard its own mixer channel so the user can select a sound, although I'm not sure that should take precedence if the user has explicitly selected a staff. |
Ah got it, ok.
|
It turns out that I was apparently confused myself: you have to select something and keep it selected. That is working correctly (even immediately after opening MuseScore afaics), so there is no bug fortunately. But I think that's quite unintuitive. My expectation would be that sound preview will always use the sound of the last clicked staff, even if nothing is currently selected. And if you have never clicked anything yet, it will use the sound of the top staff. (And by the way, it looks like in MS3 sound preview is not working at all. Is that correct?) |
It seems that for a newly opened score, selecting a staff is enough to trigger sound. But for a newly created score, you do indeed need to enter a note first. So indeed, that's a bug. Regarding the default with nothing selected, I agree that if something was previously selected, we should use that. We do partially track this already, but only during note input. We use it to re-establish a reasonable note input position if the user presses "N" with nothing selected, and also to re-establish the selection for the accessibility command "Shift+L". Should be simple enough to add the tracking to ordinary selection as well. MU3 piano keyboard is working fine for me. I know there was a bug at one point where you would or wouldn't get sound from the keyboard depending on exactly what was selected - note, rest, or range. |
At the moment in MS4: yes, you have to keep something selected. However, if you've just created the score, then even selecting a stave won't trigger the sound preview feature; you have to enter a note first to kick-start it into gear. I'd suggest that this is a bug. Interestingly, your point about the sound preview always using the last clicked staff is how MS3 does it, and it does seem to be working. |
Ok so to summarise our desired behaviour:
How does this sound? |
Good to me. I'd still like a sound in the case where nothing has been selected at all yet - so there is no last-selected to use. Top staff is as good as anything. |
Whenever I first see the keyboard, I am expecting a piano, but when I am composing with different instruments, I am expecting those instrument instead. I am used to the default staff to be piano so I immediately assumed that having a new score will have the piano keyboard a piano sound too. Also, I only notice the piano keyboard not working because I was tuning my instruments and I was too lazy to go to my physical piano so I just open MuseScore and go immediately to the piano keyboard. |
Issue type
Other type of issue
Bug description
Piano does not work when MuseScore is newly opened. It will only work after a note has been inputted on the staff.
Steps to reproduce
Screenshots/Screen recordings
2023-04-30.14-27-52.mp4
MuseScore Version
Version 4.0.2
Regression
I don't know
Operating system
Windows 10
Additional context
No response
The text was updated successfully, but these errors were encountered: