diff convert.pl @ 4:87e64f302234

added conversion script
author Robert McIntyre <rlm@mit.edu>
date Fri, 21 Oct 2011 06:54:14 -0700
parents
children b6e64e348e47
line wrap: on
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/convert.pl	Fri Oct 21 06:54:14 2011 -0700
     1.3 @@ -0,0 +1,286 @@
     1.4 +#!/usr/bin/perl
     1.5 +
     1.6 +@targets =qw(
     1.7 +AnnoyingKnock1.wav
     1.8 +AnnoyingKnock2.wav
     1.9 +AppleOfEnlightenment.wav
    1.10 +Arcade.wav
    1.11 +Battle01.wav
    1.12 +Battle02.wav
    1.13 +Battle03.wav
    1.14 +Battle04.wav
    1.15 +Battle05.wav
    1.16 +Battle06.wav
    1.17 +Battle07.wav
    1.18 +Battle08.wav
    1.19 +Battle09.wav
    1.20 +Battle10.wav
    1.21 +Bicycle.wav
    1.22 +BossIntro.wav
    1.23 +BrickRoad.wav
    1.24 +Bus.wav
    1.25 +Cave1.wav
    1.26 +Cave2.wav
    1.27 +Cave3.wav
    1.28 +CaveOfThePast.wav
    1.29 +ChaosTheater.wav
    1.30 +CoffeeBreak.wav
    1.31 +Dalaam.wav
    1.32 +DalaamIntro.wav
    1.33 +DeepDarkness.wav
    1.34 +Defeated.wav
    1.35 +Delivery.wav
    1.36 +DrAndonuts.wav
    1.37 +DrugStore.wav
    1.38 +DungeonMan.wav
    1.39 +DustyDunesDesert.wav
    1.40 +EightMelodies.wav
    1.41 +Ending1.wav
    1.42 +Ending2.wav
    1.43 +Ending3.wav
    1.44 +FileSelect.wav
    1.45 +FireSpring.wav
    1.46 +FlyingMan.wav
    1.47 +Fourside.wav
    1.48 +Giygas1.wav
    1.49 +Giygas2.wav
    1.50 +Giygas3.wav
    1.51 +Giygas4.wav
    1.52 +Giygas5.wav
    1.53 +GiygasDeath.wav
    1.54 +GiygasIntro.wav
    1.55 +GiygasPath.wav
    1.56 +GiygasStatic.wav
    1.57 +GrapefruitFalls.wav
    1.58 +HappyHappy.wav
    1.59 +HiddenTrack.wav
    1.60 +Home.wav
    1.61 +Hospital.wav
    1.62 +Hotel1.wav
    1.63 +Hotel2.wav
    1.64 +Hotel3.wav
    1.65 +Hotel4.wav
    1.66 +HotelScaraba.wav
    1.67 +House1.wav
    1.68 +House2.wav
    1.69 +House3.wav
    1.70 +Intro1.wav
    1.71 +Intro2.wav
    1.72 +IntroDemo.wav
    1.73 +IntroTitle.wav
    1.74 +JackiesCafe.wav
    1.75 +LevelUp.wav
    1.76 +LostUnderworld.wav
    1.77 +Magicant1.wav
    1.78 +Magicant2.wav
    1.79 +MagicantDepart.wav
    1.80 +MagicantEnter.wav
    1.81 +MagicCake.wav
    1.82 +MasterBelchBase.wav
    1.83 +MonkeyCave.wav
    1.84 +Moonside.wav
    1.85 +Mu.wav
    1.86 +NewGame.wav
    1.87 +Night.wav
    1.88 +Onett1.wav
    1.89 +Onett2.wav
    1.90 +OnettBuzz1.wav
    1.91 +OnettBuzz2.wav
    1.92 +OnettBuzz3.wav
    1.93 +OnettNight1.wav
    1.94 +OnettNight2.wav
    1.95 +OnettNight3.wav
    1.96 +Paula.wav
    1.97 +PeacefulRest.wav
    1.98 +Photographer.wav
    1.99 +PinkCloud.wav
   1.100 +Pokey.wav
   1.101 +PokeyIntro.wav
   1.102 +PokeysHouse.wav
   1.103 +PokeysHouseBuzz.wav
   1.104 +PowerUp.wav
   1.105 +Pray.wav
   1.106 +Pyramid.wav
   1.107 +Return1.wav
   1.108 +Return2.wav
   1.109 +RideSub.wav
   1.110 +RideUFO.wav
   1.111 +Robots.wav
   1.112 +Runaway5Bus1.wav
   1.113 +Runaway5Bus2.wav
   1.114 +Runaway5Bus3.wav
   1.115 +Runaway5Song1.wav
   1.116 +Runaway5Song2.wav
   1.117 +Sailing1.wav
   1.118 +Sailing2.wav
   1.119 +SaturnValley.wav
   1.120 +SaturnValley2.wav
   1.121 +Scaraba.wav
   1.122 +ScarabaDesert.wav
   1.123 +SeaOfEden.wav
   1.124 +SnowWood.wav
   1.125 +SnowWood2.wav
   1.126 +SoundStone.wav
   1.127 +SoundStone2.wav
   1.128 +Summers.wav
   1.129 +TendaVillage.wav
   1.130 +Tent.wav
   1.131 +Tessie1.wav
   1.132 +Tessie2.wav
   1.133 +Threed.wav
   1.134 +Topolla.wav
   1.135 +Twoson.wav
   1.136 +Venus.wav
   1.137 +Win1.wav
   1.138 +Win2.wav
   1.139 +Winters.wav
   1.140 +YourSanctuary1.wav
   1.141 +YourSanctuary2.wav
   1.142 +Zombies.wavAA.spc);
   1.143 +
   1.144 +@sources = qw(
   1.145 +AB.spc
   1.146 +AC.spc
   1.147 +AD.spc
   1.148 +AE.spc
   1.149 +AF.spc
   1.150 +AG.spc
   1.151 +AH.spc
   1.152 +AI.spc
   1.153 +AJ.spc
   1.154 +AK.spc
   1.155 +AL.spc
   1.156 +AM.spc
   1.157 +AN.spc
   1.158 +AO.spc
   1.159 +AP.spc
   1.160 +AQ.spc
   1.161 +AR.spc
   1.162 +AS.spc
   1.163 +AT.spc
   1.164 +AU.spc
   1.165 +AV.spc
   1.166 +AW.spc
   1.167 +AX.spc
   1.168 +AY.spc
   1.169 +AZ.spc
   1.170 +BA.spc
   1.171 +BB.spc
   1.172 +BC.spc
   1.173 +BD.spc
   1.174 +BE.spc
   1.175 +BF.spc
   1.176 +BG.spc
   1.177 +BH.spc
   1.178 +BI.spc
   1.179 +BJ.spc
   1.180 +BK.spc
   1.181 +BL.spc
   1.182 +BM.spc
   1.183 +BN.spc
   1.184 +BO.spc
   1.185 +BP.spc
   1.186 +BQ.spc
   1.187 +BR.spc
   1.188 +BS.spc
   1.189 +BT.spc
   1.190 +BU.spc
   1.191 +BV.spc
   1.192 +BW.spc
   1.193 +BX.spc
   1.194 +BY.spc
   1.195 +BZ.spc
   1.196 +CA.spc
   1.197 +CB.spc
   1.198 +CC.spc
   1.199 +CD.spc
   1.200 +CE.spc
   1.201 +CF.spc
   1.202 +CG.spc
   1.203 +CH.spc
   1.204 +CI.spc
   1.205 +CJ.spc
   1.206 +CK.spc
   1.207 +CL.spc
   1.208 +CM.spc
   1.209 +CN.spc
   1.210 +CO.spc
   1.211 +CP.spc
   1.212 +CQ.spc
   1.213 +CR.spc
   1.214 +CS.spc
   1.215 +CT.spc
   1.216 +CU.spc
   1.217 +CV.spc
   1.218 +CW.spc
   1.219 +CX.spc
   1.220 +CY.spc
   1.221 +CZ.spc
   1.222 +DA.spc
   1.223 +DB.spc
   1.224 +DC.spc
   1.225 +DD.spc
   1.226 +DE.spc
   1.227 +DF.spc
   1.228 +DG.spc
   1.229 +DH.spc
   1.230 +DI.spc
   1.231 +DJ.spc
   1.232 +DK.spc
   1.233 +DL.spc
   1.234 +DM.spc
   1.235 +DN.spc
   1.236 +DO.spc
   1.237 +DP.spc
   1.238 +DQ.spc
   1.239 +DR.spc
   1.240 +DS.spc
   1.241 +DT.spc
   1.242 +DU.spc
   1.243 +DV.spc
   1.244 +DW.spc
   1.245 +DX.spc
   1.246 +DY.spc
   1.247 +DZ.spc
   1.248 +EA.spc
   1.249 +EB.spc
   1.250 +EC.spc
   1.251 +ED.spc
   1.252 +EE.spc
   1.253 +EF.spc
   1.254 +EG.spc
   1.255 +EH.spc
   1.256 +EI.spc
   1.257 +EJ.spc
   1.258 +EK.spc
   1.259 +EL.spc
   1.260 +EM.spc
   1.261 +EN.spc
   1.262 +EO.spc
   1.263 +EP.spc
   1.264 +EQ.spc
   1.265 +ER.spc
   1.266 +ES.spc
   1.267 +ET.spc
   1.268 +EU.spc
   1.269 +EV.spc
   1.270 +EW.spc
   1.271 +EX.spc
   1.272 +EY.spc
   1.273 +EZ.spc
   1.274 +FA.spc
   1.275 +FB.spc
   1.276 +FC.spc
   1.277 +FD.spc
   1.278 +FE.spc
   1.279 +FF.spc);
   1.280 +
   1.281 +
   1.282 +for (0..$#targets){
   1.283 +
   1.284 +  $command =  "./build/spc_convert -s 1" . " -i ./test-files/" . $source[$_] . 
   1.285 +    " -o ./output/" . $target[$_];
   1.286 +  print "$command\n";
   1.287 +
   1.288 +}
   1.289 +