#
#	run2a
#
#	Usage:
#
#		run2a <path_to_mscore> <score file>  <name of midi file>


PATH_MSCORE=$1
SCORE_FILE=$2
MIDI_FILE=$3
#
#	strip any possible MS junk
#
cat $SCORE_FILE | awk -f $PATH_MSCORE/stripd.awk > tmp2.txt

#
#	convert the MIDI score into a hex list
#
cat tmp2.txt | awk -f $PATH_MSCORE/mscore.awk > tmp2.hex


#
#	convert the hex list into a midi file 
#
$PATH_MSCORE/hexxer tmp2.hex  $MIDI_FILE b


