#   ----------------------------------------------------------------------
#	run2
#   ----------------------------------------------------------------------
#
#   Mscore release 1.1
#
#   Description:
#
#   Example script for creating a MIDI file from an Mscore score.
#
#	Usage:
#
#		run2 <score file>  <name of midi file>


#
#	strip any possible MS junk
#
cat $1 | awk -f stripd.awk > tmp2.txt

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


#
#	convert the hex list into a midi file 
#
hexxer tmp2.hex  $2 b


