chcp 437
rd /q/s  view
rd /q/s folktales-midi
copy refer\*.*
lilypond --pdf --png %1.ly
lilypond --eps %1.ly
md view
md folktales-midi
move *.pdf view\
move *.mid folktales-midi\
latex %1-sheet.latex
dvips -t letterpaper -P pdf %1-sheet.dvi
call ps2pdf %1-sheet.ps
move %1-sheet.pdf view\
cd view
%1.pdf | %1-sheet.pdf | ..\folktales-midi\%1.mid
cd ..\
erase *.ly *.texi *.latex *.aux *.log *.dvi *.ps *.eps *.png *.midi
dir /oe
