Mercurial > dottes
comparison 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 |
comparison
equal
deleted
inserted
replaced
49:ac3bbc2195c1 | 50:e666306c5ab1 |
---|---|
19 # Now, for each tune, make the tune graphic. | 19 # Now, for each tune, make the tune graphic. |
20 find $booke -name "*.abc" | sort | | 20 find $booke -name "*.abc" | sort | |
21 while read filename | 21 while read filename |
22 do | 22 do |
23 name=`basename $filename .abc` | 23 name=`basename $filename .abc` |
24 | |
25 # Make the tune graphic. | |
24 abcm2ps -j0 +c -n -E -O $graphicsdir/$name.eps $filename | 26 abcm2ps -j0 +c -n -E -O $graphicsdir/$name.eps $filename |
25 # Make $name.eps so we can build with LaTeX. | 27 # Make $name.eps so we can build with LaTeX. |
26 mv $graphicsdir/${name}001.eps $graphicsdir/${name}.eps | 28 mv $graphicsdir/${name}001.eps $graphicsdir/${name}.eps |
27 # And make the corresponding PDF for pdflatex. | 29 # And make the corresponding PDF for pdflatex. |
28 epstopdf --outfile=$graphicsdir/$name.pdf $graphicsdir/${name}.eps | 30 epstopdf --outfile=$graphicsdir/$name.pdf $graphicsdir/${name}.eps |
31 | |
32 # and make the first line graphic. | |
33 $dir/abcfirstline.py $filename > firstline.abc | |
34 abcm2ps +c -M +Q -E -O $graphicsdir/firstline-$name.eps firstline.abc | |
35 mv $graphicsdir/firstline-${name}001.eps $graphicsdir/firstline-${name}.eps | |
36 rm firstline.abc | |
37 epstopdf --outfile=$graphicsdir/firstline-$name.pdf $graphicsdir/firstline-${name}.eps | |
29 done | 38 done |