Force Horn in F output to be in treble clef.
authorJim Hague <jim.hague@laicatc.com>
Thu, 21 Feb 2013 07:23:49 +0000
changeset 218 1a9d937b7765
parent 217 a8a46fd79d5c
child 219 a09d400fc4e3
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.
makeHornInF.sh
--- 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