annotate convert.pl @ 9:477c36226481 tip

added old scripts for historical interest.
author Robert McIntyre <rlm@mit.edu>
date Fri, 21 Oct 2011 07:46:18 -0700
parents a012d31df380
children
rev   line source
rlm@4 1 #!/usr/bin/perl
rlm@4 2
rlm@4 3 @targets =qw(
rlm@4 4 AnnoyingKnock1.wav
rlm@4 5 AnnoyingKnock2.wav
rlm@4 6 AppleOfEnlightenment.wav
rlm@4 7 Arcade.wav
rlm@4 8 Battle01.wav
rlm@4 9 Battle02.wav
rlm@4 10 Battle03.wav
rlm@4 11 Battle04.wav
rlm@4 12 Battle05.wav
rlm@4 13 Battle06.wav
rlm@4 14 Battle07.wav
rlm@4 15 Battle08.wav
rlm@4 16 Battle09.wav
rlm@4 17 Battle10.wav
rlm@4 18 Bicycle.wav
rlm@4 19 BossIntro.wav
rlm@4 20 BrickRoad.wav
rlm@4 21 Bus.wav
rlm@4 22 Cave1.wav
rlm@4 23 Cave2.wav
rlm@4 24 Cave3.wav
rlm@4 25 CaveOfThePast.wav
rlm@4 26 ChaosTheater.wav
rlm@4 27 CoffeeBreak.wav
rlm@4 28 Dalaam.wav
rlm@4 29 DalaamIntro.wav
rlm@4 30 DeepDarkness.wav
rlm@4 31 Defeated.wav
rlm@4 32 Delivery.wav
rlm@4 33 DrAndonuts.wav
rlm@4 34 DrugStore.wav
rlm@4 35 DungeonMan.wav
rlm@4 36 DustyDunesDesert.wav
rlm@4 37 EightMelodies.wav
rlm@4 38 Ending1.wav
rlm@4 39 Ending2.wav
rlm@4 40 Ending3.wav
rlm@4 41 FileSelect.wav
rlm@4 42 FireSpring.wav
rlm@4 43 FlyingMan.wav
rlm@4 44 Fourside.wav
rlm@4 45 Giygas1.wav
rlm@4 46 Giygas2.wav
rlm@4 47 Giygas3.wav
rlm@4 48 Giygas4.wav
rlm@4 49 Giygas5.wav
rlm@4 50 GiygasDeath.wav
rlm@4 51 GiygasIntro.wav
rlm@4 52 GiygasPath.wav
rlm@4 53 GiygasStatic.wav
rlm@4 54 GrapefruitFalls.wav
rlm@4 55 HappyHappy.wav
rlm@4 56 HiddenTrack.wav
rlm@4 57 Home.wav
rlm@4 58 Hospital.wav
rlm@4 59 Hotel1.wav
rlm@4 60 Hotel2.wav
rlm@4 61 Hotel3.wav
rlm@4 62 Hotel4.wav
rlm@4 63 HotelScaraba.wav
rlm@4 64 House1.wav
rlm@4 65 House2.wav
rlm@4 66 House3.wav
rlm@4 67 Intro1.wav
rlm@4 68 Intro2.wav
rlm@4 69 IntroDemo.wav
rlm@4 70 IntroTitle.wav
rlm@4 71 JackiesCafe.wav
rlm@4 72 LevelUp.wav
rlm@4 73 LostUnderworld.wav
rlm@4 74 Magicant1.wav
rlm@4 75 Magicant2.wav
rlm@4 76 MagicantDepart.wav
rlm@4 77 MagicantEnter.wav
rlm@4 78 MagicCake.wav
rlm@4 79 MasterBelchBase.wav
rlm@4 80 MonkeyCave.wav
rlm@4 81 Moonside.wav
rlm@4 82 Mu.wav
rlm@4 83 NewGame.wav
rlm@4 84 Night.wav
rlm@4 85 Onett1.wav
rlm@4 86 Onett2.wav
rlm@4 87 OnettBuzz1.wav
rlm@4 88 OnettBuzz2.wav
rlm@4 89 OnettBuzz3.wav
rlm@4 90 OnettNight1.wav
rlm@4 91 OnettNight2.wav
rlm@4 92 OnettNight3.wav
rlm@4 93 Paula.wav
rlm@4 94 PeacefulRest.wav
rlm@4 95 Photographer.wav
rlm@4 96 PinkCloud.wav
rlm@4 97 Pokey.wav
rlm@4 98 PokeyIntro.wav
rlm@4 99 PokeysHouse.wav
rlm@4 100 PokeysHouseBuzz.wav
rlm@4 101 PowerUp.wav
rlm@4 102 Pray.wav
rlm@4 103 Pyramid.wav
rlm@4 104 Return1.wav
rlm@4 105 Return2.wav
rlm@4 106 RideSub.wav
rlm@4 107 RideUFO.wav
rlm@4 108 Robots.wav
rlm@4 109 Runaway5Bus1.wav
rlm@4 110 Runaway5Bus2.wav
rlm@4 111 Runaway5Bus3.wav
rlm@4 112 Runaway5Song1.wav
rlm@4 113 Runaway5Song2.wav
rlm@4 114 Sailing1.wav
rlm@4 115 Sailing2.wav
rlm@4 116 SaturnValley.wav
rlm@4 117 SaturnValley2.wav
rlm@4 118 Scaraba.wav
rlm@4 119 ScarabaDesert.wav
rlm@4 120 SeaOfEden.wav
rlm@4 121 SnowWood.wav
rlm@4 122 SnowWood2.wav
rlm@4 123 SoundStone.wav
rlm@4 124 SoundStone2.wav
rlm@4 125 Summers.wav
rlm@4 126 TendaVillage.wav
rlm@4 127 Tent.wav
rlm@4 128 Tessie1.wav
rlm@4 129 Tessie2.wav
rlm@4 130 Threed.wav
rlm@4 131 Topolla.wav
rlm@4 132 Twoson.wav
rlm@4 133 Venus.wav
rlm@4 134 Win1.wav
rlm@4 135 Win2.wav
rlm@4 136 Winters.wav
rlm@4 137 YourSanctuary1.wav
rlm@4 138 YourSanctuary2.wav
rlm@5 139 Zombies.wav);
rlm@4 140
rlm@4 141 @sources = qw(
rlm@5 142 AA.spc
rlm@4 143 AB.spc
rlm@4 144 AC.spc
rlm@4 145 AD.spc
rlm@4 146 AE.spc
rlm@4 147 AF.spc
rlm@4 148 AG.spc
rlm@4 149 AH.spc
rlm@4 150 AI.spc
rlm@4 151 AJ.spc
rlm@4 152 AK.spc
rlm@4 153 AL.spc
rlm@4 154 AM.spc
rlm@4 155 AN.spc
rlm@4 156 AO.spc
rlm@4 157 AP.spc
rlm@4 158 AQ.spc
rlm@4 159 AR.spc
rlm@4 160 AS.spc
rlm@4 161 AT.spc
rlm@4 162 AU.spc
rlm@4 163 AV.spc
rlm@4 164 AW.spc
rlm@4 165 AX.spc
rlm@4 166 AY.spc
rlm@4 167 AZ.spc
rlm@4 168 BA.spc
rlm@4 169 BB.spc
rlm@4 170 BC.spc
rlm@4 171 BD.spc
rlm@4 172 BE.spc
rlm@4 173 BF.spc
rlm@4 174 BG.spc
rlm@4 175 BH.spc
rlm@4 176 BI.spc
rlm@4 177 BJ.spc
rlm@4 178 BK.spc
rlm@4 179 BL.spc
rlm@4 180 BM.spc
rlm@4 181 BN.spc
rlm@4 182 BO.spc
rlm@4 183 BP.spc
rlm@4 184 BQ.spc
rlm@4 185 BR.spc
rlm@4 186 BS.spc
rlm@4 187 BT.spc
rlm@4 188 BU.spc
rlm@4 189 BV.spc
rlm@4 190 BW.spc
rlm@4 191 BX.spc
rlm@4 192 BY.spc
rlm@4 193 BZ.spc
rlm@4 194 CA.spc
rlm@4 195 CB.spc
rlm@4 196 CC.spc
rlm@4 197 CD.spc
rlm@4 198 CE.spc
rlm@4 199 CF.spc
rlm@4 200 CG.spc
rlm@4 201 CH.spc
rlm@4 202 CI.spc
rlm@4 203 CJ.spc
rlm@4 204 CK.spc
rlm@4 205 CL.spc
rlm@4 206 CM.spc
rlm@4 207 CN.spc
rlm@4 208 CO.spc
rlm@4 209 CP.spc
rlm@4 210 CQ.spc
rlm@4 211 CR.spc
rlm@4 212 CS.spc
rlm@4 213 CT.spc
rlm@4 214 CU.spc
rlm@4 215 CV.spc
rlm@4 216 CW.spc
rlm@4 217 CX.spc
rlm@4 218 CY.spc
rlm@4 219 CZ.spc
rlm@4 220 DA.spc
rlm@4 221 DB.spc
rlm@4 222 DC.spc
rlm@4 223 DD.spc
rlm@4 224 DE.spc
rlm@4 225 DF.spc
rlm@4 226 DG.spc
rlm@4 227 DH.spc
rlm@4 228 DI.spc
rlm@4 229 DJ.spc
rlm@4 230 DK.spc
rlm@4 231 DL.spc
rlm@4 232 DM.spc
rlm@4 233 DN.spc
rlm@4 234 DO.spc
rlm@4 235 DP.spc
rlm@4 236 DQ.spc
rlm@4 237 DR.spc
rlm@4 238 DS.spc
rlm@4 239 DT.spc
rlm@4 240 DU.spc
rlm@4 241 DV.spc
rlm@4 242 DW.spc
rlm@4 243 DX.spc
rlm@4 244 DY.spc
rlm@4 245 DZ.spc
rlm@4 246 EA.spc
rlm@4 247 EB.spc
rlm@4 248 EC.spc
rlm@4 249 ED.spc
rlm@4 250 EE.spc
rlm@4 251 EF.spc
rlm@4 252 EG.spc
rlm@4 253 EH.spc
rlm@4 254 EI.spc
rlm@4 255 EJ.spc
rlm@4 256 EK.spc
rlm@4 257 EL.spc
rlm@4 258 EM.spc
rlm@4 259 EN.spc
rlm@4 260 EO.spc
rlm@4 261 EP.spc
rlm@4 262 EQ.spc
rlm@4 263 ER.spc
rlm@4 264 ES.spc
rlm@4 265 ET.spc
rlm@4 266 EU.spc
rlm@4 267 EV.spc
rlm@4 268 EW.spc
rlm@4 269 EX.spc
rlm@4 270 EY.spc
rlm@4 271 EZ.spc
rlm@4 272 FA.spc
rlm@4 273 FB.spc
rlm@4 274 FC.spc
rlm@4 275 FD.spc
rlm@4 276 FE.spc
rlm@4 277 FF.spc);
rlm@4 278
rlm@4 279
rlm@6 280 `mkdir ./output`;
rlm@6 281
rlm@4 282 for (0..$#targets){
rlm@4 283
rlm@6 284 my $pid = fork();
rlm@6 285
rlm@6 286 if ($pid == 0) {
rlm@6 287
rlm@6 288 $command = "./build/spc_convert -s 100" . " -i ./test-files/" .
rlm@6 289 $sources[$_] . " -o ./output/" . $targets[$_];
rlm@6 290 print "$command\n";
rlm@6 291
rlm@6 292 `$command`;
rlm@6 293 exit(0);
rlm@6 294 }
rlm@4 295 }
rlm@4 296