[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
musicxml2ly does not recognize clef elements containing number attribute
From: |
Patrick Schmidt |
Subject: |
musicxml2ly does not recognize clef elements containing number attributes |
Date: |
Fri, 9 Sep 2011 21:31:01 +0200 |
Hey all,
here is a tiny example to demonstrate the issue: the musicxml2ly-conversion
results in a common treble clef instead of a bass clef when the
XML-clef-element contains a number attribute and a value, e.g. <clef
number="1">. Without the number attribute everything works as expected.
MusicXML allows number attributes in clef elements, so it's valid XML-code.
hth
patrick
P.S.: my first email probably got lost so I sent another one. Just in case:
Sorry for double posting.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE score-partwise PUBLIC "-//Recordare//DTD MusicXML 3.0 Partwise//EN"
"http://www.musicxml.org/dtds/partwise.dtd">
<score-partwise>
<identification>
<miscellaneous>
<miscellaneous-field name="description">This should be a bass clef, but
when converted to LilyPond it becomes a common treble clef because musicxml2ly
does not recognize the clef element when it contains a number attribute. (This
is valid XML-Code as attributes.mod allows number attributes in clef
elements.)</miscellaneous-field>
</miscellaneous>
</identification>
<part-list>
<score-part id="P1">
<part-name>bass clef</part-name>
</score-part>
</part-list>
<part id="P1">
<measure number="1">
<attributes>
<divisions>1</divisions>
<key>
<fifths>0</fifths>
</key>
<time symbol="common">
<beats>4</beats>
<beat-type>4</beat-type>
</time>
<clef number="1">
<sign>F</sign>
<line>4</line>
</clef>
</attributes>
<note>
<pitch>
<step>C</step>
<octave>3</octave>
</pitch>
<duration>4</duration>
<voice>1</voice>
<type>whole</type>
</note>
</measure>
</part>
</score-partwise>