Mercurial > dottes
diff makeGraphics.sh @ 50:e666306c5ab1
Add list of tune first lines.
Add a list of tune first lines to the Booke. First, a small Python script to
filter a .abc file and spit out just enough to give a graphic of the first line
without the title. Then generate these graphics and generate a new section in the Booke
with a longtable of tune name and the first line graphic.
author | Jim Hague <jim.hague@laicatc.com> |
---|---|
date | Sun, 04 Mar 2012 20:16:48 +0000 |
parents | 0e7d2830cb8b |
children | 8f3b50ede59c |
line wrap: on
line diff
--- a/makeGraphics.sh Sun Mar 04 18:10:53 2012 +0000 +++ b/makeGraphics.sh Sun Mar 04 20:16:48 2012 +0000 @@ -21,9 +21,18 @@ while read filename do name=`basename $filename .abc` + + # Make the tune graphic. abcm2ps -j0 +c -n -E -O $graphicsdir/$name.eps $filename # Make $name.eps so we can build with LaTeX. mv $graphicsdir/${name}001.eps $graphicsdir/${name}.eps # And make the corresponding PDF for pdflatex. epstopdf --outfile=$graphicsdir/$name.pdf $graphicsdir/${name}.eps + + # and make the first line graphic. + $dir/abcfirstline.py $filename > firstline.abc + abcm2ps +c -M +Q -E -O $graphicsdir/firstline-$name.eps firstline.abc + mv $graphicsdir/firstline-${name}001.eps $graphicsdir/firstline-${name}.eps + rm firstline.abc + epstopdf --outfile=$graphicsdir/firstline-$name.pdf $graphicsdir/firstline-${name}.eps done