lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: musicXML: 2 voices in 1 measurement


From: Jacques Menu
Subject: Re: musicXML: 2 voices in 1 measurement
Date: Thu, 23 Sep 2021 08:53:57 +0200

Hello Ivanov,

You probably miss a <backup/> élément, will post an example tonight.

JM

Envoyé de mon iPhone

> Le 22 sept. 2021 à 23:04, Ivanov Dmitry <usr345@gmail.com> a écrit :
> 
> I am trying to create a musicXML file with 2 voices:
> 
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <!DOCTYPE score-partwise PUBLIC
>    "-//Recordare//DTD MusicXML 4.0 Partwise//EN"
>    "http://www.musicxml.org/dtds/partwise.dtd";>
> <score-partwise version="4.0">
>  <part-list>
>    <score-part id="P1">
>      <part-name>Music</part-name>
>    </score-part>
>  </part-list>
>  <part id="P1">
>    <measure number="1">
>      <attributes>
>        <divisions>1</divisions>
>        <key>
>          <fifths>1</fifths>
>        </key>
>        <time>
>          <beats>4</beats>
>          <beat-type>4</beat-type>
>        </time>
>        <clef>
>          <sign>G</sign>
>          <line>2</line>
>        </clef>
>      </attributes>
>      <note>
>        <voice>1</voice>
>        <pitch>
>          <step>F</step>
>          <alter>1</alter>
>          <octave>4</octave>
>        </pitch>
>        <duration>2</duration>
>        <type>half</type>
>      </note>
>      <note>
>        <pitch>
>          <step>G</step>
>          <alter>0</alter>
>          <octave>4</octave>
>        </pitch>
>        <voice>1</voice>
>        <duration>2</duration>
>        <type>half</type>
>      </note>
>      <note>
>        <pitch>
>          <step>C</step>
>          <alter>0</alter>
>          <octave>4</octave>
>        </pitch>
>        <voice>2</voice>
>        <duration>2</duration>
>        <type>half</type>
>      </note>
>      <note>
>        <pitch>
>          <step>A</step>
>          <alter>0</alter>
>          <octave>3</octave>
>        </pitch>
>        <voice>2</voice>
>        <duration>2</duration>
>        <type>half</type>
>      </note>
>    </measure>
>  </part>
> </score-partwise>
> 
> It seems ok to me: the notes are in the same measure. But when I use
> musicxml2ly and then lilypond I get the second voice shifted to the
> next measurement. What is wrong?
> <score.png>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]