diff --git a/makeAll.sh b/makeAll.sh index 98dacab..896a963 100755 --- a/makeAll.sh +++ b/makeAll.sh @@ -66,6 +66,9 @@ makeASingleBooke() ./makeAltoRecorderCFingering.sh $1 makeATransposedBooke $1-AltoRecorderCFingering $1 "alto recorder, C fingering" + + ./makeAltoSax.sh $1 + makeATransposedBooke $1-AltoSax $1 "alto saxophone" } makeABumperBooke() @@ -98,12 +101,14 @@ makeBumperBookes() local cellobumper local hornbumber local recorderbumper + local saxbumper for booke in "$@" do cellobumper+=("${booke}-Cello") hornbumper+=("${booke}-HornInF") recorderbumper+=("${booke}-AltoRecorderCFingering") + saxbumper+=("${booke}-AltoSax") done makeABumperBooke "${cellobumper[@]}" for f in Bumper*.pdf @@ -123,6 +128,12 @@ makeBumperBookes() t=$(echo $f | sed -e "s/.pdf/-AltoRecorderCFingering.pdf/") mv $f ./web/$t done + makeABumperBooke "${saxbumper[@]}" + for f in Bumper*.pdf + do + t=$(echo $f | sed -e "s/.pdf/-AltoSax.pdf/") + mv $f ./web/$t + done } declare buildBookes diff --git a/makeAltoSax.sh b/makeAltoSax.sh new file mode 100755 index 0000000..70c76e4 --- /dev/null +++ b/makeAltoSax.sh @@ -0,0 +1,48 @@ +#!/bin/bash +# +# Transpose a book for alto saxophone + +if [ $# != 1 ]; then + echo "Usage: makeAltoSax.sh " + exit 1 +fi + +dir=`pwd` + +booke=$dir/$1 +outdir=$dir/$1-AltoSax + +mkdir -p $outdir/Compact + +# Copy book component items. +cp $booke/*.txt $booke/*.md $booke/image.jpg $outdir + +echo "Alto Saxophone" > $outdir/instrument.txt + +find $booke -name "*.abc" | + while read filename + do + name=`basename $filename .abc` + + dir=`dirname $filename` + basedir=`basename $dir` + compact="" + if [ "$basedir" = "Compact" ]; then + compact="Compact/" + fi + + range=`./abcrange.py $filename` + + # Transpose concert pitch down a minor third. + transpose=-3 + + # There's no point in having transposed chords. Remove from the + # abc before transposing. Some badly formed chord items can give + # erroneous output from abc2abc (like, strings of binary gibberish). + sed -e "s/\"[^\"]*\"//g" $filename > $outdir/$name.abc.tmp + + # Transpose. By default abc2abc will report errors in the output, + # but this messes up output formatting so stop it. + abc2abc $outdir/$name.abc.tmp -e -t $transpose > $outdir/$compact$name.abc + rm $outdir/$name.abc.tmp + done diff --git a/web/index.html b/web/index.html index 28759ba..f295ae0 100644 --- a/web/index.html +++ b/web/index.html @@ -134,6 +134,24 @@ +
+
+
+

Alto saxophone

+
+
+

Transpose down a third. As with horns, good sax players + can do this in their heads anyway.

+
+
+ +
+
+