From f4a3ff6fd85f2c1f8858ba8506e5ece0e7d2d7e8 Mon Sep 17 00:00:00 2001 From: Jim Hague Date: Thu, 21 Feb 2013 07:23:49 +0000 Subject: [PATCH] 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 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/makeHornInF.sh b/makeHornInF.sh index 2bf4d8b..0ceff96 100755 --- a/makeHornInF.sh +++ b/makeHornInF.sh @@ -36,7 +36,11 @@ find $booke -name "*.abc" | sort | 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