lewdlime / abcm2ps

abcm2ps is a command line program which converts ABC to music sheet in PostScript or SVG format. It is an extension of abc2ps which may handle many voices per staff. abcm2ps is Copyright © 2014-2016 Jean-Francois Moine.
http://moinejf.free.fr/
GNU General Public License v3.0
82 stars 31 forks source link

"Bad length" for legit 7/8 duration #106

Closed ciacob closed 3 years ago

ciacob commented 3 years ago

Version abcm2ps-8.14.12 (2021-07-14) produces a Bad length error for something like C7/8 in ABC source code.

This duration is legit, and it is represented as a _double dotted half_ by version abcm2ps-8.13.12 (July 3, 2017).

I could go on ignoring the error, but abcm2ps-8.14.12 (2021-07-14) "auto-corrects" the music by only rendering one eight out of the expected double dotted half, which in turn causes vertical alignment to break.

Check e.g. first voice of third measure of attached test 2.pdf.

Compare that with same first voice of third measure of attached test.pdf (this one was generated by older version abcm2ps-8.13.12 (July 3, 2017)).

PDFs were generated with ghostscript.

ABC code used as source for both PDFs is in test.txt.

moinejf commented 3 years ago

The bug is fixed by the commit 7e8986e. The problem was not seen before because your unit length is big (L:1/1). Thanks for the report.

ciacob commented 3 years ago

Thanks for fixing!