# HG changeset patch # User Jim Hague # Date 1361431429 0 # Node ID 1a9d937b7765937374bd6cdf0e6575321080d6fa # Parent a8a46fd79d5ca92c3d6f5088828c7edec5e86857 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. diff -r a8a46fd79d5c -r 1a9d937b7765 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