// Script for legacy SuperCollider to evaluate the input files under eval/ and save the results // into .txt, for comparison with Hadron during testing. ( var testRootPath; testRootPath = PathName.new(PathName.new(thisProcess.nowExecutingPath).pathOnly +/+ "eval") ; testRootPath.filesDo({|fileName| if ((fileName.extension == "scd" and: fileName.fullPath != thisProcess.nowExecutingPath), { var result, outFileName, outFile; result = this.executeFile(fileName.fullPath).asString; outFileName = fileName.pathOnly +/+ fileName.fileNameWithoutExtension ++ ".txt"; outFile = File.new(outFileName, "w+"); outFile.write(result); outFile.close(); }); }); )