1@echo off
2
3rem     First create a working copy of t.bat. Note optional cls and pause.
4
5echo @echo off >t.bat
6echo set format=%%1 >>t.bat
7echo shift >>t.bat
8echo set opts=%%1 %%2 %%3 %%4 %%5 %%6 %%7 %%8 %%9 >>t.bat
9echo. >>t.bat
10echo cls >>t.bat
11echo echo Format: %%format%%   Options: %%opts%% >>t.bat
12echo echo on >>t.bat
13echo .\sox monkey.wav %%opts%% %%tmp%%\monkey.%%format%% %%effect%% >>t.bat
14echo .\sox %%opts%% %%tmp%%\monkey.%%format%% %%tmp%%\monkey1.wav %%effect%% >>t.bat
15echo @echo off >>t.bat
16echo echo. >>t.bat
17echo set format=>>t.bat
18echo set opts=>>t.bat
19echo pause >>t.bat
20
21rem     Now set up any global effects and call the batch file. Note that
22rem     this needs extra work to cope with DOS's limitation of 3-character
23rem     extensions on the filename.
24
25set effect=%1 %2 %3 %4 %5 %6 %7 %8 %9
26
27call t.bat 8svx
28call t.bat aiff
29call t.bat aifc
30call t.bat au
31call t.bat avr -e unsigned-integer
32call t.bat cdr
33call t.bat cvs
34call t.bat dat
35call t.bat vms
36call t.bat hcom -r 22050
37call t.bat maud
38call t.bat raw -r 8130 -t ub
39call t.bat sf
40call t.bat smp
41call t.bat sndt
42call t.bat txw
43call t.bat voc
44call t.bat vox -r 8130
45call t.bat wav
46call t.bat wve
47
48del t.bat
49