grame-cncm / libmusicxml

A C/C++ library to support the MusicXML format.
Mozilla Public License 2.0
152 stars 33 forks source link

The latest code xml to mid has the problem of incorrect sound #49

Closed zhwei8090 closed 2 years ago

zhwei8090 commented 2 years ago

From the visual effect, there is no problem, but when converted to the mid file, the sound value of the first tick time after the end of the octave mark has an octave deviation, and the other sounds are correct (note that it is necessary to Use the code of the latest dev branch, if it is converted from https://guidoeditor.grame.fr/ here, there is a display problem)

This is the test xml: test18.xml.zip

This is the gmn of the latest dev branch code conversion:

{[ \staff<1>   \accol<id=0, range="1-2"> \barFormat<style= "system", range="1-2"> 
   (* meas. 1 *)  \clef<"g2"> \key<1> \meter<"2/4", autoBarlines="off", autoMeasuresNum="system"> _/2 \bar<measNum=2> 
   (* meas. 2 *)  \oct<1> \stemsDown \beamBegin:1 d4/16 \stemsDown c4/16 \stemsDown a3/16 \oct<0> \stemsDown f#2/16 \beamEnd:1 \stemsDown \beamBegin:1 d3/16 \stemsDown c3/16 \stemsDown a2/16 \stemsDown f#2/16 \beamEnd:1 ]
 , 
[ \staff<2> \set<autoHideTiedAccidentals="on"> \barFormat<style= "system", range="2"> 
   (* meas. 1 *)  \staffFormat<distance=13> \clef<"f4"> \key<1> \meter<"2/4", autoBarlines="off", autoMeasuresNum="system"> _/2 \bar<measNum=2> 
   (* meas. 2 *)  _/2 ]
 }