Mercurial > hg > human-echolocation-java-webapp
diff src/HumanEchoServlet.java @ 46:84d02afe28e6
Supply dirname and filename separately
author | Chris Cannam |
---|---|
date | Fri, 28 Feb 2014 13:41:45 +0000 |
parents | 65a26b38bf43 |
children | 398a53b30079 |
line wrap: on
line diff
--- a/src/HumanEchoServlet.java Fri Feb 28 11:27:06 2014 +0000 +++ b/src/HumanEchoServlet.java Fri Feb 28 13:41:45 2014 +0000 @@ -112,16 +112,17 @@ Input.set("orient", 1, "horz"); Input.set("dirweight", 1, Double.valueOf(0.2)); + Input.set("outdir", 1, wavdir); + // the ofname should depend on the parameters StringBuilder sb = new StringBuilder(); sb.append("e_d"); sb.append(dist); sb.append("_a"); sb.append(azim); - sb.append(".wav"); outputfname = sb.toString(); - Input.set("outputfname", 1, outputfname); + Input.set("outname", 1, outputfname); // todo: before calling should test if wav already exists.. Object[] result = echo.simulateBinauralSignals(Input);