# HG changeset patch # User Jim Hague # Date 1580729101 0 # Node ID af4722b813a545804ce17e06489105c16407d537 # Parent ce13e23259b154f9b9f462d1c0b95d80c76a404f# Parent 3b21b17907f66b59896e29361a49750a861cc498 Merge with upstream. diff -r 3b21b17907f6 -r af4722b813a5 makeAll.sh --- a/makeAll.sh Mon Feb 03 11:13:40 2020 +0000 +++ b/makeAll.sh Mon Feb 03 11:25:01 2020 +0000 @@ -66,6 +66,9 @@ ./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 @@ 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 @@ 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 -r 3b21b17907f6 -r af4722b813a5 makeAltoSax.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/makeAltoSax.sh Mon Feb 03 11:25:01 2020 +0000 @@ -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 -r 3b21b17907f6 -r af4722b813a5 web/index.html --- a/web/index.html Mon Feb 03 11:13:40 2020 +0000 +++ b/web/index.html Mon Feb 03 11:25:01 2020 +0000 @@ -134,6 +134,24 @@ +
+
+
+

Alto saxophone

+
+
+

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

+
+
+ +
+
+