grame-cncm / guidolib

Guido project - music score layout engine - music description language
http://guido.grame.fr
Mozilla Public License 2.0
152 stars 34 forks source link

The help line has offset problems in some cases #135

Closed zhwei8090 closed 2 years ago

zhwei8090 commented 2 years ago

These are the two scores I tested. I tried to find the problem, but I haven't broken through.. test.zip image image image

zhwei8090 commented 2 years ago

The guido library is adapted according to which notation software, because I found that the effects presented by different software are a little different

arshiacont commented 2 years ago

@zhwei8090 Guido Library is dependent by itself and is a renderer of the Guido Language. If you are talking about LibMusicXML, then the answer is Finale XML Export.

I believe in your case, it is best to submit the GUIDO score for debugging. If you believe the problem is on LibMusicXML then create a ticket on the corresponding GitHub.

arshiacont commented 2 years ago

I just looked at test1 and it looks like a rendering issue (rendered on GuidoEditor online):

{[ \staff<1> \title<"太 空 漫 步"> \auto<autoInstrPos="on"> \instr<"钢琴"> \accol<id=0, range="1-2"> \barFormat<style= "system", range="1-2"> 
   (* meas. 1 *)  \clef<"g2"> \key<-1> \meter<"4/4", autoBarlines="off", autoMeasuresNum="system"> \tempo<"Eerily   神秘地",fattrib="b", dy=0hs, dx=-27.736> \intens<"mf", dy=0hs> _/2 _/4 \stemsUp \beamsOff \fingering<position="above", text="1">( f1/4)
 \bar<measNum=2> 
   (* meas. 2 *)  \stemsUp \beamsOff a1/2 \stemsUp \beamsOff f1/4 _/4 \bar<measNum=3> 
   (* meas. 3 *)  \stemsUp \slurBegin:1<curve="up"> \beamsOff \fingering<position="above", text="2">( \acc( g&1/2)
)
 \stemsUp \beamsOff \acc( a&1/4)
 \stemsDown \beamsOff b&1/4 \bar<measNum=4> 
   (* meas. 4 *)  \stemsUp \beamsOff \acc( g&1/2.)
 \slurEnd:1 _/4  ]
 , 
[ \staff<2>\barFormat<style= "system", range="2"> 
   (* meas. 1 *)  \staffFormat<distance=13> \clef<"f4"> \key<-1> \meter<"4/4", autoBarlines="off", autoMeasuresNum="system"> \stemsDown \beamsOff \fingering<position="below", text="5">( f0/4)
 \stemsDown \beamsOff a0/4 \stemsDown \beamsOff c1/4 _/4 \bar<measNum=2> 
   (* meas. 2 *)  _/1 \bar<measNum=3> 
   (* meas. 3 *)  \stemsAuto \beamsOff {\tieBegin:1 \fingering<position="below", text="1">( \fingering<position="below", text="2">( b&0/1)
)
, \tieBegin:2 c1/1  } \bar<measNum=4> 
   (* meas. 4 *)  \stemsDown \beamsOff {b&0/2. \tieEnd:1, c1/2. \tieEnd:2  } _/4  ]
  }

image

zhwei8090 commented 2 years ago

@arshiacont Yes, I think there is a problem with the offset calculated in the OnDraw method of GRSingleNote, but I still don’t know how to change it.

dfober commented 2 years ago

fixed (available from dev branch)

zhwei8090 commented 2 years ago

@dfober thank you very much