Skip to content

Commit

Permalink
update default version
Browse files Browse the repository at this point in the history
  • Loading branch information
rettinghaus committed Jan 24, 2025
1 parent 8cbc288 commit 759ffc2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/iomei.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,8 @@ bool MEIOutput::Export()
m_mei = meiDoc.append_child("mei");
m_mei.append_attribute("xmlns") = "http://www.music-encoding.org/ns/mei";
AttConverter converter;
meiVersion_MEIVERSION meiVersion = meiVersion_MEIVERSION_5_0;
if (this->GetBasic()) meiVersion = meiVersion_MEIVERSION_5_0plusbasic;
meiVersion_MEIVERSION meiVersion = meiVersion_MEIVERSION_5_1;
if (this->GetBasic()) meiVersion = meiVersion_MEIVERSION_5_1plusbasic;
m_mei.append_attribute("meiversion") = (converter.MeiVersionMeiversionToStr(meiVersion)).c_str();

// If the document is mensural, we have to undo the mensural (segments) cast off
Expand Down Expand Up @@ -3931,10 +3931,10 @@ bool MEIInput::ReadDoc(pugi::xml_node root)
AttConverter converter;
m_meiversion = converter.StrToMeiVersionMeiversion(version);
}
// Default to MEI 5.0
// Default to MEI 5.1
if (m_meiversion == meiVersion_MEIVERSION_NONE) {
LogWarning("MEI version found or not known, falling back to MEI 5.0");
m_meiversion = meiVersion_MEIVERSION_5_0;
LogWarning("MEI version found or not known, falling back to MEI 5.1");
m_meiversion = meiVersion_MEIVERSION_5_1;
}

// only try to handle meiHead if we have a full MEI document
Expand Down

0 comments on commit 759ffc2

Please sign in to comment.