-
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 #15899: MusicXML figured bass support #1733
Conversation
Hi @algadoreo I understand if you only want to focus on figured bass, but since we are on the subject of extenders in MusicXML, I'm curious to know your opinion on this?: http://musescore.org/en/node/46486 Thanks |
@chenlung |
FYI, according to the Travis build log, the automated test failed - tst_mxml_io. |
@MarcSabatella On the other hand, I also forgot to add the new test files to the list in tst_mxml_io.cpp, but this just means those weren’t tested. But in all likelihood, the result would be the same: the layout would be messed up. I await your further instructions. Thanks! |
I'm not really sure how these tests work myself, but did you try simply editing the XML to remove those tags? |
The tests you changed are not the ones which are actually automatically tested by Travis. Edit (2): |
c46bf0c
to
55657c7
Compare
Ah! So I’ve been putting the test files in the wrong directory – that would explain a lot! I also wasn’t saving while in test mode, which is why I’m getting all the extraneous formatting tags. Running tst_mxml_io now (within Xcode) returns this:
I’ve updated my development branch with the changes, so we’ll see what Travis says. Thanks everyone! EDIT: It looks like the current Travis build is failing in general, but at least tst_mxml_io passed. |
Yes, the test on the master branch was failing. If you rebase, it should be ok. |
@AntonioBL is right, the test directory is old (and probably even obsolete, at least the MusicXML tests have not been updated or used for years). The mtest directory contains the current tests, as executed by Travis. The reference files must be created in debug ("-d") mode, which a.o. suppresses layout info. And yes, all tests in mtest/musicxml/io simply read and write a file and verify the resulting output file is as expected. Even though simple in nature, this has already caught countless regression that broke the MusicXML import export without causing compile errors. |
Had a quick look at the code (but did not compile and test it). Could not find any major issues. I don't understand the purpose of mscore/importxml.cpp line 5842 "fb->setTicks(fb->ticks());" Did anyone verify if testFiguredBass[1-3].xml import correctly into one of our competitors products ? I only have Finale NotePad which ignores figured bass. |
Right – the automatic test (tst_mxml_io) passes after I removed the layout info and copied the test files to Addressing @lvinken's questions/concerns:
I will push the updates once the main Travis build is working again – as of writing, its status is “error.” |
Travis build should be ok now. |
55657c7
to
0077a9b
Compare
True as that may be, I seem to have terrible luck with it. Could someone nudge a rebuild please? |
OK tests are passing now. There is one file in the Lilypond test suite for MusicXML https://github.com/tomkrush/TAMusic/blob/master/musicXML.bundle/74a-FiguredBass.xml but it doesn't contain figured bass. It would be great to know if we can still open it after these changes. Two more things, |
Done: files in the The Lilypond test file runs just fine because it does not involve anything I implemented. The behaviour is exactly the same before/after my changes, down to the same error thrown by the purposefully ill-formed |
0077a9b
to
3b366db
Compare
Updated figured bass export and import according to the MusicXML 3.0 specification. Specifically, the following features were changed/added: - Figures held over multiple notes are no longer treated as prolonged durations, but exclusively as extension lines (is backward compatible). - Extend tags now specify type: <extend type="..." /> - Changing figures under a single note can now be exported and imported, utilizing the duration tag. - The "cross" and "backslash" modifiers can now be exported and imported as prefix or suffix tags. Also added test files.
3b366db
to
d327b29
Compare
Fix #15899: MusicXML figured bass support
Won't hurt too much, but thanks for reminding me. Pull parser now contains On Tue, Feb 17, 2015 at 3:29 PM, Nicolas Froment notifications@github.com
|
Updated figured bass export and import according to the MusicXML 3.0 specification. Specifically, the following features were changed/added: