musescore / MuseScore

MuseScore is an open source and free music notation software. For support, contribution, bug reports, visit MuseScore.org. Fork and make pull requests!
https://musescore.org
Other
12.19k stars 2.64k forks source link

Hiding instrument while playing kills playback #21537

Open zacjansheski opened 8 months ago

zacjansheski commented 8 months ago

Issue type

General playback bug

Bug description

Steps to reproduce

  1. Make a score with two parts and some notes
  2. play
  3. hide an instrument (might need to be the second instrument)

This is easier to reproduce with Muse Sounds, but can be done with MS Basic as well by repeatedly showing/hiding

Screenshots/Screen recordings

https://github.com/musescore/MuseScore/assets/69917893/af749b05-5f52-4e8d-8b27-13a9f231c90d

MuseScore Version

OS: macOS 11.7, Arch.: x86_64, MuseScore version (64-bit): 4.3.0-240460302, revision: github-musescore-musescore-b615816

Regression

Yes, this used to work in a previous version of MuseScore 4.x

Operating system

Mac OS

Additional context

Easier to reproduce in larger scores.

zacjansheski commented 4 months ago

This is actually a Muse Sounds Bug. Only occurs with Muse Sounds and it is present in all versions of MuseScore 4

wizofaus commented 4 months ago

Happy to look at this one, it gets mentioned a lot, and bit me too. Happens with MS Basic too though, and even if you hide the instrument before playback.

wizofaus commented 4 months ago

BTW there's a related issue that's confusing - if you actually select the instrument in the Instruments panel, so that it is shown highlighted, then click just show/hide staff, it hides the instrument too (even if there are other staves not hidden for that instrument), and mutes the playback. So if you have ALL staves selected, that will, as you describe here "kill the playback", but like I said, happens with MS Basic too (and if you do it before hitting play, you'll notice that "Play" is disabled!). Basically: If you have ALL staves selected in the score and hit play, hiding/showing staff (or instrument) causes playback to stop. If you have a single staff selected, it restarts (on show). If you have none selected, play back position/status is unaffected (but the instrument might be muted if you hide the instrument that's currently playing)

wizofaus commented 4 months ago

https://github.com/musescore/MuseScore/assets/5364225/5b59c17f-8e6d-49cb-be6c-d9de0446833d Demonstrates that playback while hiding instruments is fine for me, except for the fact that it mutes the instrument if it's the one currently playing, which is the main bug here I would say. But I have seen a video from another user showing something similar to what you describe. Edit: just retried again and was able to reproduce it by repeatedly showing and hiding an instrument during playback. First few times it was fine, but on 4th or 5th time playback became fully muted, even though cursor kept moving. Confirmed it also occurs with MS Basic, though it seems to be a bit harder to trigger in that case.