Mercurial > hg > human-echolocation-java-webapp
changeset 46:84d02afe28e6
Supply dirname and filename separately
author | Chris Cannam |
---|---|
date | Fri, 28 Feb 2014 13:41:45 +0000 |
parents | c42239ab6084 |
children | 398a53b30079 a777a86102c1 |
files | .hgsubstate INSTALL.txt src/HumanEchoServlet.java |
diffstat | 3 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/.hgsubstate Fri Feb 28 11:27:06 2014 +0000 +++ b/.hgsubstate Fri Feb 28 13:41:45 2014 +0000 @@ -1,1 +1,1 @@ -d9262cdbfb38fd9b4dc782030c3721fef4286911 mcode +c8b0cf96ea447dec3df8ed5268837c2468584c11 mcode
--- a/INSTALL.txt Fri Feb 28 11:27:06 2014 +0000 +++ b/INSTALL.txt Fri Feb 28 13:41:45 2014 +0000 @@ -115,5 +115,5 @@ If this fails, you may be able to recompile the MATLAB component by running the following MCC command: - /Applications/MATLAB_R2013b.app/bin/mcc -W "java:uk.ac.soton.isvr,HumanEcho" -d ./scratch -T "link:lib" -v "class{HumanEcho:./WebContent/WEB-INF/mcode/gen_echo.m}" + /Applications/MATLAB_R2013b.app/bin/mcc -W "java:uk.ac.soton.isvr,HumanEcho" -d ./scratch -T "link:lib" -v "class{HumanEcho:./mcode/simulateBinauralSignals.m}"
--- 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);