我有一个来自一些测试套件的MXL文件,其中第一个度量是除法是8(即每季度音符8个单位)。
度量4在3/4时间内,并具有以下休息:
<note>
<rest measure="yes"/>
<duration>24</duration>
<voice>1</voice>
</note>我期待在这里见到<dot/>。因为24除以8等于3,我应该推断这个音符应该是点分的吗?这是否意味着我必须为特殊情况编写代码,在这种情况下,<dot/>丢失了,但注释显然应该是点分的?
我被这种说法搞糊涂了。我希望他们自己强制使用type属性...如果有人能解释点线和元组的持续时间是如何表示的,我将不胜感激。
发布于 2014-08-25 19:29:29
为什么要在音符上加点呢?如果除法是8,那就意味着8个单位代表一个四分之一音符。所以24代表三个四分之一音符,在3/4时间的情况下是一个完整的小节休止符。
至于tuplets,我也很好奇。这是一个取自音乐xml站点的教程'apres un reve‘的例子。这也是四分之三的情况,有24个部门。时间修改属性指定tuplet的比率,在本例中是三个八个音符的三元组。
<time-modification>
<actual-notes>3</actual-notes>
<normal-notes>2</normal-notes>
</time-modification>上面的时间修改显示,三个八分之一音符的持续时间是两个音符通常的持续时间。
<note default-x="92">
<pitch>
<step>E</step>
<alter>-1</alter>
<octave>5</octave>
</pitch>
<duration>8</duration>
<tie type="stop"/>
<voice>1</voice>
<type>eighth</type>
<time-modification>
<actual-notes>3</actual-notes>
<normal-notes>2</normal-notes>
</time-modification>
<stem default-y="-40">down</stem>
<beam number="1">begin</beam>
<notations>
<tied type="stop"/>
<tuplet bracket="no" number="1" placement="above" type="start"/>
</notations>
</note>
<note default-x="122">
<pitch>
<step>D</step>
<octave>5</octave>
</pitch>
<duration>8</duration>
<voice>1</voice>
<type>eighth</type>
<time-modification>
<actual-notes>3</actual-notes>
<normal-notes>2</normal-notes>
</time-modification>
<stem default-y="-42">down</stem>
<beam number="1">continue</beam>
<lyric default-y="-80" number="1">
<syllabic>single</syllabic>
<text>que</text>
</lyric>
</note>
<note default-x="162">
<pitch>
<step>C</step>
<octave>5</octave>
</pitch>
<duration>8</duration>
<voice>1</voice>
<type>eighth</type>
<time-modification>
<actual-notes>3</actual-notes>
<normal-notes>2</normal-notes>
</time-modification>
<stem default-y="-45">down</stem>
<beam number="1">end</beam>
<notations>
<tuplet number="1" type="stop"/>
</notations>
<lyric default-y="-80" number="1">
<syllabic>begin</syllabic>
<text>char</text>
</lyric>
</note>发布于 2013-01-06 18:05:40
是的,有musicXML专家在监控这个论坛:-)整个rest措施本身就是一个符号。你不需要/不允许用点来扩展它。
发布于 2015-03-05 03:44:45
仅当分数中有一个点时,才使用<dot/>元素。在你的例子中,我们有一个不带点的完整的rest。它看起来像这样:

另一方面,如果您想要休息以反映度量的持续时间,它将如下所示:

xml代码是这样的:
<note>
<rest />
<duration>24</duration>
<voice>1</voice>
<type>half</type>
<dot />
</note>在您的示例中,不需要type属性,因为rest属性measure="yes"已经告诉我们其余部分应该是什么样子。
https://stackoverflow.com/questions/14170511
复制相似问题