Make Insert mode past the end of the score behave consistently

Open
#35,886 0 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@davidstephengrant is already working on this.

Since Dec 3, 2026.

  • #35896 by @davidstephengrant — closed without merging
  • #35902 by @davidstephengrant — open

Assessment

This issue has not been assessed yet.

Description

Your idea

Past the end of the score, Insert behaves inconsistently and unpredictably. It should work there as it does in any other bar, with one extra step first: the first note entered past the end adds a new bar in the current time signature, as in the other input modes, and the note goes at the start of that bar. After that, Insert carries on as usual: each further note is inserted in front of the remaining rests, and the bar grows.

This should be the same whichever way the note is entered: a letter, Ctrl+Shift+letter, or a click.

Problem to be solved
  1. Create a score, select the rest in the last bar and press N
  2. Press 5 (quarter note) and type C D E F: the input cursor is now past the end of the score
  3. Press Ctrl+I (Insert), then type G

Result: The last bar grows by a beat, the F turns into a rest followed by the G, and an empty bar is added.

https://github.com/user-attachments/assets/a93661c0-15c7-4595-b822-f41e5b7037b2


  • If the last bar ends with a tuplet (step 2: C D E, then 4, Ctrl+3, C D E), step 3 gives "Cannot insert chord/rest in tuplet", though there is no tuplet past the end of the score.

https://github.com/user-attachments/assets/e41f3577-dfd6-4144-b845-6f5dc77dcb58


  • If the cursor is moved past the end with the arrow keys instead (select the last note, N, →), step 3 does nothing, with no message.
  • Ctrl+Shift+G behaves like step 3 above.
Prior art

No response

Additional context

T and R don't use Insert: inside the score they overwrite and past the end they add a bar, so they're left as they are.

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