# HG changeset patch # User Chris Cannam # Date 1417634151 0 # Node ID 495cc8973458f406d1b8fa2ba79b4e750b3725a0 # Parent 386c2918018489419db27393910fd5320f4b1157 Remove a couple of unnecessary things diff -r 386c29180184 -r 495cc8973458 src/may/bits/VectorBits.java --- a/src/may/bits/VectorBits.java Fri Sep 12 08:16:21 2014 +0100 +++ b/src/may/bits/VectorBits.java Wed Dec 03 19:15:51 2014 +0000 @@ -9,7 +9,6 @@ ("Found vector of length " + v2.length + ", but all so far in this arithmetic operation have had length " + v1.length); -// e.printStackTrace(); throw e; } } @@ -25,31 +24,28 @@ public static void multiplyBy(double[] out, double[] in) { checkLengths(out, in); - for (int i = 0; i < in.length && i < out.length; ++i) { + for (int i = 0; i < in.length; ++i) { out[i] *= in[i]; } - for (int i = in.length; i < out.length; ++i) { - out[i] *= 0.0; - } } public static void divideBy(double[] out, double[] in) { checkLengths(out, in); - for (int i = 0; i < in.length && i < out.length; ++i) { + for (int i = 0; i < in.length; ++i) { out[i] /= in[i]; } } public static void addTo(double[] out, double[] in) { checkLengths(out, in); - for (int i = 0; i < in.length && i < out.length; ++i) { + for (int i = 0; i < in.length; ++i) { out[i] += in[i]; } } public static void subtractFrom(double[] out, double[] in) { checkLengths(out, in); - for (int i = 0; i < in.length && i < out.length; ++i) { + for (int i = 0; i < in.length; ++i) { out[i] -= in[i]; } } diff -r 386c29180184 -r 495cc8973458 src/may/vamp.yeti --- a/src/may/vamp.yeti Fri Sep 12 08:16:21 2014 +0100 +++ b/src/may/vamp.yeti Wed Dec 03 19:15:51 2014 +0000 @@ -313,8 +313,8 @@ processFile key output filename = processStream key output (af.open filename); -processStreamStructured key output filename = - vamppost.postprocess (processStream key output filename); +processStreamStructured key output stream = + vamppost.postprocess (processStream key output stream); processFileStructured key output filename = vamppost.postprocess (processFile key output filename);