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
80 stars 31 forks source link

Staffscale directive is ignored for subsequent tunes when using single file eps output (-E -O) options #108

Open BobtheBox opened 2 years ago

BobtheBox commented 2 years ago

When running with a format file and selecting single output files, only the first ps file generated uses the declared staffscale setting. Subsequent ps files in the output use the default (staffscale 1.0)

Command line: abcm2ps.exe -F "A5Landscape.fmt" source.abc -E -O "%output_image_dir%processed"

Format file (A5Landscape.fmlt) contains: % staffscale changes the relative size of the music in relation to the page staffscale 1.2

Generates multiple files (given two entries in source.abc): %output_image_dir%processed001.eps %output_image_dir%processed002.eps

processed001.eps has staffscale = 1.2 processed002.eps has staffscale = 1.0

Note that the same behaviour is seen if no external fmt file is used and the staffscale is included in the header of the abc file (it is only applied to the first tune in the file). If the directive is explicitly included in each tune then it is applied correctly.

Version is reported as abcm2ps-8.14.11

moinejf commented 2 years ago

The problem should be fixed. Thanks for the report.