musescore / musescore/MuseScore

Extra brackets appear for >= 5 instruments in a stave sharing group

Open
#34,730 0 comments 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

engraving P2 Pre-release feature issue
Dominant language
C++
Stars
15.1k
Forks
3.3k
Avg merge
2d 2h
Merged PRs (30d)
91

Description

Issue type

Engraving bug (incorrect score rendering)

Description with steps to reproduce
  1. Create a score with 4 identical instruments and turn stave sharing on, then off
    RESULT: Brackets disappear and reappear as expected
  2. Create a new score with 5 identical instruments and turn stave sharing on, then off
    RESULT: An extra bracket segment appears at the top of the score
Supporting files, videos and screenshots

https://github.com/user-attachments/assets/ad726d63-5acc-42f7-8605-907ff8fa411b

In which versions of MuseScore Studio is this issue present?

Nightly main

Regression

No.

Operating system

macOS 26.6.2

Additional context

Possibly something is happening for multiples of 4 instrumetns? This is the result after switching stave sharing on then off with 8 identical instruments. Notice two extra brackets - one short segment at the top, and another (full length) drawn on top of the secondary bracket.

Image
Checklist
  • This report follows the guidelines for reporting bugs and issues
  • I have verified that this issue has not been logged before, by searching the issue tracker for similar issues
  • I have attached all requested files and information to this report
  • I have attempted to identify the root problem as concisely as possible, and have used minimal reproducible examples where possible

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.