comparison makeHornInF.sh @ 218:1a9d937b7765

Force Horn in F output to be in treble clef. Some lower tunes with the odd high note ended up in bass clef. This crap horn player doesn't do bass clef.
author Jim Hague <jim.hague@laicatc.com>
date Thu, 21 Feb 2013 07:23:49 +0000
parents a8a46fd79d5c
children 7b98278d6e8b
comparison
equal deleted inserted replaced
217:a8a46fd79d5c 218:1a9d937b7765
34 if grep -v "^[A-Z]:" $tmpfile | sed -e 's/"[^"]*"//g' | grep -q "[a-g]"; then 34 if grep -v "^[A-Z]:" $tmpfile | sed -e 's/"[^"]*"//g' | grep -q "[a-g]"; then
35 transpose=-7 35 transpose=-7
36 fi 36 fi
37 37
38 # Transpose. By default abc2abc will report errors in the output, 38 # Transpose. By default abc2abc will report errors in the output,
39 # but this messes up output formatting so stop it. 39 # but this messes up output formatting so stop it. Also force all
40 abc2abc $tmpfile -e -t $transpose > $outdir/$name.abc 40 # output to be in treble clef; some lower tunes with the odd high
41 # note will otherwise appear in bass clef, which is not what this
42 # crap horn player wants.
43 abc2abc $tmpfile -e -t $transpose | \
44 sed -e "/^ *K:/s/$/ clef=treble/" > $outdir/$name.abc
41 rm $tmpfile 45 rm $tmpfile
42 done 46 done