musescore / musescore/MuseScore
Style option to prevent hairpins from avoiding barlines
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
In "Dynamics & hairpins" in the styles dialog, there should be an option that allows hairpins to cross over the barline in order to meet a following dynamic.
Problem to be solved
Although it is generally good engraving practice to have hairpins avoid barlines in scores with multiple staves, this is not necessary in single-staff parts, as there is no barline for the hairpin to avoid. In fact, this practice leaves an unsatisfying empty space between the hairpin and dynamic. (Admittedly, Musescore does account for this with a threshold for excessively large gaps, but this threshold should at least be adjustable to avoid this entirely.) For these reasons, there should be an option to disable this avoidance, and it should also arguably be the default on single-staff scores/parts.
This is an extreme example, but an unpleasant gap between the hairpin and dynamic is clearly visible:
For reference, this is what it would look like if the hairpin ignored the barline:
Prior art
Dorico does this placement correctly, as shown here.
Additional context
No response
Checklist
- This request follows the guidelines for reporting issues
- I have verified that this feature request has not been logged before, by searching the issue tracker for similar requests
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
Start in the Dynamics & hairpins section of the styles dialog and trace the hairpin placement logic that avoids barlines. Add an option controlling that avoidance, including the single-staff case described in the issue. Done means the style setting changes the gap between a hairpin and a following dynamic as illustrated by the two examples.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- design, desktop
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100