-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect pitch when using insert input mode in first measure with alto clef #26029
Comments
Any clef changed in first measure causes this issue. |
Indeed. Should have mentioned it in the report. |
Not a regression, same issue in MU 3.6.2 too. |
I've started to look into this. Will try to investigate further, but afaict the issue must originate here MuseScore/src/engraving/dom/noteentry.cpp Line 758 in ed9f1f2
Score::insertChordByInsertingTime() somewhere before MuseScore/src/engraving/dom/noteentry.cpp Line 871 in ed9f1f2
The issue only manifests in insert mode, and step time note input mode just directly calls |
In fact, core of issue is in In short, if clef is after barline (start of score, or option "after barline") record in staffList is manipulated (moved). MuseScore/src/engraving/dom/staff.cpp Lines 1406 to 1437 in 4d5ea05
Some situations are handled on many different places, I think (basic "clef before barline" directly in insertTime, other situations, if I remember in Scorre::insertMeasure / removeMeasure, others in Undo:InsertMeasure) Short fix could be to add option to move / remove elements at tick. Another variant of this issue is removing first note in place of key signature (select note, Ctrl + Del) - key signature itself remains in score, but record from keyList is removed see: keysig-removeTime-issue.mp4But I think, something deeper, redesign and refactor would be neccessary in future. Sorry for my language, I dont know right terms, but I hope, it would be understable. I think realtion between Clef (in score) and clefList /and same for Key signature and keyList, Instrument change and instrumenList, staffTypeChange and staffTypeList/ It is good, that under the hood, it is possible to manipulate Celf, and clefList independently, but in most situations, they should be "linked", so (re)moving Clef erase/move record in clefList /or vice versa, (re)moving record in clefList (re)moves Clef itself. So I think, there sould be "trinity": (And same for others, keys, times, instruments, whatever...) |
I belive, same core in #21095 |
Issue type
Engraving bug (incorrect score rendering)
Description with steps to reproduce
Workaround: add first note in step time input mode.
Supporting files, videos and screenshots
What is the latest version of MuseScore Studio where this issue is present?
4.5 prerelease 8 Jan 2025
Regression
No
Operating system
OS: Windows 11 Version 2009 or later, Arch.: x86_64, MuseScore Studio version (64-bit): 4.5.0-, revision: github-musescore-musescore-
Checklist
The text was updated successfully, but these errors were encountered: