-
Notifications
You must be signed in to change notification settings - Fork 3k
290694 import xml barline span #8146
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
290694 import xml barline span #8146
Conversation
|
The "squash and merge" option doesn't seem available? I don't know how to squash commits when some have already been pushed...I thought |
|
This one here should not contain any of the commits for a prior changed, just the last commit. |
I honestly don't know why it's showing those commits, anyway, I'll probably just create a new branch with the changes, was just trying to get the hang of this whole PR creation thing. |
src/libmscore/measure.cpp
Outdated
| bl->setTrack(track); | ||
| bl->setTrack(track); | ||
| Part* part = score()->staff(track / VOICES)->part(); | ||
| if (part != NULL && part->nstaves() > 1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code style issue (for master) braces are mandatory (the GitHub workflow would show this, it run)
Also use either part !=nullptr (NULL is C, not C++) or (better IMHO) just part.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, anyway, will have to close this one and create a new one with the right branch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But... is the fix #xxxxxx supposed to refer to an issue on musescore.org or on github?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can git rebase -i them away
"Fix #xxxxxx" refers to issues on musescore.org
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
on musescore.org
|
It is probably because for your other PR you used the master branch. And this here is a branch off of the change master then |
e75a6c7 to
3080d21
Compare
Actually I realised the problem was because when I ran |
|
Looks OK now indeed. You still want to add a unit test for this? |
Yes, I don't know what else this change might impact either. |
It's open source, I'd think you can do what you like on your own branch! But do let me know if it causes any unexpected behaviour, I haven't done a lot of testing on it. |
|
Sounds good! I'll put together some tests for it that you can maybe port back to this branch. And yes, you're right that that's how open source works; just being polite! |
|
BTW the only reason this is still in Draft mode is because I still haven't figured out how to build/run unit tests in MSVC 2019, indeed it seems the current unit tests for XML import at least can't even be compiled. |
|
This is why I (additionally) do PRs against 3.x, esp. if, like in this case, the very same code change applies to 3.x too. There the mtest do all run. |
Haven't had any luck getting tests to run in the 3.6 branch either, though at least I can compile and launch them fine (but then they quite immediately as various required files don't seem to be in place) |
|
Update: after several hours of frustration I was able to get the tests running under the debugger for the 3.6 branch. But I'm not quite sure where to put it - I specifically want it called after importing XML files with multi-staff parts, and currently mxmlIoTestRef seems to be what does that, for now I have it in "fixupScore()" which seemingly gets called after every import test. Either way, I don't want to spend too much time on this until I can I figure out how to get tst_mxml_io.cpp building (I guess it's the tst_mxml_io project?) in MU4. |
3080d21 to
cc0c71d
Compare
cc47368 to
212b7cb
Compare
|
Did you notice that (and how) #8175 fixes this issue for the 3.6.2_backend branch? The change in measure.cpp is identical (except for an added comment), the changes for tst_mxml_io.cpp are different though and there are test files too. |
Hmm, yeah he said he was going to do some work for his own branch. It may be well a more "thorough" fix than mine. |
|
|
Yes, @iveshenry18 's MusixcXML fixes for the 3.6.2_backend branch have not (yet) been ported over to master |
There's a bigger problem though - the latest changes that add the "engraving" module break this project entirely for me, still trying to figure out what's going on. |
|
A rebase should sort that, I think? Actually it seems you did that and I can't see any issue with it |
Had already done a rebase. Anyway seems closing and reopening my local solution (which is the only way I can get the musicxml tests to run currently) did. |
… (and elsewhere) spans across multi-staff parts Backport of musescore#8146, but see also musescore#8175
This commit is a port of 3080d21 with some additional tests. It makes sure that when setting the final barline type on a part with multiple staves, the barline spans the staves. Additionally, it adds a test just for grand staff barlines, and updates a test that is now corrected. Port of musescore#8175, part 1, but see also musescore#8146
… (and elsewhere) spans across multi-staff parts Backport of musescore#8146, but see also musescore#8175
This commit is a port of 3080d21 with some additional tests. It makes sure that when setting the final barline type on a part with multiple staves, the barline spans the staves. Additionally, it adds a test just for grand staff barlines, and updates a test that is now corrected. Port of musescore#8175, part 1, but see also musescore#8146
… (and elsewhere) spans across multi-staff parts Backport of musescore#8146, but see also musescore#8175
This commit is a port of 3080d21 with some additional tests. It makes sure that when setting the final barline type on a part with multiple staves, the barline spans the staves. Additionally, it adds a test just for grand staff barlines, and updates a test that is now corrected. Port of musescore#8175, part 1, but see also musescore#8146
… (and elsewhere) spans across multi-staff parts Backport of musescore#8146, but see also musescore#8175
This commit is a port of 3080d21 with some additional tests. It makes sure that when setting the final barline type on a part with multiple staves, the barline spans the staves. Additionally, it adds a test just for grand staff barlines, and updates a test that is now corrected. Port of musescore#8175, part 1, but see also musescore#8146
… (and elsewhere) spans across multi-staff parts Backport of musescore#8146, but see also musescore#8175
This commit is a port of 3080d21 with some additional tests. It makes sure that when setting the final barline type on a part with multiple staves, the barline spans the staves. Additionally, it adds a test just for grand staff barlines, and updates a test that is now corrected. Port of musescore#8175, part 1, but see also musescore#8146
… (and elsewhere) spans across multi-staff parts Backport of musescore#8146, but see also musescore#8175
This commit is a port of 3080d21 with some additional tests. It makes sure that when setting the final barline type on a part with multiple staves, the barline spans the staves. Additionally, it adds a test just for grand staff barlines, and updates a test that is now corrected. Port of musescore#8175, part 1, but see also musescore#8146
… (and elsewhere) spans across multi-staff parts Backport of musescore#8146, but see also musescore#8175
This commit is a port of 3080d21 with some additional tests. It makes sure that when setting the final barline type on a part with multiple staves, the barline spans the staves. Additionally, it adds a test just for grand staff barlines, and updates a test that is now corrected. Port of musescore#8175, part 1, but see also musescore#8146
… (and elsewhere) spans across multi-staff parts Backport of musescore#8146, but see also musescore#8175
This commit is a port of 3080d21 with some additional tests. It makes sure that when setting the final barline type on a part with multiple staves, the barline spans the staves. Additionally, it adds a test just for grand staff barlines, and updates a test that is now corrected. Port of musescore#8175, part 1, but see also musescore#8146
… (and elsewhere) spans across multi-staff parts Backport of musescore#8146, but see also musescore#8175
This commit is a port of 3080d21 with some additional tests. It makes sure that when setting the final barline type on a part with multiple staves, the barline spans the staves. Additionally, it adds a test just for grand staff barlines, and updates a test that is now corrected. Port of musescore#8175, part 1, but see also musescore#8146
… (and elsewhere) spans across multi-staff parts Backport of musescore#8146, but see also musescore#8175
This commit is a port of 3080d21 with some additional tests. It makes sure that when setting the final barline type on a part with multiple staves, the barline spans the staves. Additionally, it adds a test just for grand staff barlines, and updates a test that is now corrected. Port of musescore#8175, part 1, but see also musescore#8146
… (and elsewhere) spans across multi-staff parts Backport of musescore#8146, but see also musescore#8175
This commit is a port of 3080d21 with some additional tests. It makes sure that when setting the final barline type on a part with multiple staves, the barline spans the staves. Additionally, it adds a test just for grand staff barlines, and updates a test that is now corrected. Port of musescore#8175, part 1, but see also musescore#8146
… (and elsewhere) spans across multi-staff parts Backport of musescore#8146, but see also musescore#8175
This commit is a port of 3080d21 with some additional tests. It makes sure that when setting the final barline type on a part with multiple staves, the barline spans the staves. Additionally, it adds a test just for grand staff barlines, and updates a test that is now corrected. Port of musescore#8175, part 1, but see also musescore#8146
… (and elsewhere) spans across multi-staff parts Backport of musescore#8146, but see also musescore#8175
This commit is a port of 3080d21 with some additional tests. It makes sure that when setting the final barline type on a part with multiple staves, the barline spans the staves. Additionally, it adds a test just for grand staff barlines, and updates a test that is now corrected. Port of musescore#8175, part 1, but see also musescore#8146
… (and elsewhere) spans across multi-staff parts Backport of musescore#8146, but see also musescore#8175
This commit is a port of 3080d21 with some additional tests. It makes sure that when setting the final barline type on a part with multiple staves, the barline spans the staves. Additionally, it adds a test just for grand staff barlines, and updates a test that is now corrected. Port of musescore#8175, part 1, but see also musescore#8146
Resolves: https://musescore.org/en/node/290694
[MU3] fix #290694 - ensure that final barline created during musicxml import (and elsewhere) spans across multi-staff parts