Bug report: volta line is duplicated when empty staff is hidden
Reproduction steps:
1. create score with 2 staves
2. make sure it has at least two lines
3. add notes to the second line
4. add a volta line to the second line
5. hide empty staves
6. switch to continuous view
7. switch back to page view
the volta line appears duplicated, and appears as such in the PDF export as well. you have to reload the score to make it right.
The attached mscz file shows the problem: open it, switch to continuous mode and back.
Attachment | Size |
---|---|
bug-volta-line-duplicated.mscz | 4.75 KB |
Comments
Don't add voltas to anything but the top staff
In reply to Don't add voltas to anything by Jojo-Schmitz
Not an option here (the score is Voice + Piano, the volta must appear in both staves).
In reply to Not an option here (the score by Bertalan Fodor
Ok, as the top staff is hidden, it is a possible workaround.
Though there still remains a little bug: after switching to continuous mode and back, the beginning of the volta line gets off the right place.
In reply to Not an option here (the score by Bertalan Fodor
Why must the volta appear in both staves? That wouldn't be standard. Normally they appear on the top staff only, repeating at most for each section of a large score such as for full orchestra.
If you generate parts, the volta is copied to each part, but it would normally only appear on the top staff in the score. MuseScore 2.0 will not normally even let you attach a volta to anything but the top staff of a score, so I'm confused as to how you created that score in the first place.
In reply to Why must the volta appear in by Marc Sabatella
I indeed created 2 voltas, and copied one of them to get two. (So this may be not standard, but if the composer/musician wants it to appear I have no other chance.)
But I can accept that this is not standard, so needs fiddling/workaround.
One problem remains though:
- Create 2 staves and 2 lines
- Add volta to the first staff in the 2nd line
- Hide empty staves. You get:
- Go to continuous view, then back to page view. You get:
(Actually if this offset issue was not there, I would have not seen the duplicated volta.)
In reply to I indeed created 2 voltas, by Bertalan Fodor
I still can't figure out how you managed to do the copy, though. Voltas don't normally copy. The fact that it somehow allowed you do that is the bug. The fact that a volta you should not have been alloed to create in the first place displays funny is just a side effect of the fact that you were allowed to create the line at all.
So, can you post precise steps to show you you managed to get the volta on the second staff?
In reply to I still can't figure out how by Marc Sabatella
Just drag it?
In reply to Just drag it? by Jojo-Schmitz
How so? If someone can reproduce this, can they please post precise step by step instructions?
In reply to How so? If someone can by Marc Sabatella
Create a volta, move it by dragging, create an other one and there you go :-)
In reply to Create a volta, move it by by Bertalan Fodor
Sorry, I still just don't don't get it. Drag in which direction? Nothing I do ever causes the volta to attach to the bottom staff. Please, can someone post *precise* step by step instructions to reproduce this bug?
In reply to Sorry, I still just don't by Marc Sabatella
If you first hide the empty staff, then create the volta, 2 voltas are created.
So the steps:
- New score, 2 staves
- add line break, to have 2 lines at least
- go to Style>General, hide empty staves
- add volta to first bar of second line
go to continuous view
- 2 voltas are shown
go back to page view
- 2 voltas are shown, but not overlapping perfectly
In reply to If you first hide the empty by Bertalan Fodor
I'm still just not seeing this. I try following the steps lsited above, but when I go to continuous view, I only see one volta. This is with the current build as opposed to 2.0, but I don't remember any changes since the 2.0 that would have affected this.
However, the steps above can't quite be complete, because if I follow them literally, when I hide empty staves, the second system disappears entirely, unless I add notes. So perhaps it is some specific about when / when you are adding the notes.
So, here are my steps, using most recent build:
1) new score, flute & oboe staff
2) add line break at end of bar 4
3) add whole note B to oboe part in bar 5
4) style / general hide empty staves
5) add volta to bar 5 (which shows only the oboe part, since it is only non-empty staff)
6) switch to continuous view
Result: exactly as expected, the volta appears above the flute staff.
And I definitely cannot get it to migrate from the flute to oboe staff by any combination of dragging or copy and paste that I have been able to come up with.
So, what about my steps are different from yours? Or is this really a 2.0 versus nioghtly difference?
In reply to I'm still just not seeing by Marc Sabatella
Yeah, I forgot about the notes adding, sorry. It is extremely hard to be precise :-)
Otherwise I do the same. I will try a nightly.
In reply to I'm still just not seeing by Marc Sabatella
One more step is needed: change the span of the volta after step 5.
I discovered a quite interesting behavior, see the attached screencast:
In reply to One more step is needed: by Bertalan Fodor
Ah - great, that's the missing step indeed, I can finally reproduce :-). Looks like a bug has been submitted that relates to this: #56556: Dragging a volta on a staff other than the first causes problems.
In reply to I still can't figure out how by Marc Sabatella
Addendum - actually, even if you attach to the top staff, when using hide empty staves, you still get this bad display. That's apears to be because the top staff has no clef - none was generated when we switched from continuous to page view. This also is the case for key signature and had led to some similar odd glitches in layout when using hide empty staves and then doing something to change layout. Something we probably need to deal with at some point. It fixes itself on reload, FWIW.
In reply to Addendum - actually, even if by Marc Sabatella
Yeah, you're totally right. This glitch is a problem, which resolves by reloading (nb. This is why I miss the reload menu item from 2.0)
I guess there are other cases when hiding empty staves causes some glitches where elements are attached to the hidden staff but visible in other staff. I expect them to be quite tricky to fix.