0xfe / vextab

A VexTab Parser for VexFlow
Other
588 stars 115 forks source link

accidental error in chord, you have to sort note #161

Open tomboul opened 5 months ago

tomboul commented 5 months ago

Hello,

I find an error and the work-around with the accidental when you have many notes at the same position.

with this vextab

options space=50 font-face=petalumaScript beam-rests=false
tabstave notation=true tablature=false key=F clef=treble time=4/4

 notes  | [:8 ##  :qd (G/5.C/5.E@/4.B/4)    :h (A/4.F/4.E@/4.F/5)  

i got this with error in accidental :

image

You see that the accidental b, take the third place but not with the E So when sort the note like this

options space=50 font-face=petalumaScript beam-rests=false
tabstave notation=true tablature=false key=F clef=treble time=4/4

 notes  | [:8 ##  :qd (E@/4.B/4.C/5.G/5)    :h (E@/4.F/4.A/4.F/5) 

i got this wich is good

image

It's perhaps a bug, but you have to know that the "@" is not associated with the note, but with the order, so you got best result if you sort the notes