echo off

rem ****
echo Creating ADX files
rem ****

adxencd bgm_001.wav
adxencd bgm_002.wav
adxencd bgm_003.wav
adxencd bgm_004.wav
adxencd bgm_005.wav
adxencd bgm_007.wav
adxencd bgm_009.wav
adxencd bgm_012.wav
adxencd bgm_014.wav
adxencd bgm_015.wav
adxencd bgm_016.wav
adxencd bgm_017.wav
adxencd bgm_018.wav
adxencd bgm_020.wav
adxencd bgm_021.wav
adxencd bgm_022.wav
adxencd bgm_100_0000.wav
adxencd bgm_100_0001.wav
adxencd bgm_100_0002.wav
adxencd bgm_100_0003.wav
adxencd bgm_100_0004.wav
adxencd bgm_100_0005.wav
adxencd bgm_100_0006.wav
adxencd bgm_101_0000.wav
adxencd bgm_101_0001.wav
adxencd bgm_101_0002.wav
adxencd bgm_101_0003.wav
adxencd bgm_102_0000.wav
adxencd bgm_102_0001.wav
adxencd bgm_102_0002.wav
adxencd bgm_102_0003.wav
adxencd bgm_102_0004.wav
adxencd bgm_102_0005.wav
adxencd bgm_102_0006.wav
adxencd bgm_103_0000.wav
adxencd bgm_103_0001.wav
adxencd bgm_104_0000.wav
adxencd bgm_104_0001.wav
adxencd bgm_105_0000.wav
adxencd bgm_105_0001.wav
adxencd bgm_105_0002.wav
adxencd bgm_105_0003.wav
adxencd bgm_105_0004.wav
adxencd bgm_105_0005.wav
adxencd bgm_106_0000.wav
adxencd bgm_106_0001.wav
adxencd bgm_106_0002.wav
adxencd bgm_106_0003.wav
adxencd bgm_107_0000.wav
adxencd bgm_107_0001.wav
adxencd bgm_107_0002.wav
adxencd bgm_107_0003.wav
adxencd bgm_107_0004.wav
adxencd bgm_107_0005.wav
adxencd bgm_108_0000.wav
adxencd bgm_108_0001.wav
adxencd bgm_108_0002.wav
adxencd bgm_108_0003.wav
adxencd bgm_108_0004.wav
adxencd bgm_108_0005.wav
adxencd bgm_109_0000.wav
adxencd bgm_109_0001.wav
adxencd bgm_109_0002.wav
adxencd bgm_109_0003.wav
adxencd bgm_109_0004.wav
adxencd bgm_109_0005.wav
adxencd bgm_110_0000.wav
adxencd bgm_110_0001.wav
adxencd bgm_110_0002.wav
adxencd bgm_110_0003.wav
adxencd bgm_110_0004.wav
adxencd bgm_110_0005.wav
adxencd bgm_111_0000.wav
adxencd bgm_111_0001.wav
adxencd bgm_111_0002.wav
adxencd bgm_111_0003.wav
adxencd bgm_111_0004.wav
adxencd bgm_111_0005.wav
adxencd bgm_111_0006.wav
adxencd bgm_112_0000.wav
adxencd bgm_112_0001.wav
adxencd bgm_112_0002.wav
adxencd bgm_112_0003.wav
adxencd bgm_112_0004.wav
adxencd bgm_112_0005.wav
adxencd bgm_112_0006.wav
adxencd bgm_112_NG_0000.wav
adxencd bgm_112_NG_0001.wav
adxencd bgm_112_NG_0002.wav
adxencd bgm_112_NG_0003.wav
adxencd bgm_112_NG_0004.wav
adxencd bgm_112_NG_0005.wav
adxencd bgm_112_NG_0006.wav
adxencd bgm_113_0000.wav
adxencd bgm_113_0001.wav
adxencd bgm_113_0002.wav
adxencd bgm_113_0003.wav
adxencd bgm_113_0004.wav
adxencd bgm_113_0005.wav
adxencd bgm_113_0006.wav
adxencd bgm_114_a.wav
adxencd bgm_114_b_0000.wav
adxencd bgm_114_b_0001.wav
adxencd bgm_114_b_0002.wav
adxencd bgm_114_b_0003.wav
adxencd bgm_114_b_0004.wav
adxencd bgm_114_b_0005.wav
adxencd bgm_115_0000.wav
adxencd bgm_115_0001.wav
adxencd bgm_115_0002.wav
adxencd bgm_115_0003.wav
adxencd bgm_115_0004.wav
adxencd bgm_116_0000.wav
adxencd bgm_116_0001.wav
adxencd bgm_116_0002.wav
adxencd bgm_116_0003.wav
adxencd bgm_117_0000.wav
adxencd bgm_117_0001.wav
adxencd bgm_118_0000.wav
adxencd bgm_118_0001.wav
adxencd bgm_118_0002.wav
adxencd bgm_118_0003.wav
adxencd bgm_118_0004.wav
adxencd bgm_119_0000.wav
adxencd bgm_119_0001.wav
adxencd bgm_119_0002.wav
adxencd bgm_119_0003.wav
adxencd bgm_119_0004.wav
adxencd bgm_120_0000.wav
adxencd bgm_120_0001.wav
adxencd bgm_120_0002.wav
adxencd bgm_120_0003.wav
adxencd bgm_120_0004.wav
adxencd bgm_121_0000.wav
adxencd bgm_121_0001.wav
adxencd bgm_122_0000.wav
adxencd bgm_122_0001.wav
adxencd bgm_122_0002.wav
adxencd bgm_122_0003.wav
adxencd bgm_122_0004.wav
adxencd bgm_123_0000.wav
adxencd bgm_123_0001.wav
adxencd bgm_124_0000.wav
adxencd bgm_124_0001.wav
adxencd bgm_125_0000.wav
adxencd bgm_125_0001.wav
adxencd bgm_125_0002.wav
adxencd bgm_126.wav
adxencd bgm_128_0000.wav
adxencd bgm_128_0001.wav

