Mercurial > dottes
view makeAll.sh @ 748:ce5c7214f9aa
Introduce mechanism for having different tune images for compact printed output.
Sort alternate .abc in subdir 'Compact' under the booke dir. Use that as
the graphic for A5 output, assuming it will be vertically more compact.
Use Bear Dance as an example, as it has commentary that currently
overflows an A5 landscape page.
For the moment, transposed Bookes don't transpose and so don't use Compact.
author | Jim Hague <jim.hague@acm.org> |
---|---|
date | Fri, 13 Oct 2017 15:44:15 +0100 |
parents | 2f6e05d0aba0 |
children | d6f1f2b3bd01 |
line wrap: on
line source
#!/bin/bash # # Build all forms of the Booke. if [ $# -lt 1 ]; then echo "Usage: makeAll.sh <booke dir name> [<booke dir name> ...]" exit 1 fi makeABooke() { # Print graphics. ./makeGraphics.sh "$1" # Normal graphics printed output. ./makeBookeTunePages.sh "$1" ./makeBooke.sh A4 "$1" ./makeBooke.sh Nook "$1" # Compact graphics printed output. ./makeBookeTunePages.sh --use-compact "$1" ./makeBooke.sh A5 "$1" ./makeBooklet.sh "$1" # Web output. ./makeWebGraphics.sh "$1" ./makeWebAudio.sh "$1" ./makeWeb.sh "$1" "$1" "$2" } makeATransposedBooke() { # Print graphics. ./makeGraphics.sh "$1" # Normal graphics printed output. ./makeBookeTunePages.sh "$1" ./makeBooke.sh A4 "$1" ./makeBooke.sh Nook "$1" # Compact graphics printed output. ./makeBookeTunePages.sh --use-compact "$1" ./makeBooke.sh A5 "$1" ./makeBooklet.sh "$1" # Web output. Uses audio from main booke. ./makeWebGraphics.sh "$1" ./makeWeb.sh "$1" "$2" "$3" } makeASingleBooke() { makeABooke $1 ./makeCello.sh $1 makeATransposedBooke $1-Cello $1 cello ./makeHornInF.sh $1 makeATransposedBooke $1-HornInF $1 "horn in F" ./makeAltoRecorderCFingering.sh $1 makeATransposedBooke $1-AltoRecorderCFingering $1 "alto recorder, C fingering" } makeBumperBooke() { # This can only be used once all the other Bookes have been built. ./makeBooke.sh A4 "$@" ./makeBooke.sh A5 "$@" ./makeBooklet.sh "Bumper" } for booke in "$@" do makeASingleBooke $booke done if [ $# -gt 1 ]; then makeBumperBooke "$@" cp Bumper*.pdf ./web fi