musescore / musescore/MuseScore

recalculating Ambitus gives wrong result

Open
#19,890 7 comments 0 reactions 2 assignees View on GitHub

@XiaoMigros is already working on this.

Since Oct 17, 2025.

community needs review P2 UX/interaction
Dominant language
C++
Stars
15.1k
Forks
3.3k
Avg merge
2d 2h
Merged PRs (30d)
91

Description

Issue type

Other type of issue

Bug description

I’m not sure whether this should be classified as an engraving or a file corruption bug because I don’t know what’s going on.

After adding some notes and recalculating ambitus the lower limit is not correct, instead it is set to c♭♭♭ (the second value of the tonal pitch class enum). The first undo changes it to e♯♯♯ (the second to last). The second undo changes it to the correct thing before recalculation. Note that the upper limit is incorrect too. Just have a look at the screen recording.

Steps to reproduce
  1. Create new score.
  2. Input some notes.
  3. Add ambitus.
  4. Add some notes that extend the ambitus.
  5. Recalculate ambitus via Properties tab.
  6. Undo.
  7. Undo.
Screenshots/Screen recordings

https://github.com/musescore/MuseScore/assets/7814361/2b076bd0-95e0-482a-9e6e-077f1bcc7c86

MuseScore Version

4.1.1, also current master

Regression

I don't know

Operating system

Manjaro Linux

Additional context

No response

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.