Mercurial > dottes
view makeCello.sh @ 181:6a0bdabfb255
Add a A4 portrait book with multiple tunes per page.
Also add a script to make all variants of a single book, and
look for <tune name>.tex files, and if one exists add it after the tune.
author | Jim Hague <jim.hague@acm.org> |
---|---|
date | Sat, 26 Jan 2013 13:47:01 +0000 |
parents | cc2d4925f280 |
children | 76f18e0a80bd |
line wrap: on
line source
#!/bin/bash # # Copy a booke to cello-friendly form. Bass clef, transposed down 2 octaves. # # It would be easier to do with transpose in dottes.fmt, but I can't get # that to work properly for a 2 octave downward transpose. # # This relies on abcm2ps >= 6.0 but does not check for it. if [ $# != 1 ]; then echo "Usage: makeCello.sh <book dir name>" exit 1 fi dir=`pwd` booke=$dir/$1 outdir=$dir/$1-Cello mkdir -p $outdir find $booke -name "*.abc" | sort | while read filename do name=`basename $filename .abc` sed -e "/^ *K:/s/$/ octave=-2/" $filename > $outdir/$name.abc done