首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >MusicXML分区和持续时间

MusicXML分区和持续时间
EN

Stack Overflow用户
提问于 2013-01-05 17:41:26
回答 3查看 1.7K关注 0票数 6

我有一个来自一些测试套件的MXL文件,其中第一个度量是除法是8(即每季度音符8个单位)。

度量4在3/4时间内,并具有以下休息:

代码语言:javascript
复制
<note>
    <rest measure="yes"/>
    <duration>24</duration>
    <voice>1</voice>
</note>

我期待在这里见到<dot/>。因为24除以8等于3,我应该推断这个音符应该是点分的吗?这是否意味着我必须为特殊情况编写代码,在这种情况下,<dot/>丢失了,但注释显然应该是点分的?

我被这种说法搞糊涂了。我希望他们自己强制使用type属性...如果有人能解释点线和元组的持续时间是如何表示的,我将不胜感激。

EN

回答 3

Stack Overflow用户

回答已采纳

发布于 2014-08-25 19:29:29

为什么要在音符上加点呢?如果除法是8,那就意味着8个单位代表一个四分之一音符。所以24代表三个四分之一音符,在3/4时间的情况下是一个完整的小节休止符。

至于tuplets,我也很好奇。这是一个取自音乐xml站点的教程'apres un reve‘的例子。这也是四分之三的情况,有24个部门。时间修改属性指定tuplet的比率,在本例中是三个八个音符的三元组。

代码语言:javascript
复制
    <time-modification>
      <actual-notes>3</actual-notes>
      <normal-notes>2</normal-notes>
    </time-modification>

上面的时间修改显示,三个八分之一音符的持续时间是两个音符通常的持续时间。

代码语言:javascript
复制
  <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>
票数 5
EN

Stack Overflow用户

发布于 2013-01-06 18:05:40

是的,有musicXML专家在监控这个论坛:-)整个rest措施本身就是一个符号。你不需要/不允许用点来扩展它。

票数 6
EN

Stack Overflow用户

发布于 2015-03-05 03:44:45

仅当分数中有一个点时,才使用<dot/>元素。在你的例子中,我们有一个不带点的完整的rest。它看起来像这样:

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

xml代码是这样的:

代码语言:javascript
复制
  <note>
    <rest />
    <duration>24</duration>
    <voice>1</voice>
    <type>half</type>
    <dot />
  </note>

在您的示例中,不需要type属性,因为rest属性measure="yes"已经告诉我们其余部分应该是什么样子。

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/14170511

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档