musescore / musescore/MuseScore

Option to prevent bar numbers overhanging the ends of a system

Open
#20,010 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request
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.

2023-11-13 Musecore 4 1 1 bar number overhang

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

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.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.