musescore / MuseScore

MuseScore is an open source and free music notation software. For support, contribution, bug reports, visit MuseScore.org. Fork and make pull requests!
https://musescore.org
Other
12.05k stars 2.6k forks source link

Dynamic added before editing tuplets gets deleted with certain edits #23066

Open DaddyLudwig opened 3 months ago

DaddyLudwig commented 3 months ago

Issue type

UX/Interaction bug (incorrect behaviour)

Bug description

I run into this quite a bit with slow movements where I often set up the tuplet measures before doing any note input because of how dense the tuplets are. And really with any passages where I have both tuplets and dynamics next to each other. If you do certain edits to the last note of the tuplet after adding the dynamic that follows said tuplet, such as changing the note letter by pressing the corresponding key or changing between a note and a rest, the dynamic gets deleted

Steps to reproduce

  1. Add tuplet to score
  2. Add dynamic after the tuplet
  3. Edit the last note of the tuplet by either changing the note with the corresponding letter key or changing between a note and a rest
  4. See that the following dynamic gets deleted

Screenshots/Screen recordings

Tuplet measure shows unexpected behavior, non-tuplet measure shows the behavior I would expect:

https://github.com/musescore/MuseScore/assets/6530761/e953fc35-ba07-4700-aa31-d277c84de1cb

MuseScore Version

MuseScore Studio 4.3.1

Regression

No.

Operating system

Windows 10

Additional context

Expected behavior: Dynamics don't get deleted when editing the last note of a tuplet

wizofaus commented 3 months ago

Confirmed this doesn't happen if it's not a tuplet, or if you make other edits, like adding a note to an existing chord, or shifting the pitch so it only requires an accidental (vs a different note name).