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

Add boolean option nowrap #61

Closed p3l6 closed 4 years ago

p3l6 commented 4 years ago

This option disables line wrapping, instead allowing unlimited shrink. Useful either with barsperstaff or manual linebreaks.

There may be another way to achieve this, but I was having trouble formatting the bars that I wanted per line without going to landscape mode.

p3l6 commented 4 years ago

As an example, here is the difference with the option off and on.

Screen Shot 2019-10-23 at 8 49 49 PM Screen Shot 2019-10-23 at 8 49 31 PM
moinejf commented 4 years ago

I don't see what you want. Line breaking may be changed by the following commands:

%%continueall 1 %%linebreak $ %%maxshrink (value range 0.0 to 1.0) %%breaklimit (value range 0.5 to 1.0)

Did you try them?

p3l6 commented 4 years ago

I tried those, but I think what I am trying to achieve is shrinking the lines beyond a maxshrink of 1, perhaps? I would rather have the line run off the end of the page than have some of the measures wrap to the next line, and that was the goal of this commit.

Although now that I'm playing with it some more, It looks like I didn't achieve "infinite shrink" and eventually the notes revert to the default spacing when they get too close together.

p3l6 commented 4 years ago

Revised to allow very shrunken spacing. See new screenshot for an example of what I am trying to achieve here. I understand that this may be undesirable for many others, and won't be offended if this pull request is not approved! Thanks for looking so promptly though!

Screen Shot 2019-10-24 at 9 18 44 AM
p3l6 commented 4 years ago

I'm sorry, this is actually a mess, I'll re-open if I think I come up with something that works!

p3l6 commented 4 years ago

I did get this working well for me, but I still consider it a bit of a hack, so I wouldn't submit it for a pull.