In order to make the staff lines as thin as posible you should edit the file syms.c. You should change a little bit the staff macro. This is the original staff macro:
"\n/staff { % usage: l staff - draw staff\n"
" dlw dup 0 rlineto dup neg 6 rmoveto\n"
" dup 0 rlineto dup neg 6 rmoveto\n"
" dup 0 rlineto dup neg 6 rmoveto\n"
" dup 0 rlineto dup neg 6 rmoveto\n"
" 0 rlineto stroke\n"
"} bdef\n"I've replaced dlw macro by another value, 0.4 in this case:
"\n/staff { % usage: l staff - draw staff\n"
" 0.4 setlinewidth dup 0 rlineto dup neg 6 rmoveto\n"
" dup 0 rlineto dup neg 6 rmoveto\n"
" dup 0 rlineto dup neg 6 rmoveto\n"
" dup 0 rlineto dup neg 6 rmoveto\n"
" 0 rlineto stroke\n"
"} bdef\n"You should test values, 0.4 looks well in printed music but I don't know when exporting gif or png. After doing this changes you need to compile abcm2ps again.
Another way to do something like this is by changing the value of dlw macro in buffer.c file. This is the original dlw macro:
"/dlw {0.8 setlinewidth} bdef\n");
You could change it by:
"/dlw {0.4 setlinewidth} bdef\n");
It will change the thickness of all lines that use dlw macro.
The grey lines are not created by abcm2ps, they are created by the antialias function.
I hope this help you.
Regards,
Luis Pablo
I. Oppenheim wrote:
Dear ABC friends,
...And now for something completely different!
When abcm2ps creates its postscript output, it shades the staff lines by adding tiny gray lines beneath the black lines. This looks wonderful when you print the output, but unfortunately it doesn't look as nice when you convert the resulting PS file to gif or png for display on the web.
Is it possible to instruct (or modify) abcm2ps to create pure "black and white" PS output (without gray values) and to draw the staff lines as thin as possible? This way the output would look much clearer on the web.
In fact I found a music program (musicator) that creates exactly the type of clear and simple gif images that I need for the web. Here follows an example:
http://www.joods.nl/~chazzanut/Maoz-Marcello.gif
Note also that the thin sans-serif letters used here are much better readable on the web than the thick Times letters that are used by default by abcm2ps.
Now, is it possible to tweak abcm2ps to create the same type of clear low resolution output as musicator? And what postscript font should I select?
Groeten, Irwin Oppenheim [EMAIL PROTECTED] ~~~*
Chazzanut Online: http://www.joods.nl/~chazzanut/ To subscribe/unsubscribe, point your browser to: http://www.tullochgorm.com/lists.html
To subscribe/unsubscribe, point your browser to: http://www.tullochgorm.com/lists.html
