Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions importexport/musicxml/exportxml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6389,6 +6389,10 @@ static void identification(XmlWriter& xml, Score const* const score)

xml.stag("encoding");

QString encoder = score->metaTag("encoder");
if (!encoder.isEmpty())
xml.tag("encoder", encoder);

if (MScore::debugMode) {
xml.tag("software", QString("MuseScore 0.7.0"));
xml.tag("encoding-date", QString("2007-09-10"));
Expand Down
4 changes: 3 additions & 1 deletion importexport/musicxml/importmxmlpass1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1267,7 +1267,9 @@ void MusicXMLParserPass1::identification()
else if (_e.name() == "encoding") {
// TODO
while (_e.readNextStartElement()) {
if (_e.name() == "software") {
if (_e.name() == "encoder")
_score->setMetaTag("encoder", _e.readElementText());
else if (_e.name() == "software") {
QString exporterString = _e.readElementText().toLower();
setExporterSoftware(exporterString);
}
Expand Down
2 changes: 1 addition & 1 deletion mtest/musicxml/io/testOrnaments.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<work-title>Ornaments import test</work-title>
</work>
<identification>
<creator type="composer">Klaus Rettinghaus</creator>
<encoding>
<encoder>Klaus Rettinghaus</encoder>
<software>MuseScore 0.7.0</software>
<encoding-date>2007-09-10</encoding-date>
<supports element="accidental" type="yes"/>
Expand Down
1 change: 1 addition & 0 deletions mtest/musicxml/io/testSibOttavas_ref.mscx
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
<metaTag name="arranger"></metaTag>
<metaTag name="composer"></metaTag>
<metaTag name="copyright"></metaTag>
<metaTag name="encoder">James Mizen</metaTag>
<metaTag name="lyricist"></metaTag>
<metaTag name="movementNumber"></metaTag>
<metaTag name="movementTitle"></metaTag>
Expand Down