-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Fix #316504: Update MusicXML Import of Fretboard Diagrams #7455
Fix #316504: Update MusicXML Import of Fretboard Diagrams #7455
Conversation
What are the chances this could introduces regressions? Perhaps this feature should be added to MuseScore 4 instead of 3.x? |
@RobFog, any ideas? |
I'm not a programmer but from the description it sounds like this is a larger change. The maintainers don't seem to want to introduce new features and major changes in 3.x. |
@jthistle What do you think? |
This is a 25 line change that doesn't really introduce any new features, but rather makes existing features compatible with MusicXML. That is, it's a fix rather than a feature. I'm all for this PR. |
That said, would it be possible to add an automated test (or modify an existing one) to check that this works and stays working? |
Code reviewed and tested, all OK. The current MusicXML regression tests (read MusicXML, write MusicXML, compare) do not catch this issue, as it affects fretboard state that cannot be exported to MusicXML. Reading MusicXML and writing in MuseScore format does catch the issue. |
Interestingly large parts of this, most parts of the changes to libmscore/fret.cpp, are in master already. |
Duplicate of musescore#7455, resp. backport of musescore#8014
3.x merges are closed |
Duplicate of musescore#7455, resp. backport of musescore#8014
Duplicate of musescore#7455, resp. backport of musescore#8014
Duplicate of musescore#7455, resp. backport of musescore#8014
Duplicate of musescore#7455, resp. backport of musescore#8014
Duplicate of musescore#7455, resp. backport of musescore#8014
Duplicate of musescore#7455, resp. backport of musescore#8014
Duplicate of musescore#7455, resp. backport of musescore#8014
Duplicate of musescore#7455, resp. backport of musescore#8014
Duplicate of musescore#7455, resp. backport of musescore#8014
Duplicate of musescore#7455, resp. backport of musescore#8014
Duplicate of musescore#7455, resp. backport of musescore#8014
Duplicate of musescore#7455, resp. backport of musescore#8014
Duplicate of musescore#7455, resp. backport of musescore#8014
Resolves: https://musescore.org/en/node/316504
After updating Fret Diagrams to allow for [Open markers + additional fret dots] from within MuseScore's fretboard diagram editor, MusicXML import needed updating to properly form a diagram with potentially both open markers and fret marks on the same string. There was also an issue with extraneous mute markings even with the presence of a fret-dot while being imported (they are implicitly formed during initialization rather than being explicit data like with fret markers). This takes care of issue linked above.
Aside: even though FretDiagram::init() isn't involved in importing from xml, it was erroneously setting _maxFrets rather than _frets from the corresponding "getter" frets() function, so changed that also.