rem ****
echo Creating lst files
rem ****

echo bgm_100_0000.adx > bgm_100.lst
echo bgm_100_0001.adx >> bgm_100.lst
echo bgm_100_0002.adx >> bgm_100.lst
echo bgm_100_0003.adx >> bgm_100.lst
echo bgm_100_0004.adx >> bgm_100.lst
echo bgm_100_0005.adx >> bgm_100.lst
echo bgm_100_0006.adx >> bgm_100.lst
echo bgm_101_0000.adx > bgm_101.lst
echo bgm_101_0001.adx >> bgm_101.lst
echo bgm_101_0002.adx >> bgm_101.lst
echo bgm_101_0003.adx >> bgm_101.lst
echo bgm_102_0000.adx > bgm_102.lst
echo bgm_102_0001.adx >> bgm_102.lst
echo bgm_102_0002.adx >> bgm_102.lst
echo bgm_102_0003.adx >> bgm_102.lst
echo bgm_102_0004.adx >> bgm_102.lst
echo bgm_102_0005.adx >> bgm_102.lst
echo bgm_102_0006.adx >> bgm_102.lst
echo bgm_103_0000.adx > bgm_103.lst
echo bgm_103_0001.adx >> bgm_103.lst
echo bgm_104_0000.adx > bgm_104.lst
echo bgm_104_0001.adx >> bgm_104.lst
echo bgm_105_0000.adx > bgm_105.lst
echo bgm_105_0001.adx >> bgm_105.lst
echo bgm_105_0002.adx >> bgm_105.lst
echo bgm_105_0003.adx >> bgm_105.lst
echo bgm_105_0004.adx >> bgm_105.lst
echo bgm_105_0005.adx >> bgm_105.lst
echo bgm_106_0000.adx > bgm_106.lst
echo bgm_106_0001.adx >> bgm_106.lst
echo bgm_106_0002.adx >> bgm_106.lst
echo bgm_106_0003.adx >> bgm_106.lst
echo bgm_107_0000.adx > bgm_107.lst
echo bgm_107_0001.adx >> bgm_107.lst
echo bgm_107_0002.adx >> bgm_107.lst
echo bgm_107_0003.adx >> bgm_107.lst
echo bgm_107_0004.adx >> bgm_107.lst
echo bgm_107_0005.adx >> bgm_107.lst
echo bgm_108_0000.adx > bgm_108.lst
echo bgm_108_0001.adx >> bgm_108.lst
echo bgm_108_0002.adx >> bgm_108.lst
echo bgm_108_0003.adx >> bgm_108.lst
echo bgm_108_0004.adx >> bgm_108.lst
echo bgm_108_0005.adx >> bgm_108.lst
echo bgm_109_0000.adx > bgm_109.lst
echo bgm_109_0001.adx >> bgm_109.lst
echo bgm_109_0002.adx >> bgm_109.lst
echo bgm_109_0003.adx >> bgm_109.lst
echo bgm_109_0004.adx >> bgm_109.lst
echo bgm_109_0005.adx >> bgm_109.lst
echo bgm_110_0000.adx > bgm_110.lst
echo bgm_110_0001.adx >> bgm_110.lst
echo bgm_110_0002.adx >> bgm_110.lst
echo bgm_110_0003.adx >> bgm_110.lst
echo bgm_110_0004.adx >> bgm_110.lst
echo bgm_110_0005.adx >> bgm_110.lst
echo bgm_111_0000.adx > bgm_111.lst
echo bgm_111_0001.adx >> bgm_111.lst
echo bgm_111_0002.adx >> bgm_111.lst
echo bgm_111_0003.adx >> bgm_111.lst
echo bgm_111_0004.adx >> bgm_111.lst
echo bgm_111_0005.adx >> bgm_111.lst
echo bgm_111_0006.adx >> bgm_111.lst
echo bgm_112_0000.adx > bgm_112.lst
echo bgm_112_0001.adx >> bgm_112.lst
echo bgm_112_0002.adx >> bgm_112.lst
echo bgm_112_0003.adx >> bgm_112.lst
echo bgm_112_0004.adx >> bgm_112.lst
echo bgm_112_0005.adx >> bgm_112.lst
echo bgm_112_0006.adx >> bgm_112.lst
echo bgm_112_NG_0000.adx > bgm_112_NG.lst
echo bgm_112_NG_0001.adx >> bgm_112_NG.lst
echo bgm_112_NG_0002.adx >> bgm_112_NG.lst
echo bgm_112_NG_0003.adx >> bgm_112_NG.lst
echo bgm_112_NG_0004.adx >> bgm_112_NG.lst
echo bgm_112_NG_0005.adx >> bgm_112_NG.lst
echo bgm_112_NG_0006.adx >> bgm_112_NG.lst
echo bgm_113_0000.adx > bgm_113.lst
echo bgm_113_0001.adx >> bgm_113.lst
echo bgm_113_0002.adx >> bgm_113.lst
echo bgm_113_0003.adx >> bgm_113.lst
echo bgm_113_0004.adx >> bgm_113.lst
echo bgm_113_0005.adx >> bgm_113.lst
echo bgm_113_0006.adx >> bgm_113.lst
echo bgm_114_b_0000.adx > bgm_114_b.lst
echo bgm_114_b_0001.adx >> bgm_114_b.lst
echo bgm_114_b_0002.adx >> bgm_114_b.lst
echo bgm_114_b_0003.adx >> bgm_114_b.lst
echo bgm_114_b_0004.adx >> bgm_114_b.lst
echo bgm_114_b_0005.adx >> bgm_114_b.lst
echo bgm_115_0000.adx > bgm_115.lst
echo bgm_115_0001.adx >> bgm_115.lst
echo bgm_115_0002.adx >> bgm_115.lst
echo bgm_115_0003.adx >> bgm_115.lst
echo bgm_115_0004.adx >> bgm_115.lst
echo bgm_116_0000.adx > bgm_116.lst
echo bgm_116_0001.adx >> bgm_116.lst
echo bgm_116_0002.adx >> bgm_116.lst
echo bgm_116_0003.adx >> bgm_116.lst
echo bgm_117_0000.adx > bgm_117.lst
echo bgm_117_0001.adx >> bgm_117.lst
echo bgm_118_0000.adx > bgm_118.lst
echo bgm_118_0001.adx >> bgm_118.lst
echo bgm_118_0002.adx >> bgm_118.lst
echo bgm_118_0003.adx >> bgm_118.lst
echo bgm_118_0004.adx >> bgm_118.lst
echo bgm_119_0000.adx > bgm_119.lst
echo bgm_119_0001.adx >> bgm_119.lst
echo bgm_119_0002.adx >> bgm_119.lst
echo bgm_119_0003.adx >> bgm_119.lst
echo bgm_119_0004.adx >> bgm_119.lst
echo bgm_120_0000.adx > bgm_120.lst
echo bgm_120_0001.adx >> bgm_120.lst
echo bgm_120_0002.adx >> bgm_120.lst
echo bgm_120_0003.adx >> bgm_120.lst
echo bgm_120_0004.adx >> bgm_120.lst
echo bgm_121_0000.adx > bgm_121.lst
echo bgm_121_0001.adx >> bgm_121.lst
echo bgm_122_0000.adx > bgm_122.lst
echo bgm_122_0001.adx >> bgm_122.lst
echo bgm_122_0002.adx >> bgm_122.lst
echo bgm_122_0003.adx >> bgm_122.lst
echo bgm_122_0004.adx >> bgm_122.lst
echo bgm_123_0000.adx > bgm_123.lst
echo bgm_123_0001.adx >> bgm_123.lst
echo bgm_124_0000.adx > bgm_124.lst
echo bgm_124_0001.adx >> bgm_124.lst
echo bgm_125_0000.adx > bgm_125.lst
echo bgm_125_0001.adx >> bgm_125.lst
echo bgm_125_0002.adx >> bgm_125.lst
echo bgm_128_0000.adx > bgm_128.lst
echo bgm_128_0001.adx >> bgm_128.lst

