Adding a piano atop other instruments spans brace and barlines to next instrument

• Sep 1, 2020 - 08:06
Reported version
3.1
Type
Functional
Frequency
Once
Severity
S4 - Minor
Reproducibility
Always
Status
active
Regression
Yes
Workaround
Yes
Project

Came up in https://musescore.org/en/node/309883.

In MuseScore 3.x, open the file that's attached to this particular reply, not the original file I posted to illustrate the bug.

  1. Once the file is open, type "i" to open the instruments dialogue.
  2. Click the arrow by "keyboards" and then click on "Piano." Click the "Add" button.
  3. Click the up-arrow button in the middle of the dialogue several times to move the new Piano instrument to the top of the list.
  4. Click on "Staff 2" to select it, and then click the "Remove" button.
  5. Click "OK" at the bottom of the dialogue.

Observe that despite your having told MuseScore that you wanted just a treble-clef single piano staff, you now have the treble-clef staff you asked for, but it is joined in a grand staff with the Violin staff that was already present.

Workaround is to remove the brace and shorten the barline

Attachment Size
test_bug_deleteme.mscz 32.33 KB

Comments

For the record, the glitch doesn't occur specifically by adding a one-line piano, also a piano (grand staff) strictly said.
See: SATB + piano added/moved to the top: piano.mscz

Title adding a one-line piano atop other instruments spans brace and barlines to next instrument adding a piano atop other instruments spans brace and barlines to next instrument

As mentioned, the behavior is little better if you just add a normal piano without deleting the second staff - the bracket is correct but you still have an extra span.

I guess this is all being rewritten for MuseScore 4, will be interesting to see if they solve this there. It's tricky to get right, really, because really we are just guessing as to whether the new instrument should be bracketed with others or not. We're basing the decision on the staff above, which is sometimes the right thing, other times not.

Title adding a piano atop other instruments spans brace and barlines to next instrument simple workaround

Here is a simple workaround until the bug is fixed...

I saved my file using the ".mscx" uncompressed format, opened it with emacs (or any text editor) and deleted the 2 lines containing:

<bracket type="1" span="1" col="0"/>

<barLineSpan>1</barLineSpan>

Note that several occurrences of these lines may appear in various places. You have to find the right ones (or should I say the wrong ones?) to be deleted and the right ones to keep !

> BTW, what formatting is allowed here ?

Ok, I could eventually find the markdown specification at https://musescore.org/en/node/310123

Title dding a piano atop other instruments spans brace and barlines to next instrument Adding a piano atop other instruments spans brace and barlines to next instrument