Volta Brackets invisible (with work around)
With the attached file in MuseScore 3.6.1 and 3.6.2 the volta bracket lines are invisible (the volta numbers DO show!) after opening the file (and will not print either) until i do the following workaround:
for each volta,
select the volta by clicking on the still-visible number
in the inspector, click on Line ->Line Style (which reads "continuous") and select something else e.g. dashed.
Then repeat Line -> Line Style and select "continuous".
The lines of volta bracket are now visible and will print!
(repeat for each volta)
Clicking save works as usual, however on closing and reopening the file the problem occurs again.
Also, When "saved on-line", the brackets are invisible on the web page.
Attachment | Size |
---|---|
Waiting For FIsh.mscz | 21.45 KB |
Comments
How did you manage to get into that situation?
Ah, I see, Format > Style > Volta > Line style is set to nothing for some reason, setting it to Continuous there seems to solve the problem.
It was recorded in the score as:
<voltaLineStyle>0</voltaLineStyle>
whereas
<voltaLineStyle>1</voltaLineStyle>
is Continuous and, as being the default, won't get written.OTH the voltas are all explicitly set to
<lineStyle>1</lineStyle>
, but that apparently doesn't get honored, at least not after close/reopen.So how did that bogus style setting get into that score?
See https://doc.qt.io/qt-5/qt.html#PenStyle-enum, as per that 0 indeed is NoPen, no line at all.
Still remains how
a) that style setting made it into the score
b) why the individual voltas' override don't work
The real workaround is fixing that style setting, that also fixes the issue permanenty
In reply to The real workaround is… by Jojo-Schmitz
Thank you, Jojo
I swear i did not previously change Format -> Style ->Volta -> Line Style ... i was not even aware of it.
In fact, "invisible" is not a provided option.
But setting it to "continuous" there indeed provides a permanent fix.
Since the problem only showed up after re-opening the file, it is hard to say what i might have done that lead to the corruption.
Just for kicks, i changed the line style of just one of the voltas to "dashed" and sure enough after saving
and re-opening, the line style shows up as solid instead of dashed.
I looked in the unzipped file and it has lineStyle set to 2, but somehow this is being ignored when the file is read in, as you noticed. When i write it out again and unzip again, it is written with lineStyle omitted for that volta,
so it is indeed lost.
So basically there are two bugs:
Somehow the overall volta line style got set to 0 == invisible without me having done anything explicit.
Volta line style that is set per volta is NOT being read back from the file when it is opened and thus is lost.
I guess the option to change the volta line style for a single volta isn't one that gets used much :~)
Thanks again!
-Ted Merrill
In reply to Thank you, Jojo I swear i… by TeoMerrill
I know that you won't have set it to empty, but the question still is what is it you might have done to cause this?
And yes, it is actually 2 bugs for the price of one, special spring sale ;-)
And actually, come to think of it maybe "None" really should be an option (not "", empty though)
In reply to Thank you, Jojo I swear i… by TeoMerrill
Mind to file this or even both or even all 3 (2 Major bugs, one Suggestion) in the issue tracker?
In reply to Thank you, Jojo I swear i… by TeoMerrill
Hold on a sec and see #317163: Dashed volta lines come back as continuous after the score is saved. That might cover one or even both bugs
In reply to Hold on a sec and see … by Jojo-Schmitz
Got me curious, so i cloned the master branch for musescore and, after getting the right qt installed, built it (installed into a completely separate part of the directory tree).
On opening the file i sent you with my newly built binary, the volta brackets initially appear ok.
But all i have to do is Format -> Style -> Cancel (i.e. not change anything) and the brackets disappear!
(btw Format -> Style -> Volta -> Line Style showed the line style as "continuous").
Format -> Style -> Volta -> Line Style -> (reset icon) does nothing.
With Format -> Style -> Volta -> Line Style -> Dashed the brackets show up solid (not dashed)...
that could of course be because they are overridden for each volta.
Unfortunately i can't figure out how to get the new inspector to work to examine or change that.
In reply to Got me curious, so i cloned… by TeoMerrill
Quite ambitious! But, master branch is not really usable right now, and that PR was never tested with it. You should be using the 3.x branch.
In reply to Quite ambitious! But,… by Marc Sabatella
Okay, got and made the 3.x branch.
Obviously your fixes aren't in the branch yet.
I added a call to readStyledProperty as your pull request stated and it does ensure that the line style change to a particular volta survives save and reopen.
An interesting education in musescore internals!
Thanks.
Possible cause identified by a Facebook Usergroup Post as the score being created as a MusicXML import.
I'm guessing the default style setting for Volta Line Style is not set then and thus defaults to a numerical value of 0
In reply to Possible cause identified by… by jeetee
The score from the OP doesn't seem to stem from a MusicXML import though (or the corresponding 'originalFormat' tag has been deleted from File > Score properties)
In reply to The score from the OP doesn… by Jojo-Schmitz
So perhaps there's another way (OP) to end up in such a situation as well.
The FB User confirmed that setting the style explicitly solved their issue, so that's at least one likely path to ending up in this state.
In reply to So perhaps there's another… by jeetee
I created the file from scratch, transcribing from a printed book of sheet music.
Nothing to do with an imported file.
I have no idea how the file got in it's state.
Thanks for thinking about it.