rem ****
echo Creating AIX files
rem ****

adx2aix bgm_100.lst bgm_100.aix
adx2aix bgm_101.lst bgm_101.aix
adx2aix bgm_102.lst bgm_102.aix
adx2aix bgm_103.lst bgm_103.aix
adx2aix bgm_104.lst bgm_104.aix
adx2aix bgm_105.lst bgm_105.aix
adx2aix bgm_106.lst bgm_106.aix
adx2aix bgm_107.lst bgm_107.aix
adx2aix bgm_108.lst bgm_108.aix
adx2aix bgm_109.lst bgm_109.aix
adx2aix bgm_110.lst bgm_110.aix
adx2aix bgm_111.lst bgm_111.aix
adx2aix bgm_112.lst bgm_112.aix
adx2aix bgm_112_NG.lst bgm_112_NG.aix
adx2aix bgm_113.lst bgm_113.aix
adx2aix bgm_114_b.lst bgm_114_b.aix
adx2aix bgm_115.lst bgm_115.aix
adx2aix bgm_116.lst bgm_116.aix
adx2aix bgm_117.lst bgm_117.aix
adx2aix bgm_118.lst bgm_118.aix
adx2aix bgm_119.lst bgm_119.aix
adx2aix bgm_120.lst bgm_120.aix
adx2aix bgm_121.lst bgm_121.aix
adx2aix bgm_122.lst bgm_122.aix
adx2aix bgm_123.lst bgm_123.aix
adx2aix bgm_124.lst bgm_124.aix
adx2aix bgm_125.lst bgm_125.aix
adx2aix bgm_128.lst bgm_128.aix

