Instrument names incorrectly positioned when part contains both hidden and visible staves
- Open attached score (produced in 2.3.2).
Result: Empty staves appear (see attached images for expected and actual results).
Notes:
Also reproducible in a new score.
Only PDF exports the actual result faithfully (PNG and SVG do not show the problem).
Using MuseScore 3.0 Nightly Build 9647b18 - Mac 10.11.6.
Comments
This is a recent regression (within the last week, I'd say).
Confirmed
And this is a core functionality we need make sure to work properly (after all 'Use "Hide empty staves"' is #2 in the FAQs), so upgraded to major
This issue occurs on September 20.
This nightly works: 161be58
Not this one: c07ed54
So, a side effect of the last mentioned nightly/commit above?
Or (more likely?): https://github.com/musescore/MuseScore/pull/3966/files
Or (seems not related at first glance) ? : https://github.com/musescore/MuseScore/pull/3912
I think I rewinded the first mentioned pull request but the error still occurs. The reason should be something different.
For my personal use I have a patch available. But I doubt it is the most efficient solution.
This is definitely a result of https://github.com/musescore/MuseScore/pull/3966, specifically the changes to libmscore/page.cpp. If the third parameter to
scanElements()
is changed back tofalse
, the staves are hidden properly.Came up again, other aspect, in #277123: Notes formerly in an invisible staff (MS 2.3) appear in the score on top of a different staff
See https://github.com/musescore/MuseScore/pull/4032. This reverts the changes to libmscore/page.cpp mentioned above.
Fixed in branch master, commit 18cd99a0f4
fix #276537: Hidden Staves appear when Hide Empty Staves enabled
Fixed in branch master, commit 35323ae3aa
Merge pull request #4032 from mattmcclinch/276537-hidden-staves
fix #276537: Hidden Staves appear when Hide Empty Staves enabled
It's fixed in the original example, but the bug seems to exist elsewhere - see the attached score and exported image.
Using MuseScore 3.0 Nightly Build c94b520 - Mac 10.11.6.
Indeed, the instrument names are still visible even though the empty staves (and all of the elements within) seem to be hidden as expected.
Hold on, why are the TAB staves empty? Shouldn't they be linked to the standard staves above? This is causing the instrument names to be displayed incorrectly.
This is a truncated excerpt of a score which listed only the pitched staves on the first page so that all entries can all fit.
I think perhaps you did not understand what I meant. Usually when an instrument is represented by a TAB staff and a standard staff, the two staves are linked so that they will always contain the same music. This appears to not be the case in your score. The TAB staves are empty even though their counterpart standard staves are not. This is causing the TAB staves to be hidden even though the instruments have notes in those measures, which in turn is causing problems when it comes to displaying the instrument names.
Hi Matt,
I thought I did understand, but I'll try to explain more.
Hidden notes were entered so that I could hide certain staves in the first system (see #43916: Exceptions to hidden staves for specific systems), but what you describe is deliberate because, as well as doubts regarding the reliability of linked staves (and parts, incidentally), they may not handle ottava well (see #29986: Ottava notes from music staff do not translate correctly to linked tablature).
Hope that helps?
Okay, that makes sense. There seems to be a problem with positioning the instrument name when the instrument contains multiple staves, at least 1 of which (but not all) is hidden. If all staves of an instrument are hidden, the instrument name is hidden (as it should be). If none of the instrument's staves are hidden, the instrument name is positioned properly.
I changed the title to better describe the current problem. I also located the source of the problem, and fixed it with this patch: https://github.com/musescore/MuseScore/pull/4074.
Fixed in branch master, commit 57822d26a8
fix #276537: Instrument names incorrectly positioned when part contains both hidden and visible staves
Fixed in branch master, commit 8efd6fdc46
Merge pull request #4074 from mattmcclinch/276537-hidden-staves
fix #276537: Instrument names incorrectly positioned when part contains both hidden and visible staves
Fixed in branch 3.0alpha2, commit 0af0cc803b
Merge pull request #4074 from mattmcclinch/276537-hidden-staves
fix #276537: Instrument names incorrectly positioned when part contains both hidden and visible staves
Fixed in branch 3.0alpha2, commit 9828f50e43
Merge pull request #4074 from mattmcclinch/276537-hidden-staves
fix #276537: Instrument names incorrectly positioned when part contains both hidden and visible staves
Automatically closed -- issue fixed for 2 weeks with no activity.