echo off
echo Polyphonic Music version 1.20:
echo.

if "%1"=="" goto noparam
makepoly %1 %3
if errorlevel 1 goto end
playkb %1 %2
goto end

:noparam
echo This batch file compiles a ".sng" file then plays the corresponding
echo ".ply" file created. (Use "" for a blank parameter).
echo 1st parameter = the name of the ".sng" file.
echo 2nd parameter = the song's play tempo (/s will check for processor speed)
echo 3rd parameter = the frequency value to use for Middle C (use a '/')
echo This batch file will only work for ".sng" files!
echo. 
echo Example: makeplay invent13 /s /337    (/s will figure tempo at run time)
echo. 

:end