rem ****
echo Creating folders and moving files to folders
rem ****

md sound
md sound\adx
md sound\adx\apart
move /y bgm_001.adx sound\adx\apart
move /y bgm_003.adx sound\adx\apart
move /y bgm_014.adx sound\adx\apart
move /y bgm_101.aix sound\adx\apart
move /y bgm_102.aix sound\adx\apart
move /y bgm_103.aix sound\adx\apart
move /y bgm_118.aix sound\adx\apart
move /y bgm_125.aix sound\adx\apart
md sound\adx\end
move /y bgm_002.adx sound\adx\end
move /y bgm_012.adx sound\adx\end
md sound\adx\forest
move /y bgm_022.adx sound\adx\forest
move /y bgm_114_a.adx sound\adx\forest
move /y bgm_114_b.aix sound\adx\forest
move /y bgm_115.aix sound\adx\forest
md sound\adx\hospital
move /y bgm_016.adx sound\adx\hospital
move /y bgm_021.adx sound\adx\hospital
move /y bgm_100.aix sound\adx\hospital
move /y bgm_105.aix sound\adx\hospital
move /y bgm_106.aix sound\adx\hospital
move /y bgm_111.aix sound\adx\hospital
move /y bgm_119.aix sound\adx\hospital
move /y bgm_123.aix sound\adx\hospital
md sound\adx\hotel
move /y bgm_007.adx sound\adx\hotel
move /y bgm_009.adx sound\adx\hotel
move /y bgm_017.adx sound\adx\hotel
move /y bgm_108.aix sound\adx\hotel
move /y bgm_112.aix sound\adx\hotel
move /y bgm_112_NG.aix sound\adx\hotel
move /y bgm_113.aix sound\adx\hotel
move /y bgm_121.aix sound\adx\hotel
move /y bgm_122.aix sound\adx\hotel
move /y bgm_124.aix sound\adx\hotel
move /y bgm_126.adx sound\adx\hotel
md sound\adx\mansion
move /y bgm_104.aix sound\adx\mansion
md sound\adx\prison
move /y bgm_015.adx sound\adx\prison
move /y bgm_020.adx sound\adx\prison
move /y bgm_107.aix sound\adx\prison
move /y bgm_109.aix sound\adx\prison
move /y bgm_110.aix sound\adx\prison
move /y bgm_116.aix sound\adx\prison
move /y bgm_120.aix sound\adx\prison
move /y bgm_128.aix sound\adx\prison
md sound\adx\town
move /y bgm_004.adx sound\adx\town
move /y bgm_005.adx sound\adx\town
move /y bgm_018.adx sound\adx\town
move /y bgm_117.aix sound\adx\town

rem ****
echo Cleaning up
rem ****

del bgm_???_*????.adx
del bgm_*.lst
