Import of Capella 2.X files
Type
Functional
Severity
S5 - Suggestion
Status
won't fix
Regression
No
Workaround
No
Project
offspring of #14064: [1.2 pre-release] Opening capella files causes crash
MuseScore claims the attach files to not be in Capella format ("Load failed: bad file signature: no capella file?") and refused to open them. Capella opens them just fine.
They do not start with "CAP" though.
Problems exists with branch (r5430) and trunk (r5431)
Attachment | Size |
---|---|
broken_capella_files.zip | 3.27 KB |
Comments
This is a never ending problem. That's why I agree with Thomas, we should consolidate on MusicXML import.
In any case, it's more a feature request (supporting more recent (?) capella format) than a bug report.
Well, the problem is that XML is not an option, if all you got is just a (bunch of) Capella file(s). And not all version of Capella can export XML, as far as I understand.
At least in Germany there are quite a few Capella users, convincing them to turn to MuseScore would be far easier if it would import all their Capella files.
I have some 400 Capella files I'd need to import... none of which imports with out major loss of information! I'm not prepared though to buy Capella, just to possibly be able to export these as XML, to then import them into MuseScore. And the folsk I got the Capella files from are on an older release, without XML export...
Currently MuseScore tries to support Capella 3.X (from 2000) and does not support the 2.X format of Capella files.
The files attached to the issue are Capella 2.1 files according to the small specification posted in this thread.
As a way of archiving this file format, I attach here a copy of this spec.
I have to agree with Thomas and lasconic. While you might be looking at 400 files you need to convert for whatever reason, realistically, shouldn't most capella users should be able to export to MusicXML themselves? And if capella is as popular as you say (I had never heard of it before switching to MuseScore and seeing it on the list of import formats), shouldn't it be an easy matter to find someone with a more recent copy to do the export for you?
I have to imagine there would be far more Finale and Sibelius users than capella users also making the switch, though, and hence also concerned with importing their scores. Time spent improving capella import for the benefit for the few for whom the current import facilities are insufficient is time that could have been spent improving MusicXML for the benefit of not only the majority of capella users, but also users of Finale, Sibelius, and other notation programs. Even if it were decided that it was worth spending time working on import of proprietary formats from other programs, I would think Sibelius and Finale would be highest priority.
Of course, that's not to say it isn't worth getting the import of capella 2.x files working if it isn't terribly involved. Or, perhaps this would be the sort of project that would make a nice summer project for some aspiring programmer - again, if there are enough capella users to be concerned about, presumably one of them would have the necessary skills and might be interested?
This is a bit wierd, I believed those files to be newer than all the others, apparently not so.
But that may give relief, as I guess I can get the person who gave them to me to store them again in the newer 3.x format
(I'm pretty sure his version is not new enough to support XML though).
As to popularity of Capella vs. Sibelius and Finale: I personally know a good handfull Capella users, but not a single one using Finale or Sibelius. I only learned via the MuseScore forums about the existencence of these.
This may just my limited view, or a pure german thing (Capella being a german product) though, worldwide it might be a small minority, I don't know.
Found another such file, in case it helps. These files are characterized by a magic number
8B E2 B3 74
.Also, documentation ought to state that only the Capella 3.x format is supported; currently, various pages (e.g. http://musescore.org/en/handbook/file-format) claim Capella support without explaining that 2.x won't work.
Tha online Handbook (in english and german) now mentions which Capella versions are supported
Just had a quick look at the spec. Capella 2 file format is (as is to be expected) rather similar to Capella 3, but a liitle bit less complicated. Unfortunately, there are enough differences to prevent us from slightly adapting to existing Capella importer to also accept Capella 2. A Capella 2 importer could share a significant amount of code with the existing Capella importer, but would also require a significant amount of new code.
Even though I sometimes enjoy working on a different subject, I agree that our priority should be to focus on getting MusicXML working well.
I'm not sure how to interprete http://de.wikipedia.org/wiki/Capella_(Software), it claims the cap2 format being used in Capella 2.x, 2000 (3.0) and 2002 (4.0), and cap3 Format starting in Capelle 2004 (5.0), together with the introduction of capXML.. http://en.wikipedia.org/wiki/Capella_(notation_program) though reads differrently and supports the claim that cap3 format started with Capella 2000 (3.0). I'm confused...
The error message when encountering a 2.x version file should be improved.
Maybe from: "Load failed: bad file signature: no capella file?" to "Load failed: bad file signature: no Capella file or not from version 2000 (3.0) or later?"
Submitted that as a pull request, https://github.com/musescore/MuseScore/pull/307
Not sure whether that message needs a linebreak to render properly.
Improved error message in a0f8eae
Looks good to me
There is an issue left with this: when using MuseScore in batche. or command line mode, I think it should not show that alert box (and requesting a user action), but rather just show that message on stderr.
In capella.cpp, line 2349, it should check the globel noGui and decide whether to QMessageBox() or qDebug() (?)
Same issue BTW for GuitarPro import in importgtp.cpp at line 2673
See importmidi.cpp, line 921 and exportmp3.cpp, line 620 for how it should be.
thanks, lasconic, for having fixed this in d98a3ee
My workaround for this is now to print them with the free Capella Reader into a PDF printer (e.g. PDF24), them convert that into MusicXML using PDFtoMusic pro
Let's close this as not being worth the effort to write lots of code just to be able to import Cpaella files that are older than 16 years
In reply to #14 by Jojo-Schmitz
For all capella users still searching for an option to read Capella V2 files: I've created a small converter application (to MusicXml):
https://github.com/lg2de/cap2musicxml
I'd be happy if anyone could find this useful.
In reply to For all capella users still… by lg-dd
Hi lg-dd. I had a look to github. On github there is no exe-file. I am not a programmer. Could you please provide the executible version of your command line tool? I am very interested in that!
Fixed in branch master, commit 06f75d955e
fix #15385: update repeat lists when changing the global tempo multiplier
That fix is entirely unrelated
Fixed in branch 4.0.2, commit 3f6244d0f6
fix #15385: update repeat lists when changing the global tempo multiplier
Fixed in branch 4.0.2, commit 3f6244d0f6
fix #15385: update repeat lists when changing the global tempo multiplier