makeHornInF.sh
changeset 218 1a9d937b7765
parent 217 a8a46fd79d5c
child 263 7b98278d6e8b
--- a/makeHornInF.sh	Wed Feb 20 13:45:58 2013 +0000
+++ b/makeHornInF.sh	Thu Feb 21 07:23:49 2013 +0000
@@ -36,7 +36,11 @@
         fi
 
         # Transpose. By default abc2abc will report errors in the output,
-        # but this messes up output formatting so stop it.
-        abc2abc $tmpfile -e -t $transpose > $outdir/$name.abc
+        # but this messes up output formatting so stop it. Also force all
+        # output to be in treble clef; some lower tunes with the odd high
+        # note will otherwise appear in bass clef, which is not what this
+        # crap horn player wants.
+        abc2abc $tmpfile -e -t $transpose | \
+            sed -e "/^ *K:/s/$/ clef=treble/" > $outdir/$name.abc
         rm $tmpfile
     done