IT干货网

division之MusicXML部门和时长

del 2025年05月04日 编程设计 297 0

我有一些测试套件中的MXL文件,其中第一个度量表示除法为8(即每四分音符8个单位)。

措施4是3/4的时间,其余时间如下:

<note> 
    <rest measure="yes"/> 
    <duration>24</duration> 
    <voice>1</voice> 
</note> 

我希望在这里看到 <dot/>。由于24除以8等于3,我是否应该推断该注释应加点?这是否意味着我将不得不为缺少 <dot/>的特殊情况编写代码,但该注释显然应该加点?

我对这种表示感到困惑。我希望他们自己将 type属性设置为强制性的...如果有人可以解释应该如何表示点和连音符的持续时间,我将不胜感激。

请您参考如下方法:

为什么要在该笔记上加点?如果除数为8,则表示8个单位代表四分音符。因此24代表四分之三的音符,在3/4时间的情况下是整个小节。

至于t,我对此也很好奇。这是一个来自音乐xml网站的教程文章apres un reve的示例。这也是3/4的3/4格。时间修改属性指定连音符的比例,在这种情况下为三音符,由三个八音符组成。

    <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> 


评论关闭
IT干货网

微信公众号号:IT虾米 (左侧二维码扫一扫)欢迎添加!