# HG changeset patch # User Jim Hague # Date 1338921294 -3600 # Node ID cc2d4925f280940c7d89f0e7a52199a4debc8846 # Parent 25e2527921407785c1839e2615fa80dd1551229b Produce a cello-friendly Booke. Transpose down 2 octaves and display with bass clef. diff -r 25e252792140 -r cc2d4925f280 makeCello.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makeCello.sh Tue Jun 05 19:34:54 2012 +0100 @@ -0,0 +1,27 @@ +#!/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 " + 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