musescore / musescore/MuseScore
Option to prevent bar numbers overhanging the ends of a system
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 15.1k
- Forks
- 3.3k
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 91
Description
Your idea
When I've turned on bar numbers at every bar, and used text alignment to centre them over the bar lines, I'd like an option (hopefully turned on by default) to not have them overhanging the system into the margins.
This is separate from the existing horizontal placement of bar numbers at the left, middle, or right of the bar.
Problem to be solved
At present, there are many collisions between bar numbers and other objects like notes and accidentals in the score that must be fixed with object offsets. While I've reported a bug to make this automatic (#20009), using the text style to centre the bar numbers directly over the bar line saves space and makes this job easier (and would for an algorithm), but then I have numbers hanging into the left margin which again need to be fixed individually, and might move if the system breaks change.
Bar 17 has its number positioned where I'd like it, but bar 16's number should be able to be moved in automatically to be flush with the margin.
Prior art
No response
Additional context
At present there are options to position the numbers at the left of the bar, the centre of the bar, or at the right of the bar. You can use the text style alignment to affect whether the bar numbers are at the right, middle, or left of the position with left, centre, and right alignment respectively.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files, tests, or entry points are named. Start by reproducing the bar-number placement described in the issue, then trace the existing left, centre, and right positioning and text alignment options. Done means an option prevents bar numbers from extending into the system margins while preserving the existing placement choices.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- computer-graphics
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100