@cd "%~dp0"
@if x%1 == x goto :NoParameter
@toolchain\sox-14.3.2\sox.exe -D dh0\wavsamples\%1.wav -c 1 -r 16726 -b 8 -s dh0\samples\%1.raw
@goto end
:NoParameter
@echo Convert wav-file to raw protracker-friendly sample
@echo 1. copy the xxx.wav file to dh0\wavsamples
@echo 2. run ConvertWavToRaw xxx
@echo 3. Now you have a raw sample in dh0\samples
:end