forked from CryHavoc/dottes
Have a go at being slightly more intelligent in the cello transposition.
This commit is contained in:
parent
aa03da7583
commit
dd0f097fe0
|
@ -22,6 +22,13 @@ mkdir -p $outdir
|
||||||
find $booke -name "*.abc" | sort |
|
find $booke -name "*.abc" | sort |
|
||||||
while read filename
|
while read filename
|
||||||
do
|
do
|
||||||
|
# Move down either one octave or two, depending on the range
|
||||||
|
# of the tune. If there are any notes below middle C, transpose
|
||||||
|
# down one octave. The default is to transpose down two octaves.
|
||||||
|
middle="d"
|
||||||
|
if grep -v "^[A-Z]:" $filename | sed -e 's/"[^"]*"//g' | grep -q "[A-Z],"; then
|
||||||
|
middle="D"
|
||||||
|
fi
|
||||||
name=`basename $filename .abc`
|
name=`basename $filename .abc`
|
||||||
sed -e "/^ *K:/s/$/ octave=-2/" $filename > $outdir/$name.abc
|
sed -e "/^ *K:/s/$/ middle=$middle/" $filename > $outdir/$name.abc
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue