Plugins can't set an element's voice or track

Open
#35,704 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

  • #35706 by @davidstephengrant — closed without merging

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
52/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
cpp
Domain
desktop, devtools

Research direction

Start by inspecting the attached plugin reproduction and tracing how plugin assignments to an element’s voice, track, bracketColumn, and spannerTrack2 are handled. Reproduce the voice change in MuseScore Studio 4.7.7 or nightly main and follow the relevant plugin property setters; done when the staff text moves to voice 2 and the other reported properties can be set as expected.

Written by the indexing model from the issue text.

Description

extensions needs review P2
Issue type

Other type of issue

Description with steps to reproduce
  1. Install the attached plugin and enable it in Home > Plugins.
  2. Open a score, add staff text to a note in voice 1, and select the staff text.
  3. Run Plugins > Composing/arranging tools > Set voice 2 (repro).

Result: the staff text stays in voice 1. The plugin's log shows voice after: 1.
Expected: the staff text moves to voice 2.

Supporting files, videos and screenshots

https://github.com/user-attachments/assets/7a44fd80-5d25-4c3d-9a1b-7314ba12f97a

In which versions of MuseScore Studio is this issue present?

Reproduced in 4.7.7 and nightly main

Regression

No.

Operating system

macOS 27.2.1

Additional context

The same happens when a plugin sets an element's track, bracketColumn or (for slurs) spannerTrack2.

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
Dominant language
C++
Stars
15.5k
Forks
3.5k
Avg merge
2d 19h
Merged PRs (30d)
124

Getting set up

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.

More from musescore/MuseScore

All issues in musescore/MuseScore

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.