diff --git a/src/iomei.cpp b/src/iomei.cpp index f15d8809964..ea1bcb62c14 100644 --- a/src/iomei.cpp +++ b/src/iomei.cpp @@ -1085,7 +1085,12 @@ bool MeiInput::ReadMeiLayerElement( pugi::xml_node xmlElement ) else if ( std::string( xmlElement.name() ) == "app" ) { vrvElement = ReadMeiApp( xmlElement ); } - // unkown + // chord - temporary, read only the first note + else if ( std::string( xmlElement.name() ) == "chord" ) { + LogDebug("Only first note of chords is read" ); + ReadUnsupported(xmlElement); + } + // unknown else { LogDebug("Element %s ignored", xmlElement.name() ); } @@ -1457,6 +1462,13 @@ bool MeiInput::ReadUnsupported( pugi::xml_node element ) } m_measure = NULL; } + else if ( std::string( element.name() ) == "chord" ) { + pugi::xml_node note = element.child("note"); + note.append_attribute( "dur" ) = element.attribute("dur").value(); + if (ReadMeiLayerElement( note )) { + LogMessage( " in chord read!" ); + } + } else if ( std::string( element.name() ) == "tupletSpan" ) { if (!ReadTupletSpanAsTuplet( element )) { LogWarning( " not readable as and ignored" );