More output

This commit is contained in:
Chris Cannam
2024-10-03 09:21:12 +01:00
parent 05acd21738
commit 28fa720e93

View File

@@ -24,7 +24,7 @@ public class RubberBandTest
stretcher.setTimeRatio(1.5); stretcher.setTimeRatio(1.5);
stretcher.setPitchScale(0.8); stretcher.setPitchScale(0.8);
System.err.println System.out.println
(String.format("Channel count: %d\n" + (String.format("Channel count: %d\n" +
"Time ratio: %f\n" + "Time ratio: %f\n" +
"Pitch scale: %f\n" + "Pitch scale: %f\n" +
@@ -107,7 +107,7 @@ public class RubberBandTest
} }
} }
System.err.println System.out.println
(String.format("in = %d, out = %d, rms = %f", (String.format("in = %d, out = %d, rms = %f",
blocksize * blocks, n, blocksize * blocks, n,
Math.sqrt(sqrtotal / (double)n))); Math.sqrt(sqrtotal / (double)n)));
@@ -127,7 +127,7 @@ public class RubberBandTest
shifter.setPitchScale(0.8); shifter.setPitchScale(0.8);
System.err.println System.out.println
(String.format("Channel count: %d\n" + (String.format("Channel count: %d\n" +
"Pitch scale: %f\n" + "Pitch scale: %f\n" +
"Block size: %d\n" + "Block size: %d\n" +
@@ -171,7 +171,7 @@ public class RubberBandTest
} }
} }
System.err.println System.out.println
(String.format("in = %d, out = %d, rms = %f", (String.format("in = %d, out = %d, rms = %f",
blocksize * blocks, n, blocksize * blocks, n,
Math.sqrt(sqrtotal / (double)n))); Math.sqrt(sqrtotal / (double)n)));
@@ -180,8 +180,11 @@ public class RubberBandTest
} }
public static void main(String[] args) { public static void main(String[] args) {
System.out.println("Exercising RubberBandStretcher through JNI...");
exerciseStretcher(); exerciseStretcher();
System.out.println("Exercising RubberBandLiveShifter through JNI...");
exerciseLiveShifter(); exerciseLiveShifter();
System.out.println("Done");
} }
} }